sone-ui-component-3.2.4 2.1.63 → 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.
@@ -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.63',
60
+ version: '2.1.65',
61
61
  locale: locale.use,
62
62
  i18n: locale.i18n,
63
63
  install,