vsyswin-ui 0.2.82 → 0.2.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/vsyswin-ui.common.js +60 -50
- package/lib/vsyswin-ui.common.js.map +1 -1
- package/lib/vsyswin-ui.umd.js +60 -50
- package/lib/vsyswin-ui.umd.js.map +1 -1
- package/lib/vsyswin-ui.umd.min.js +7 -7
- package/lib/vsyswin-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/packages/table/src/table.vue +10 -0
package/package.json
CHANGED
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
:expand-row-keys="expandRowKeys"
|
|
21
21
|
@sort-change="handleSortChange"
|
|
22
22
|
@selection-change="handleSelectionChange"
|
|
23
|
+
@select-all="handleSelectAll"
|
|
24
|
+
@select="handleSelect"
|
|
23
25
|
@expand-change="handleExpandChange"
|
|
24
26
|
@header-dragend="handleHeaderDragend"
|
|
25
27
|
>
|
|
@@ -431,6 +433,14 @@ export default {
|
|
|
431
433
|
this.selection = selection;
|
|
432
434
|
this.$emit('selection-change', selection);
|
|
433
435
|
},
|
|
436
|
+
// 当用户手动勾选全选 Checkbox 时触发的事件
|
|
437
|
+
handleSelectAll (selection) {
|
|
438
|
+
this.$emit('select-all', selection);
|
|
439
|
+
},
|
|
440
|
+
// 当用户手动勾选数据行的 Checkbox 时触发的事件
|
|
441
|
+
handleSelect (selection, row) {
|
|
442
|
+
this.$emit('select', selection, row);
|
|
443
|
+
},
|
|
434
444
|
// 表格行展开事件
|
|
435
445
|
handleExpandChange (row, value) {
|
|
436
446
|
this.$emit('expand-change', row, value);
|