提交 | 用户 | 时间 | ||
314507 | 1 | <script setup lang="ts"> |
H | 2 | const { label } = defineProps({ |
3 | label: { | |
4 | type: String, | |
5 | required: true | |
6 | }, | |
7 | icon: { | |
8 | type: String, | |
9 | required: false | |
10 | } | |
11 | }) | |
12 | </script> | |
13 | ||
14 | <template> | |
15 | <div class="cell-item"> | |
16 | <Icon :icon="icon" v-if="icon" style="vertical-align: middle" :size="18" /> | |
17 | {{ label }} | |
18 | </div> | |
19 | </template> | |
20 | ||
21 | <style scoped lang="scss"> | |
22 | .cell-item { | |
23 | display: inline; | |
24 | } | |
25 | ||
26 | .cell-item::after { | |
27 | content: ':'; | |
28 | } | |
29 | </style> |