lg_frontend/components/smallCommon/CusDesc.vue

52 lines
968 B
Vue
Raw Permalink Normal View History

2024-06-15 17:13:55 +00:00
<template>
<div class="cusdesc">
2024-08-05 16:17:35 +00:00
<div class="desc" v-for="(col, index) in columns" :key="index" :style="{ width: col.width || '50%' }">
2024-06-15 17:13:55 +00:00
<div class="desc-title">{{ col.title }}:</div>
2024-08-05 16:17:35 +00:00
<div class="desc-value">{{ data[col.key || col.dataIndex] }}</div>
2024-06-15 17:13:55 +00:00
</div>
</div>
</template>
<script>
export default {
name: "CusDesc",
props: {
columns: {
type: Array,
default: () => []
},
data: {
type: Object,
default: () => ({})
}
}
}
</script>
<style scoped lang="less">
.cusdesc {
width: 100%;
/** 文本1 */
font-size: 16px;
font-weight: 400;
letter-spacing: 0px;
line-height: 23.17px;
color: rgba(255, 255, 255, 1);
text-align: left;
vertical-align: top;
.desc {
2024-08-05 16:17:35 +00:00
width: 100%;
2024-06-15 17:13:55 +00:00
margin-top: 16px;
2024-08-05 16:17:35 +00:00
display: flex;
justify-content: flex-start;
align-items: center;
2024-06-15 17:13:55 +00:00
&:first-child {
margin-top: 0;
}
}
}
</style>