sone-ui-component-3.2.4 2.1.21 → 2.1.23

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.21",
3
+ "version": "2.1.23",
4
4
  "private": false,
5
5
  "main": "lib/sone-ui.common.js",
6
6
  "files": [
@@ -1,5 +1,5 @@
1
1
  <!--
2
- * @Description: 直接copy的table 删掉了一些树的逻辑
2
+ * @Description: 直接copy的table 优化代码 硬是让我删掉了800行。。。
3
3
  * @Author:xjl
4
4
  * @Date:2021-09-10 11:03
5
5
  -->
@@ -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
@@ -138,7 +139,7 @@
138
139
  :prop="column.prop"
139
140
  :width="column.width"
140
141
  :align="column.hasOwnProperty('align') ? column.align : 'left'"
141
- :show-overflow-tooltip="false"
142
+ :show-overflow-tooltip="column.hasOwnProperty('showOverflowTooltip') ? column.showOverflowTooltip : false"
142
143
  filter-placement="bottom-end"
143
144
  :header-align="column.hasOwnProperty('headerAlign') ? column.headerAlign : 'left'"
144
145
  :column-key="column.hasOwnProperty('elementId')? column.elementId:column.prop"
@@ -182,11 +183,7 @@
182
183
  <!--表体-->
183
184
  <template slot-scope="scope">
184
185
  <slot :index="scope.$index" :name="column.slotCell" :row="scope.row" v-if="column.slotCell"></slot>
185
- <template v-else>
186
- <el-tooltip :content="String(scope.row[column.prop])" placement="top" effect="light" popper-class="over_popper">
187
- <span class="over_title">{{ scope.row[column.prop] }}</span>
188
- </el-tooltip>
189
- </template>
186
+ <template v-else>{{ scope.row[column.prop] }}</template>
190
187
  </template>
191
188
  </el-table-column>
192
189
  </template>
@@ -410,8 +407,11 @@
410
407
  this.$emit('handleColumnFilter', columnName, columnIndex, data)
411
408
  }
412
409
  },
413
- handleSelectionChange(val){
414
- this.$emit('handleChecked', val);
410
+ selectChange(selection, row){
411
+ this.$emit('handleChecked', selection, row);
412
+ },
413
+ selectAll(selection){
414
+ this.$emit('selectAll', selection);
415
415
  },
416
416
  toggleSelection(rows, selected = true) {
417
417
  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.21',
60
+ version: '2.1.23',
61
61
  locale: locale.use,
62
62
  i18n: locale.i18n,
63
63
  install,