Commit 25ed78c336d8bb5ca9df9322d5a2966d103dedd8

Authored by 刘汉宸
1 parent 7f283035

fix: 修复Scheme异常事件和默认样式

Showing 1 changed file with 3 additions and 10 deletions   Show diff stats
packages/scheme/index.vue
... ... @@ -37,7 +37,7 @@
37 37 v-model="tableData"
38 38 v-loading="loading"
39 39 :list="tableList || listMap.table"
40   - :tableProps="{ border: true, 'row-key': 'id', ...tableProps }"
  40 + :tableProps="{ border: true, 'row-key': 'id', 'highlight-current-row': true, ...tableProps }"
41 41 :size="size"
42 42 @selection-change="onTableSelectionChange"
43 43 @selection="onTableSelection"
... ... @@ -68,14 +68,7 @@
68 68 <div class="zee-scheme__table-operation" slot-scope="slotScope">
69 69 <slot name="operation-button" v-bind="{ ..._slotScope, slotScope }"></slot>
70 70 <el-button type="text" icon="el-icon-edit" title="编辑" @click="openEdit(slotScope.row)"></el-button>
71   - <el-popconfirm
72   - confirmButtonText="确定"
73   - cancelButtonText="取消"
74   - title="确定删除吗?"
75   - placement="top"
76   - @confirm="handleDelete([slotScope.row])"
77   - @onConfirm="handleDelete([slotScope.row])"
78   - >
  71 + <el-popconfirm confirmButtonText="确定" cancelButtonText="取消" title="确定删除吗?" placement="top" @confirm="handleDelete([slotScope.row])">
79 72 <el-button slot="reference" type="text" icon="el-icon-delete" title="删除"></el-button>
80 73 </el-popconfirm>
81 74 <slot name="operation-button-append" v-bind="{ ..._slotScope, slotScope }"></slot>
... ... @@ -90,7 +83,7 @@
90 83 <span>已选中</span>
91 84 <span class="num">{{ selection.length }}</span>
92 85 <span>项</span>
93   - <el-popconfirm confirmButtonText="确定" cancelButtonText="取消" title="确定清除吗?" placement="top" @onConfirm="clearSelection">
  86 + <el-popconfirm confirmButtonText="确定" cancelButtonText="取消" title="确定清除吗?" placement="top" @confirm="clearSelection">
94 87 <el-button slot="reference" :size="size" type="text">清除</el-button>
95 88 </el-popconfirm>
96 89 </div>
... ...