feat(P4): precompute移植+app.js sources双向回填+回归1003/1003+验收体积/文件/data.json
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<template>
|
||||
<div class="aa-radiocard-grid" :style="{ gridTemplateColumns: 'repeat(' + cols + ', 1fr)' }">
|
||||
<div class="aa-radiocard" v-for="(o, i) in options" :key="i"
|
||||
:class="{ 'is-selected': value === o.value }" @click="$emit('input', o.value)">
|
||||
<div class="aa-radiocard-icon" v-if="o.icon">{{ o.icon }}</div>
|
||||
<div class="aa-radiocard-body">
|
||||
<div class="aa-radiocard-title">{{ o.label }}</div>
|
||||
<div class="aa-radiocard-desc" v-if="o.desc">{{ o.desc }}</div>
|
||||
</div>
|
||||
<div class="aa-radiocard-mark"></div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'AaRadioCard',
|
||||
props: {
|
||||
options: { type: Array, default: function () { return []; } },
|
||||
value: { type: [String, Number], default: '' },
|
||||
cols: { type: Number, default: 3 }
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style src="./RadioCard.css"></style>
|
||||
Reference in New Issue
Block a user