feat: 默认开启纵向边框

This commit is contained in:
caoqianming 2024-03-07 09:45:41 +08:00
parent 5def66cf5c
commit e9d2daa3af
1 changed files with 5 additions and 2 deletions

View File

@ -18,7 +18,7 @@
<template v-for="(item, index) in userColumn" :key="index"> <template v-for="(item, index) in userColumn" :key="index">
<el-table-column v-if="!item.hide" :column-key="item.prop" :label="item.label" :prop="item.prop" <el-table-column v-if="!item.hide" :column-key="item.prop" :label="item.label" :prop="item.prop"
:width="item.width" :sortable="item.sortable" :fixed="item.fixed" :filters="item.filters" :filter-method="remoteFilter || !item.filters ? null : filterHandler :width="item.width" :sortable="item.sortable" :fixed="item.fixed" :filters="item.filters" :filter-method="remoteFilter || !item.filters ? null : filterHandler
" :show-overflow-tooltip="item.showOverflowTooltip"> " :show-overflow-tooltip="item.showOverflowTooltip">
<template #default="scope"> <template #default="scope">
<slot :name="item.prop" v-bind="scope"> <slot :name="item.prop" v-bind="scope">
{{ scope.row[item.prop] }} {{ scope.row[item.prop] }}
@ -27,6 +27,7 @@
</el-table-column> </el-table-column>
</template> </template>
<el-table-column min-width="1"></el-table-column> <el-table-column min-width="1"></el-table-column>
<template #empty> <template #empty>
<el-empty :description="emptyText" :image-size="100"></el-empty> <el-empty :description="emptyText" :image-size="100"></el-empty>
</template> </template>
@ -45,6 +46,7 @@
</el-button> </el-button>
<el-popover v-if="column" placement="top" title="列设置" :width="500" trigger="click" :hide-after="0" <el-popover v-if="column" placement="top" title="列设置" :width="500" trigger="click" :hide-after="0"
@show="customColumnShow = true" @after-leave="customColumnShow = false"> @show="customColumnShow = true" @after-leave="customColumnShow = false">
<template #reference> <template #reference>
<el-button icon="el-icon-set-up" circle style="margin-left: 15px"></el-button> <el-button icon="el-icon-set-up" circle style="margin-left: 15px"></el-button>
</template> </template>
@ -52,6 +54,7 @@
@save="columnSettingSave" @back="columnSettingBack" :column="userColumn"></columnSetting> @save="columnSettingSave" @back="columnSettingBack" :column="userColumn"></columnSetting>
</el-popover> </el-popover>
<el-popover v-if="!hideSetting" placement="top" title="表格设置" :width="400" trigger="click" :hide-after="0"> <el-popover v-if="!hideSetting" placement="top" title="表格设置" :width="400" trigger="click" :hide-after="0">
<template #reference> <template #reference>
<el-button icon="el-icon-setting" circle style="margin-left: 15px"></el-button> <el-button icon="el-icon-setting" circle style="margin-left: 15px"></el-button>
</template> </template>
@ -149,7 +152,7 @@ export default {
summary: {}, summary: {},
config: { config: {
size: this.size, size: this.size,
border: this.border, border: true,
stripe: this.stripe, stripe: this.stripe,
}, },
}; };