sone-ui-component-3.2.4 2.1.64 → 2.1.65
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/Notice.md +106 -0
- package/lib/sone-ui.common.js +19 -19
- package/lib/sone-ui.common.js.map +1 -1
- package/lib/sone-ui.umd.js +19 -19
- package/lib/sone-ui.umd.js.map +1 -1
- package/lib/sone-ui.umd.min.js +2 -2
- package/lib/sone-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/packages/normalTable/src/mainNew.vue +1 -6
- package/packages/table/src/mainNew.vue +6 -1
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
* @Description: 直接copy的table 优化代码 硬是让我删掉了800行。。。
|
|
2
|
+
* @Description: 直接copy的table 优化代码 硬是让我删掉了800行。。。 测试发包
|
|
3
3
|
* @Author:xjl
|
|
4
4
|
* @Date:2021-09-10 11:03
|
|
5
5
|
-->
|
|
@@ -282,11 +282,6 @@
|
|
|
282
282
|
type: Boolean,
|
|
283
283
|
default: true,
|
|
284
284
|
},
|
|
285
|
-
sortable: {
|
|
286
|
-
type: [Boolean, String],
|
|
287
|
-
default: false,
|
|
288
|
-
|
|
289
|
-
},
|
|
290
285
|
option: {
|
|
291
286
|
type: Object,
|
|
292
287
|
default: () => {
|
|
@@ -82,6 +82,7 @@
|
|
|
82
82
|
v-loading="loading"
|
|
83
83
|
@header-dragend="onHeaderDragend"
|
|
84
84
|
@expand-change="expandChange"
|
|
85
|
+
@sort-change="sortChange"
|
|
85
86
|
>
|
|
86
87
|
<el-table-column
|
|
87
88
|
:width="operation.width"
|
|
@@ -491,6 +492,7 @@
|
|
|
491
492
|
:align="column.hasOwnProperty('align') ? column.align : 'left'"
|
|
492
493
|
:show-overflow-tooltip="false"
|
|
493
494
|
filter-placement="bottom-end"
|
|
495
|
+
:sortable="column.sortable"
|
|
494
496
|
:header-align="column.hasOwnProperty('headerAlign') ? column.headerAlign : 'left'"
|
|
495
497
|
v-else-if="column.hasOwnProperty('istrue')?column.istrue:true"
|
|
496
498
|
:column-key="column.hasOwnProperty('elementId')? column.elementId:column.prop"
|
|
@@ -1392,7 +1394,10 @@ import IconButton from "sone-ui-component/packages/IconButton/index.vue";
|
|
|
1392
1394
|
},
|
|
1393
1395
|
expandChange(row, expend){
|
|
1394
1396
|
this.$emit('expandChange', row, expend)
|
|
1395
|
-
}
|
|
1397
|
+
},
|
|
1398
|
+
sortChange(val){
|
|
1399
|
+
if(val.column.sortable === 'custom') this.$emit('sortChange', val);
|
|
1400
|
+
},
|
|
1396
1401
|
},
|
|
1397
1402
|
}
|
|
1398
1403
|
</script>
|