refactor: 前端代码优化

This commit is contained in:
meilin.huang
2023-07-02 17:06:00 +08:00
parent aca4e6751e
commit c240079df4
13 changed files with 278 additions and 148 deletions

View File

@@ -86,13 +86,13 @@
</div>
<el-table v-bind="$attrs" max-height="700" @selection-change="handleSelectionChange" :data="props.data" border
highlight-current-row show-overflow-tooltip v-loading="loadingData">
highlight-current-row v-loading="loadingData">
<el-table-column v-if="props.showSelection" type="selection" width="40" />
<template v-for="(item, index) in columns">
<el-table-column :key="index" v-if="item.show" :prop="item.prop" :label="item.label" :fixed="item.fixed"
:align="item.align" :show-overflow-tooltip="item.showOverflowTooltip || true"
:align="item.align" :show-overflow-tooltip="item.showOverflowTooltip"
:min-width="item.minWidth" :sortable="item.sortable || false" :type="item.type" :width="item.width">
<!-- 插槽预留功能 -->