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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vsyswin-ui",
3
- "version": "0.2.82",
3
+ "version": "0.2.84",
4
4
  "main": "lib/vsyswin-ui.umd.min.js",
5
5
  "private": false,
6
6
  "description": "Vue2.x的应用组件库.",
@@ -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);