feat: production页的CMS变更

This commit is contained in:
2025-10-15 16:49:08 +08:00
parent 98f978484c
commit 1704a7b5c1
5 changed files with 202 additions and 94 deletions

View File

@ -3,15 +3,15 @@
<el-collapse v-model="activeName">
<el-collapse-item
v-for="item in data"
:key="item.title"
:title="item.title"
:name="item.title"
:key="item.name"
:title="item.name"
:name="item.name"
>
<el-descriptions :column="1" border>
<el-descriptions-item
v-for="subItem in item.items"
:key="subItem.label"
:label="subItem.label"
v-for="subItem in item.specs"
:key="subItem.key"
:label="subItem.value"
>
{{ subItem.value }}
</el-descriptions-item>
@ -24,15 +24,15 @@
<script lang="ts" setup>
const props = defineProps({
data: {
type: Object as () => ProductionSpecGroup[],
type: Object as () => ProductSpecGroupView[],
required: true,
},
});
// 默认全部展开
const activeName = ref<string[]>(
props.data.map((item: ProductionSpecGroup) => {
return item.title;
props.data.map((item: ProductSpecGroupView) => {
return item.name;
}) || []
);
</script>