sone-ui-component-3.2.4 2.1.35 → 2.1.37
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 +29 -13
- package/lib/sone-ui.common.js.map +1 -1
- package/lib/sone-ui.umd.js +29 -13
- 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/dialog/src/main.vue +6 -0
- package/packages/normalTable/src/mainNew.vue +11 -1
- package/src/index.js +1 -1
- package/src/styles/table.scss +3 -0
package/package.json
CHANGED
|
@@ -124,10 +124,16 @@ export default {
|
|
|
124
124
|
showDialogFullScreen: {
|
|
125
125
|
type: Boolean,
|
|
126
126
|
default: true,
|
|
127
|
+
},
|
|
128
|
+
width: {
|
|
129
|
+
type: String,
|
|
130
|
+
default: '',
|
|
127
131
|
}
|
|
128
132
|
},
|
|
129
133
|
computed: {
|
|
130
134
|
dialogSize() {
|
|
135
|
+
if(this.width) return this.width;
|
|
136
|
+
|
|
131
137
|
if (this.size == "mini") {
|
|
132
138
|
return "400px";
|
|
133
139
|
}
|
|
@@ -56,7 +56,8 @@
|
|
|
56
56
|
@row-click="rowClick"
|
|
57
57
|
@header-dragend="onHeaderDragend"
|
|
58
58
|
@select="selectChange"
|
|
59
|
-
@select-all="selectAll"
|
|
59
|
+
@select-all="selectAll"
|
|
60
|
+
@sort-change="sortChange">
|
|
60
61
|
<el-table-column
|
|
61
62
|
v-if="operation"
|
|
62
63
|
fixed
|
|
@@ -171,6 +172,7 @@
|
|
|
171
172
|
:align="column.hasOwnProperty('align') ? column.align : 'left'"
|
|
172
173
|
:show-overflow-tooltip="column.hasOwnProperty('showOverflowTooltip') ? column.showOverflowTooltip : false"
|
|
173
174
|
filter-placement="bottom-end"
|
|
175
|
+
:sortable="column.sortable"
|
|
174
176
|
:header-align="column.hasOwnProperty('headerAlign') ? column.headerAlign : 'left'"
|
|
175
177
|
:column-key="column.hasOwnProperty('elementId')? column.elementId:column.prop"
|
|
176
178
|
:resizable="column.hasOwnProperty('resizable') ? column.resizable : true">
|
|
@@ -279,6 +281,11 @@
|
|
|
279
281
|
type: Boolean,
|
|
280
282
|
default: true,
|
|
281
283
|
},
|
|
284
|
+
sortable: {
|
|
285
|
+
type: [Boolean, String],
|
|
286
|
+
default: false,
|
|
287
|
+
|
|
288
|
+
},
|
|
282
289
|
option: {
|
|
283
290
|
type: Object,
|
|
284
291
|
default: () => {
|
|
@@ -491,6 +498,9 @@
|
|
|
491
498
|
this.$refs[this.tabelRef] && this.$refs[this.tabelRef].setCurrentRow(row);
|
|
492
499
|
this.$emit('setCurrentRow', row);
|
|
493
500
|
},
|
|
501
|
+
sortChange(val){
|
|
502
|
+
if(val.column.sortable === 'custom') this.$emit('sortChange', val);
|
|
503
|
+
},
|
|
494
504
|
},
|
|
495
505
|
}
|
|
496
506
|
</script>
|
package/src/index.js
CHANGED