Commit 6a0a1390 authored by 赵伟庚's avatar 赵伟庚

update table border style

parent bab2dcae
......@@ -4,6 +4,7 @@
ref="table"
class="bg-table"
:data="rows"
:border="border"
@selection-change="selectAction"
@select="selectActionRow"
@select-all="selectActionAll"
......@@ -16,7 +17,7 @@
<div class="text">暂无数据</div>
</div>
</template>
<el-table-column v-if="paddingLeft > 10" :width="paddingLeft - 10"></el-table-column>
<el-table-column v-if="paddingLeft > 10 && !border" :width="paddingLeft - 10"></el-table-column>
<el-table-column type="selection" :selectable="selectable" width="38" v-if="select">
<!-- checkbox -->
</el-table-column>
......@@ -84,6 +85,10 @@ const props = defineProps({
type: Boolean,
default: false,
},
border: {
type: Boolean,
default: false,
},
paddingLeft: {
type: [Number, String],
default: () => 12,
......
......@@ -208,6 +208,7 @@ const getTableRows = () => {};
width: 1076px;
margin-bottom: 20px;
}
.input_table {
:deep() {
.el-table__header {
......@@ -215,11 +216,17 @@ const getTableRows = () => {};
background-color: #f5f6f9;
border-color: #dadee7;
border-top: 1px solid #dadee7 !important;
&:first-child {
border-left: 1px solid #dadee7;
}
&:last-child {
border-right: 1px solid #dadee7;
}
}
}
.el-scrollbar {
border-radius: 0px;
}
.el-table__border-left-patch {
width: 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment