sone-ui-component-3.2.4 2.1.20 → 2.1.22

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": "sone-ui-component-3.2.4",
3
- "version": "2.1.20",
3
+ "version": "2.1.22",
4
4
  "private": false,
5
5
  "main": "lib/sone-ui.common.js",
6
6
  "files": [
@@ -57,7 +57,8 @@
57
57
  @filter-change="filterChange"
58
58
  @row-click="rowClick"
59
59
  @header-dragend="onHeaderDragend"
60
- @selection-change="handleSelectionChange">
60
+ @select="selectChange"
61
+ @select-all="selectAll">
61
62
  <el-table-column
62
63
  v-if="operation"
63
64
  fixed
@@ -121,6 +122,7 @@
121
122
  v-if="option.selection"
122
123
  fixed
123
124
  type="selection"
125
+ :show-overflow-tooltip="false"
124
126
  :width="option.selectionWidth || 45">
125
127
  </el-table-column>
126
128
  <template v-for="(column, index) in internalColumns">
@@ -409,8 +411,11 @@
409
411
  this.$emit('handleColumnFilter', columnName, columnIndex, data)
410
412
  }
411
413
  },
412
- handleSelectionChange(val){
413
- this.$emit('handleChecked', val);
414
+ selectChange(selection, row){
415
+ this.$emit('handleChecked', selection, row);
416
+ },
417
+ selectAll(selection){
418
+ this.$emit('selectAll', selection);
414
419
  },
415
420
  toggleSelection(rows, selected = true) {
416
421
  if (rows) {
package/src/index.js CHANGED
@@ -57,7 +57,7 @@ if (typeof window !== 'undefined' && window.Vue) {
57
57
  }
58
58
 
59
59
  export default {
60
- version: '2.1.20',
60
+ version: '2.1.22',
61
61
  locale: locale.use,
62
62
  i18n: locale.i18n,
63
63
  install,
@@ -46,6 +46,7 @@
46
46
  display: flex !important;
47
47
  justify-content: center !important;
48
48
  align-items: center !important;
49
+ padding: 0 !important;
49
50
  }
50
51
  }
51
52