|
|
@@ -101,7 +101,7 @@ export default {
|
|
|
*
|
|
|
*/
|
|
|
selectionAll: {
|
|
|
- type: Object,
|
|
|
+ type: [Object, Array],
|
|
|
default: null
|
|
|
}
|
|
|
},
|
|
|
@@ -263,7 +263,7 @@ export default {
|
|
|
const buttonKey = action.key
|
|
|
let selection = null// 选中数据
|
|
|
if (position === 'toolbar') { // 工具栏
|
|
|
- if (this.selectionAll) {
|
|
|
+ if (this.$utils.isArray(this.selectionAll) && this.selectionAll.length) {
|
|
|
selection = this.selectionAll.map(i => i.id_) // 默认给所有已选择的数据id
|
|
|
} else {
|
|
|
selection = this.getSelectedIds()
|