发布v1.0.3

This commit is contained in:
kele
2022-11-22 15:45:36 +08:00
commit 01f091fcd8
525 changed files with 80922 additions and 0 deletions
@@ -0,0 +1,35 @@
<template>
<detail-cell v-if="skus.length > 0" label="选择" :value="value"></detail-cell>
</template>
<script setup>
import { computed } from 'vue';
import detailCell from './detail-cell.vue';
const props = defineProps({
modelValue: {
type: Array,
default() {
return [];
},
},
skus: {
type: Array,
default() {
return [];
},
},
});
const value = computed(() => {
let str = '';
if (props.modelValue.length > 0) {
props.modelValue.forEach((item, index) => {
str += props.skus[index].name + ':' + item + ' ';
});
} else {
str = '请选择商品规格';
}
return str;
});
</script>