lg_frontend/components/smallCommon/CusDesc.vue

48 lines
810 B
Vue

<template>
<div class="cusdesc">
<div class="desc" v-for="(col, index) in columns" :key="index">
<div class="desc-title">{{ col.title }}:</div>
<div class="desc-value">{{ data[col.key] }}</div>
</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 {
margin-top: 16px;
&:first-child {
margin-top: 0;
}
}
}
</style>