You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
LiaoNingDangAn/src/views/cosmeticsFile/components/descriptions.vue

46 lines
906 B

2 years ago
<template>
<div>
<el-descriptions class="margin-top" :column="2" border>
<el-descriptions-item v-for="(item, index) in descriptionsList" :key="index" :span="item.span">
<template slot="label"> {{ item.label }} </template>
{{ item.value }}
</el-descriptions-item>
</el-descriptions>
</div>
</template>
<script>
export default {
data() {
return {
// list2: {
// asd: 123123213,
// idsd: "hahhah",
// },
};
},
props: {
descriptionsList: {
type: Array,
default: [],
},
},
methods: {},
created() {
// for (let key in this.list2) {
// this.list1.forEach((values, index) => {
// if (values.data === key) {
// this.list1[index].value = this.list2[key];
// }
// });
// }
},
};
</script>
<style lang="scss" scoped>
.margin-top {
margin: 15px 0;
}
</style>