2022-08-08 19:02:56 +08:00
|
|
|
<template>
|
|
|
|
|
<div class="h-table">
|
|
|
|
|
<div class="thead">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="td" v-for="th in thead" :key="th">{{ th }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="tbody">
|
2022-08-15 14:59:25 +08:00
|
|
|
<vue-scroll>
|
|
|
|
|
<div class="row" v-for="(item, i) in list" :key="i">
|
|
|
|
|
<div class="td">{{ item.changeTime }}</div>
|
|
|
|
|
<div class="td">{{ item.changeType }}</div>
|
|
|
|
|
<div class="td">详情</div>
|
|
|
|
|
</div>
|
|
|
|
|
</vue-scroll>
|
2022-08-08 19:02:56 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
props: {
|
|
|
|
|
thead: {
|
|
|
|
|
type: Array,
|
|
|
|
|
default: () => []
|
2022-08-15 14:59:25 +08:00
|
|
|
},
|
|
|
|
|
list: {
|
|
|
|
|
type: Array,
|
|
|
|
|
default: () => []
|
2022-08-08 19:02:56 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
.h-table {
|
|
|
|
|
padding: 0 6px;
|
|
|
|
|
height: 100%;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
color: #fff;
|
|
|
|
|
.thead,
|
|
|
|
|
.tbody {
|
|
|
|
|
&.thead {
|
|
|
|
|
margin-bottom: 5px;
|
|
|
|
|
padding-bottom: 5px;
|
|
|
|
|
color: #6ee4f0;
|
|
|
|
|
border-bottom: 1px solid #fff;
|
|
|
|
|
}
|
2022-08-15 14:59:25 +08:00
|
|
|
&.tbody {
|
|
|
|
|
height: calc(100% - 46px);
|
|
|
|
|
}
|
2022-08-08 19:02:56 +08:00
|
|
|
.row {
|
|
|
|
|
width: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
.td {
|
|
|
|
|
height: 30px;
|
|
|
|
|
line-height: 30px;
|
|
|
|
|
&:nth-child(1) {
|
|
|
|
|
width: 40%;
|
|
|
|
|
}
|
|
|
|
|
&:nth-child(2) {
|
|
|
|
|
flex: 1;
|
|
|
|
|
}
|
|
|
|
|
&:nth-child(3) {
|
|
|
|
|
margin-right: 10px;
|
|
|
|
|
color: #6ee4f0;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|