修复托盘登录电池取消激活选择状态
This commit is contained in:
@@ -84,6 +84,7 @@
|
||||
:key="'sel-' + col.idx"
|
||||
type="selection"
|
||||
:width="col.width"
|
||||
:selectable="selectionSelectable || undefined"
|
||||
/>
|
||||
<!-- 2. 序号列 -->
|
||||
<el-table-column
|
||||
@@ -309,6 +310,12 @@ export default {
|
||||
*/
|
||||
tableListeners: { type: Object, default: () => ({}) },
|
||||
|
||||
/**
|
||||
* 选择列可选规则,透传给 el-table-column 的 selectable。
|
||||
* 例:row => row.active === 1
|
||||
*/
|
||||
selectionSelectable: { type: Function, default: null },
|
||||
|
||||
/**
|
||||
* 帮助文档的跳转 URL。传了才显示工具栏右侧的问号按钮,点击新窗口打开
|
||||
* 例:'/docs/factory-area-help.html'
|
||||
@@ -426,6 +433,14 @@ export default {
|
||||
this.$emit('selection-change', val)
|
||||
},
|
||||
|
||||
clearSelection () {
|
||||
if (this.$refs.table && this.$refs.table.clearSelection) {
|
||||
this.$refs.table.clearSelection()
|
||||
}
|
||||
this.tableSelected = []
|
||||
this.$emit('selection-change', [])
|
||||
},
|
||||
|
||||
/* ============ 帮助按钮 ============ */
|
||||
|
||||
openHelp () {
|
||||
|
||||
Reference in New Issue
Block a user