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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sone-ui-component-3.2.4",
3
- "version": "2.1.64",
3
+ "version": "2.1.65",
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 优化代码 硬是让我删掉了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>
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.64',
60
+ version: '2.1.65',
61
61
  locale: locale.use,
62
62
  i18n: locale.i18n,
63
63
  install,