|
@@ -1,16 +1,14 @@
|
|
|
<template>
|
|
|
- <div class="table">
|
|
|
- <div class="table__content">
|
|
|
- <div class="table__content_label" :class="`table__content_label_${type}`">
|
|
|
- <div class="label-t" v-for="(item, index) in columns" :key="`svvhbcth-${index}`" :style="{ flexBasis }">{{ item.name }}</div>
|
|
|
- </div>
|
|
|
- <div class="table__content_list" :class="`table__content_list_${type}`">
|
|
|
- <div class="table__content_list_row" v-for="(item, index) in data" :key="`svvhbct-${index}`">
|
|
|
- <div v-for="(t, i) in columns" :key="`svvhbctr-${i}`" :style="{ flexBasis }" :class="`table__content__list_item_${type}`">
|
|
|
- <slot :name="t.prop" :scope="item">
|
|
|
- <span>{{ get(item, t.prop) }}</span>
|
|
|
- </slot>
|
|
|
- </div>
|
|
|
+ <div class="table__content">
|
|
|
+ <div class="table__content_label" :class="`table__content_label_${type}`">
|
|
|
+ <div class="label-t" v-for="(item, index) in columns" :key="`svvhbcth-${index}`" :style="{ flexBasis }">{{ item.name }}</div>
|
|
|
+ </div>
|
|
|
+ <div class="table__content_list" :class="`table__content_list_${type}`">
|
|
|
+ <div class="table__content_list_row" v-for="(item, index) in data" :key="`svvhbct-${index}`">
|
|
|
+ <div v-for="(t, i) in columns" :key="`svvhbctr-${i}`" :style="{ flexBasis }" :class="`table__content__list_item_${type}`">
|
|
|
+ <slot :name="t.prop" :scope="item">
|
|
|
+ <span>{{ get(item, t.prop) }}</span>
|
|
|
+ </slot>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -60,6 +58,7 @@
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
align-items: center;
|
|
|
+ padding: 5px 0;
|
|
|
|
|
|
.table__content_label {
|
|
|
width: 400px;
|
|
@@ -74,6 +73,13 @@
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
}
|
|
|
+ .table__content_label_A {
|
|
|
+ // border: 1px solid @vent-gas-tab-border;
|
|
|
+ background-image: url(@/assets/images/company/content-label.png);
|
|
|
+ background-size: 100% 100%;
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ color: #31b9ef;
|
|
|
+ }
|
|
|
.table__content_label_B {
|
|
|
// border: 1px solid @vent-gas-tab-border;
|
|
|
background-image: linear-gradient(to top, #04698c, #04698c00);
|
|
@@ -102,18 +108,14 @@
|
|
|
width: 400px;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
- // justify-content: space-around;
|
|
|
- justify-content: flex-start;
|
|
|
- padding: 5px 0px;
|
|
|
+ padding: 5px 0;
|
|
|
box-sizing: border-box;
|
|
|
overflow-y: auto;
|
|
|
.table__content_list_row {
|
|
|
width: 100%;
|
|
|
- height: 28px;
|
|
|
display: flex;
|
|
|
justify-content: space-around;
|
|
|
- align-items: flex-start;
|
|
|
- // background: url('@/assets/images/company/content-text.png') no-repeat;
|
|
|
+ align-items: center;
|
|
|
color: #fff;
|
|
|
margin-bottom: 5px;
|
|
|
span {
|
|
@@ -127,11 +129,21 @@
|
|
|
// }
|
|
|
}
|
|
|
|
|
|
+ .table__content_list_A {
|
|
|
+ .table__content_list_row {
|
|
|
+ // background-position: center;
|
|
|
+ background-size: 100% auto;
|
|
|
+ background-repeat: no-repeat;
|
|
|
+ background-position: center bottom;
|
|
|
+ background-image: url('@/assets/images/company/content-text.png');
|
|
|
+ }
|
|
|
+ }
|
|
|
.table__content_list_C {
|
|
|
.table__content_list_row {
|
|
|
// background-position: center;
|
|
|
background-size: 100% auto;
|
|
|
background-repeat: no-repeat;
|
|
|
+ background-position: center bottom;
|
|
|
background-image: url('@/assets/images/company/content-text.png');
|
|
|
}
|
|
|
}
|