Commit 25ed78c336d8bb5ca9df9322d5a2966d103dedd8
1 parent
7f283035
Exists in
master
and in
3 other branches
fix: 修复Scheme异常事件和默认样式
Showing
1 changed file
with
3 additions
and
10 deletions
Show diff stats
packages/scheme/index.vue
| @@ -37,7 +37,7 @@ | @@ -37,7 +37,7 @@ | ||
| 37 | v-model="tableData" | 37 | v-model="tableData" |
| 38 | v-loading="loading" | 38 | v-loading="loading" |
| 39 | :list="tableList || listMap.table" | 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 | :size="size" | 41 | :size="size" |
| 42 | @selection-change="onTableSelectionChange" | 42 | @selection-change="onTableSelectionChange" |
| 43 | @selection="onTableSelection" | 43 | @selection="onTableSelection" |
| @@ -68,14 +68,7 @@ | @@ -68,14 +68,7 @@ | ||
| 68 | <div class="zee-scheme__table-operation" slot-scope="slotScope"> | 68 | <div class="zee-scheme__table-operation" slot-scope="slotScope"> |
| 69 | <slot name="operation-button" v-bind="{ ..._slotScope, slotScope }"></slot> | 69 | <slot name="operation-button" v-bind="{ ..._slotScope, slotScope }"></slot> |
| 70 | <el-button type="text" icon="el-icon-edit" title="编辑" @click="openEdit(slotScope.row)"></el-button> | 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 | <el-button slot="reference" type="text" icon="el-icon-delete" title="删除"></el-button> | 72 | <el-button slot="reference" type="text" icon="el-icon-delete" title="删除"></el-button> |
| 80 | </el-popconfirm> | 73 | </el-popconfirm> |
| 81 | <slot name="operation-button-append" v-bind="{ ..._slotScope, slotScope }"></slot> | 74 | <slot name="operation-button-append" v-bind="{ ..._slotScope, slotScope }"></slot> |
| @@ -90,7 +83,7 @@ | @@ -90,7 +83,7 @@ | ||
| 90 | <span>已选中</span> | 83 | <span>已选中</span> |
| 91 | <span class="num">{{ selection.length }}</span> | 84 | <span class="num">{{ selection.length }}</span> |
| 92 | <span>项</span> | 85 | <span>项</span> |
| 93 | - <el-popconfirm confirmButtonText="确定" cancelButtonText="取消" title="确定清除吗?" placement="top" @onConfirm="clearSelection"> | 86 | + <el-popconfirm confirmButtonText="确定" cancelButtonText="取消" title="确定清除吗?" placement="top" @confirm="clearSelection"> |
| 94 | <el-button slot="reference" :size="size" type="text">清除</el-button> | 87 | <el-button slot="reference" :size="size" type="text">清除</el-button> |
| 95 | </el-popconfirm> | 88 | </el-popconfirm> |
| 96 | </div> | 89 | </div> |