|
@@ -3,17 +3,17 @@
|
|
<!-- 基准的列表模块,通过不同的 type 展示不同的样式 -->
|
|
<!-- 基准的列表模块,通过不同的 type 展示不同的样式 -->
|
|
<div class="list flex items-center" :class="`list_${type}`">
|
|
<div class="list flex items-center" :class="`list_${type}`">
|
|
<!-- 部分类型的列表需要加一张图片 -->
|
|
<!-- 部分类型的列表需要加一张图片 -->
|
|
- <div :class="`list-item__image_${type}`"></div>
|
|
|
|
|
|
+ <div :class="`list__image_${type}`"></div>
|
|
<!-- 剩下的部分填充剩余宽度 -->
|
|
<!-- 剩下的部分填充剩余宽度 -->
|
|
- <div class="flex-grow">
|
|
|
|
- <div v-for="item in listConfig" :key="item.prop" class="flex items-center list-item">
|
|
|
|
|
|
+ <div class="flex-grow" :class="`list__wrapper_${type}`">
|
|
|
|
+ <div v-for="item in listConfig" :key="item.prop" class="flex items-center" :class="`list-item_${type}`">
|
|
<!-- 列表项前面的图标 -->
|
|
<!-- 列表项前面的图标 -->
|
|
<div :class="`list-item__icon_${type}`"></div>
|
|
<div :class="`list-item__icon_${type}`"></div>
|
|
<!-- 列表项的具体内容填充剩余宽度 -->
|
|
<!-- 列表项的具体内容填充剩余宽度 -->
|
|
<div class="flex-grow" :class="`list-item__content_${type}`">
|
|
<div class="flex-grow" :class="`list-item__content_${type}`">
|
|
<div class="list-item__label">{{ item.label }}</div>
|
|
<div class="list-item__label">{{ item.label }}</div>
|
|
<div class="list-item__info" :class="`list-item__info_${item.color}`">{{ item.info }}</div>
|
|
<div class="list-item__info" :class="`list-item__info_${item.color}`">{{ item.info }}</div>
|
|
- <div class="list-item__value" :class="`list-item__value_${item.color}`">{{ item.value }}</div>
|
|
|
|
|
|
+ <div class="list-item__value" :class="`list-item__value_${item.color} list-item__value_${type}`">{{ item.value }}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -29,6 +29,7 @@
|
|
prop: string;
|
|
prop: string;
|
|
info: string;
|
|
info: string;
|
|
}[];
|
|
}[];
|
|
|
|
+ /** A B C D E */
|
|
type: string;
|
|
type: string;
|
|
}>(),
|
|
}>(),
|
|
{
|
|
{
|
|
@@ -43,10 +44,6 @@
|
|
@import '@/design/vent/color.less';
|
|
@import '@/design/vent/color.less';
|
|
/* Timeline 相关的样式 */
|
|
/* Timeline 相关的样式 */
|
|
|
|
|
|
- .list-item {
|
|
|
|
- height: 20%;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
.list {
|
|
.list {
|
|
padding: 5px 20px;
|
|
padding: 5px 20px;
|
|
position: relative;
|
|
position: relative;
|
|
@@ -81,7 +78,7 @@
|
|
background-size: 100% auto;
|
|
background-size: 100% auto;
|
|
background-image: url(/@/assets/images/home-container/configurable/list_bg_b.png);
|
|
background-image: url(/@/assets/images/home-container/configurable/list_bg_b.png);
|
|
}
|
|
}
|
|
- .list-item__image_B {
|
|
|
|
|
|
+ .list__image_B {
|
|
width: 77px;
|
|
width: 77px;
|
|
height: 77px;
|
|
height: 77px;
|
|
background-repeat: no-repeat;
|
|
background-repeat: no-repeat;
|
|
@@ -93,7 +90,6 @@
|
|
.list_C {
|
|
.list_C {
|
|
background: none;
|
|
background: none;
|
|
}
|
|
}
|
|
-
|
|
|
|
.list-item__content_C {
|
|
.list-item__content_C {
|
|
height: 60px;
|
|
height: 60px;
|
|
background-repeat: no-repeat;
|
|
background-repeat: no-repeat;
|
|
@@ -108,6 +104,65 @@
|
|
.list-item__content_C > div {
|
|
.list-item__content_C > div {
|
|
flex-basis: 33.3%;
|
|
flex-basis: 33.3%;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ .list_D {
|
|
|
|
+ background-size: 100% auto;
|
|
|
|
+ background-image: url(/@/assets/images/home-container/configurable/list_bg_defflip.png);
|
|
|
|
+ }
|
|
|
|
+ .list__wrapper_D {
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-wrap: wrap;
|
|
|
|
+ }
|
|
|
|
+ .list-item__icon_D {
|
|
|
|
+ display: none;
|
|
|
|
+ }
|
|
|
|
+ .list-item_D {
|
|
|
|
+ flex-basis: 25%;
|
|
|
|
+ // width: 80px;
|
|
|
|
+ height: 60px;
|
|
|
|
+ background-repeat: no-repeat;
|
|
|
|
+ // padding: 25px 50px 0 50px;
|
|
|
|
+ // display: flex;
|
|
|
|
+ background-position: center;
|
|
|
|
+ background-size: auto 100%;
|
|
|
|
+ background-image: url(/@/assets/images/home-container/configurable/list_bg_d.png);
|
|
|
|
+ // margin-bottom: 10px;
|
|
|
|
+ text-align: center;
|
|
|
|
+ margin-bottom: 10px;
|
|
|
|
+ }
|
|
|
|
+ .list-item__content_D {
|
|
|
|
+ line-height: 30px;
|
|
|
|
+ }
|
|
|
|
+ .list-item__value_D {
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .list_E {
|
|
|
|
+ background-image: url(/@/assets/images/home-container/configurable/list_bg_defflip.png);
|
|
|
|
+ }
|
|
|
|
+ .list__wrapper_E {
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-wrap: wrap;
|
|
|
|
+ }
|
|
|
|
+ .list-item__icon_E {
|
|
|
|
+ display: none;
|
|
|
|
+ }
|
|
|
|
+ .list-item_E {
|
|
|
|
+ flex-basis: 25%;
|
|
|
|
+ // width: 80px;
|
|
|
|
+ height: 70px;
|
|
|
|
+ background-repeat: no-repeat;
|
|
|
|
+ // padding: 25px 50px 0 50px;
|
|
|
|
+ // display: flex;
|
|
|
|
+ background-position: center;
|
|
|
|
+ background-size: auto 100%;
|
|
|
|
+ background-image: url(/@/assets/images/home-container/configurable/list_bg_e.png);
|
|
|
|
+ // margin-bottom: 10px;
|
|
|
|
+ text-align: center;
|
|
|
|
+ margin: 5px 0px;
|
|
|
|
+ padding-top: 32px;
|
|
|
|
+ font-size: 12px;
|
|
|
|
+ }
|
|
// .list-item__icon_red {
|
|
// .list-item__icon_red {
|
|
// background-image: url('@/assets/images/home-container/configurable/warn_icon_5.png');
|
|
// background-image: url('@/assets/images/home-container/configurable/warn_icon_5.png');
|
|
// }
|
|
// }
|
|
@@ -172,4 +227,7 @@
|
|
.list-item__value_blue {
|
|
.list-item__value_blue {
|
|
color: lightblue;
|
|
color: lightblue;
|
|
}
|
|
}
|
|
|
|
+ .list-item__value_white {
|
|
|
|
+ color: white;
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|