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/lib/sone-ui.common.js +12 -12
- package/lib/sone-ui.common.js.map +1 -1
- package/lib/sone-ui.umd.js +12 -12
- package/lib/sone-ui.umd.js.map +1 -1
- package/lib/sone-ui.umd.min.js +1 -1
- package/lib/sone-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/packages/normalTable/src/main.vue +10 -10
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -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
|
-
@
|
|
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
|
-
|
|
414
|
-
this.$emit('handleChecked',
|
|
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) {
|