vxe-table 3.8.8-beta.4 → 3.8.8-beta.6
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/custom/src/mixin.js +7 -12
- package/lib/custom/src/mixin.min.js +1 -1
- package/lib/custom/src/panel.js +97 -40
- package/lib/custom/src/panel.min.js +1 -1
- package/lib/custom/style/style.css +38 -6
- package/lib/custom/style/style.min.css +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.umd.js +184 -61
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/en-US.js +1 -0
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +1 -0
- package/lib/locale/lang/es-ES.js +1 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +1 -0
- package/lib/locale/lang/ja-JP.js +1 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +1 -0
- package/lib/locale/lang/pt-BR.js +1 -0
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +1 -0
- package/lib/locale/lang/zh-CN.js +1 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +1 -0
- package/lib/locale/lang/zh-HK.min.js +1 -1
- package/lib/locale/lang/zh-HK.umd.js +1 -0
- package/lib/locale/lang/zh-MO.min.js +1 -1
- package/lib/locale/lang/zh-MO.umd.js +1 -0
- package/lib/locale/lang/zh-TC.js +1 -0
- package/lib/locale/lang/zh-TC.min.js +1 -1
- package/lib/locale/lang/zh-TC.umd.js +1 -0
- package/lib/locale/lang/zh-TW.min.js +1 -1
- package/lib/locale/lang/zh-TW.umd.js +1 -0
- package/lib/pager/src/pager.js +7 -1
- package/lib/pager/src/pager.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/columnInfo.js +1 -0
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/methods.js +63 -5
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/style/style.css +1 -0
- package/lib/table/style/style.min.css +1 -1
- package/lib/tools/log.js +1 -1
- package/lib/tools/log.min.js +1 -1
- package/lib/v-x-e-table/index.js +1 -1
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/src/conf.js +5 -1
- package/lib/v-x-e-table/src/conf.min.js +1 -1
- package/lib/vxe-table/style/style.css +1 -0
- package/lib/vxe-table/style/style.min.css +1 -1
- package/lib/vxe-table-custom-module/style/style.css +38 -6
- package/lib/vxe-table-custom-module/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/custom/src/mixin.js +7 -12
- package/packages/custom/src/panel.js +116 -57
- package/packages/locale/lang/en-US.js +1 -0
- package/packages/locale/lang/es-ES.js +1 -0
- package/packages/locale/lang/ja-JP.js +1 -0
- package/packages/locale/lang/pt-BR.js +1 -0
- package/packages/locale/lang/zh-CN.js +1 -0
- package/packages/locale/lang/zh-TC.js +1 -0
- package/packages/pager/src/pager.js +5 -1
- package/packages/table/src/columnInfo.js +2 -0
- package/packages/table/src/methods.js +59 -5
- package/packages/v-x-e-table/src/conf.js +5 -1
- package/styles/custom.scss +41 -5
- package/styles/modules.scss +1 -0
- package/styles/table.scss +1 -0
- /package/lib/icon/style/{iconfont.1717666909963.ttf → iconfont.1717772226455.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1717666909963.woff → iconfont.1717772226455.woff} +0 -0
- /package/lib/icon/style/{iconfont.1717666909963.woff2 → iconfont.1717772226455.woff2} +0 -0
- /package/lib/{iconfont.1717666909963.ttf → iconfont.1717772226455.ttf} +0 -0
- /package/lib/{iconfont.1717666909963.woff → iconfont.1717772226455.woff} +0 -0
- /package/lib/{iconfont.1717666909963.woff2 → iconfont.1717772226455.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -11145,9 +11145,12 @@ var iconPrefix = 'vxe-icon-';
|
|
|
11145
11145
|
// visibleMethod () {}
|
|
11146
11146
|
// },
|
|
11147
11147
|
customConfig: {
|
|
11148
|
+
allowVisible: true,
|
|
11149
|
+
allowResizable: true,
|
|
11148
11150
|
allowFixed: true,
|
|
11149
11151
|
allowSort: true,
|
|
11150
|
-
showFooter: true
|
|
11152
|
+
showFooter: true,
|
|
11153
|
+
placement: 'topRight'
|
|
11151
11154
|
// storage: false,
|
|
11152
11155
|
// checkMethod () {}
|
|
11153
11156
|
},
|
|
@@ -11351,6 +11354,7 @@ var iconPrefix = 'vxe-icon-';
|
|
|
11351
11354
|
leaveDelay: 300
|
|
11352
11355
|
},
|
|
11353
11356
|
pager: {
|
|
11357
|
+
pageSizePlacement: 'top'
|
|
11354
11358
|
// size: null,
|
|
11355
11359
|
// autoHidden: false,
|
|
11356
11360
|
// perfect: true,
|
|
@@ -11481,7 +11485,7 @@ var es_array_concat = __webpack_require__(8706);
|
|
|
11481
11485
|
|
|
11482
11486
|
|
|
11483
11487
|
function getLog(message, params) {
|
|
11484
|
-
return "[vxe-table v".concat("3.8.8-beta.
|
|
11488
|
+
return "[vxe-table v".concat("3.8.8-beta.6", "] ").concat(conf.i18n(message, params));
|
|
11485
11489
|
}
|
|
11486
11490
|
function outLog(type) {
|
|
11487
11491
|
return function (message, params) {
|
|
@@ -13161,7 +13165,7 @@ function setIcon(options) {
|
|
|
13161
13165
|
var globalStore = {};
|
|
13162
13166
|
var VXETable = {
|
|
13163
13167
|
v: v,
|
|
13164
|
-
version: "3.8.8-beta.
|
|
13168
|
+
version: "3.8.8-beta.6",
|
|
13165
13169
|
reg: reg,
|
|
13166
13170
|
use: use,
|
|
13167
13171
|
setConfig: setConfig,
|
|
@@ -13295,6 +13299,7 @@ var ColumnInfo = /*#__PURE__*/function () {
|
|
|
13295
13299
|
renderVisible: false,
|
|
13296
13300
|
renderWidth: 0,
|
|
13297
13301
|
renderHeight: 0,
|
|
13302
|
+
renderResizeWidth: 0,
|
|
13298
13303
|
resizeWidth: 0,
|
|
13299
13304
|
renderLeft: 0,
|
|
13300
13305
|
renderArgs: [],
|
|
@@ -18458,6 +18463,7 @@ var Methods = {
|
|
|
18458
18463
|
})) {
|
|
18459
18464
|
column.visible = column.defaultVisible;
|
|
18460
18465
|
}
|
|
18466
|
+
column.renderResizeWidth = column.renderWidth;
|
|
18461
18467
|
});
|
|
18462
18468
|
if (opts.resizable) {
|
|
18463
18469
|
this.saveCustomResizable(true);
|
|
@@ -18695,6 +18701,65 @@ var Methods = {
|
|
|
18695
18701
|
localStorage.setItem(visibleStorageKey, external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toJSONString(columnVisibleStorageMap));
|
|
18696
18702
|
}
|
|
18697
18703
|
},
|
|
18704
|
+
getCustomStoreData: function getCustomStoreData() {
|
|
18705
|
+
var id = this.id,
|
|
18706
|
+
collectColumn = this.collectColumn,
|
|
18707
|
+
customOpts = this.customOpts;
|
|
18708
|
+
var checkMethod = customOpts.checkMethod;
|
|
18709
|
+
var resizableData = {};
|
|
18710
|
+
var sortData = {};
|
|
18711
|
+
var visibleData = {};
|
|
18712
|
+
var fixedData = {};
|
|
18713
|
+
var storeData = {
|
|
18714
|
+
resizableData: resizableData,
|
|
18715
|
+
sortData: sortData,
|
|
18716
|
+
visibleData: visibleData,
|
|
18717
|
+
fixedData: fixedData
|
|
18718
|
+
};
|
|
18719
|
+
if (!id) {
|
|
18720
|
+
errLog('vxe.error.reqProp', ['id']);
|
|
18721
|
+
return storeData;
|
|
18722
|
+
}
|
|
18723
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(collectColumn, function (column, index, items, path, parent) {
|
|
18724
|
+
// 排序只支持一级
|
|
18725
|
+
if (!parent) {
|
|
18726
|
+
collectColumn.forEach(function (column) {
|
|
18727
|
+
var colKey = column.getKey();
|
|
18728
|
+
if (colKey) {
|
|
18729
|
+
sortData[colKey] = column.renderSortNumber;
|
|
18730
|
+
}
|
|
18731
|
+
});
|
|
18732
|
+
}
|
|
18733
|
+
if (column.resizeWidth) {
|
|
18734
|
+
var colKey = column.getKey();
|
|
18735
|
+
if (colKey) {
|
|
18736
|
+
resizableData[colKey] = column.renderWidth;
|
|
18737
|
+
}
|
|
18738
|
+
}
|
|
18739
|
+
if (column.fixed && column.fixed !== column.defaultFixed) {
|
|
18740
|
+
var _colKey2 = column.getKey();
|
|
18741
|
+
if (_colKey2) {
|
|
18742
|
+
fixedData[_colKey2] = column.fixed;
|
|
18743
|
+
}
|
|
18744
|
+
}
|
|
18745
|
+
if (!checkMethod || checkMethod({
|
|
18746
|
+
column: column
|
|
18747
|
+
})) {
|
|
18748
|
+
if (!column.visible && column.defaultVisible) {
|
|
18749
|
+
var _colKey3 = column.getKey();
|
|
18750
|
+
if (_colKey3) {
|
|
18751
|
+
visibleData[_colKey3] = false;
|
|
18752
|
+
}
|
|
18753
|
+
} else if (column.visible && !column.defaultVisible) {
|
|
18754
|
+
var _colKey4 = column.getKey();
|
|
18755
|
+
if (_colKey4) {
|
|
18756
|
+
visibleData[_colKey4] = true;
|
|
18757
|
+
}
|
|
18758
|
+
}
|
|
18759
|
+
}
|
|
18760
|
+
});
|
|
18761
|
+
return storeData;
|
|
18762
|
+
},
|
|
18698
18763
|
saveCustomResizable: function saveCustomResizable(isReset) {
|
|
18699
18764
|
var id = this.id,
|
|
18700
18765
|
collectColumn = this.collectColumn,
|
|
@@ -18746,11 +18811,9 @@ var Methods = {
|
|
|
18746
18811
|
columnWidthStorage = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isPlainObject(columnSortStorageMap[id]) ? columnSortStorageMap[id] : {};
|
|
18747
18812
|
// 排序只支持一级
|
|
18748
18813
|
collectColumn.forEach(function (column) {
|
|
18749
|
-
|
|
18750
|
-
|
|
18751
|
-
|
|
18752
|
-
columnWidthStorage[colKey] = column.renderSortNumber;
|
|
18753
|
-
}
|
|
18814
|
+
var colKey = column.getKey();
|
|
18815
|
+
if (colKey) {
|
|
18816
|
+
columnWidthStorage[colKey] = column.renderSortNumber;
|
|
18754
18817
|
}
|
|
18755
18818
|
});
|
|
18756
18819
|
}
|
|
@@ -34655,6 +34718,7 @@ var Validator = VxeTableValidatorModule;
|
|
|
34655
34718
|
var colid = column.getKey();
|
|
34656
34719
|
column.renderFixed = column.fixed;
|
|
34657
34720
|
column.renderVisible = column.visible;
|
|
34721
|
+
column.renderResizeWidth = column.renderWidth;
|
|
34658
34722
|
sortMaps[colid] = column.renderSortNumber;
|
|
34659
34723
|
fixedMaps[colid] = column.fixed;
|
|
34660
34724
|
visibleMaps[colid] = column.visible;
|
|
@@ -34685,20 +34749,14 @@ var Validator = VxeTableValidatorModule;
|
|
|
34685
34749
|
return this.$nextTick();
|
|
34686
34750
|
},
|
|
34687
34751
|
calcMaxHeight: function calcMaxHeight() {
|
|
34688
|
-
var $
|
|
34752
|
+
var $el = this.$el,
|
|
34689
34753
|
customStore = this.customStore;
|
|
34690
|
-
var customWrapperElem = $refs.customWrapper ? $refs.customWrapper.$el : null;
|
|
34691
|
-
var headElem = $refs.tableHeader ? $refs.tableHeader.$el : null;
|
|
34692
|
-
var bodyElem = $refs.tableBody ? $refs.tableBody.$el : null;
|
|
34693
34754
|
// 判断面板不能大于表格高度
|
|
34694
34755
|
var tableHeight = 0;
|
|
34695
|
-
if (
|
|
34696
|
-
tableHeight
|
|
34697
|
-
}
|
|
34698
|
-
if (bodyElem) {
|
|
34699
|
-
tableHeight += bodyElem.clientHeight;
|
|
34756
|
+
if ($el) {
|
|
34757
|
+
tableHeight = $el.clientHeight - 30;
|
|
34700
34758
|
}
|
|
34701
|
-
customStore.maxHeight = Math.max(
|
|
34759
|
+
customStore.maxHeight = Math.max(4, tableHeight);
|
|
34702
34760
|
},
|
|
34703
34761
|
checkCustomStatus: function checkCustomStatus() {
|
|
34704
34762
|
var customStore = this.customStore,
|
|
@@ -34708,12 +34766,12 @@ var Validator = VxeTableValidatorModule;
|
|
|
34708
34766
|
customStore.isAll = collectColumn.every(function (column) {
|
|
34709
34767
|
return (checkMethod ? !checkMethod({
|
|
34710
34768
|
column: column
|
|
34711
|
-
}) : false) || column.
|
|
34769
|
+
}) : false) || column.renderVisible;
|
|
34712
34770
|
});
|
|
34713
34771
|
customStore.isIndeterminate = !customStore.isAll && collectColumn.some(function (column) {
|
|
34714
34772
|
return (!checkMethod || checkMethod({
|
|
34715
34773
|
column: column
|
|
34716
|
-
})) && (column.
|
|
34774
|
+
})) && (column.renderVisible || column.halfVisible);
|
|
34717
34775
|
});
|
|
34718
34776
|
},
|
|
34719
34777
|
emitCustomEvent: function emitCustomEvent(type, evnt) {
|
|
@@ -34766,6 +34824,7 @@ var Validator = VxeTableValidatorModule;
|
|
|
34766
34824
|
|
|
34767
34825
|
|
|
34768
34826
|
|
|
34827
|
+
|
|
34769
34828
|
var panel_formatText = utils.formatText;
|
|
34770
34829
|
var panel_addClass = dom.addClass,
|
|
34771
34830
|
panel_removeClass = dom.removeClass;
|
|
@@ -34794,9 +34853,11 @@ var renderSimplePanel = function renderSimplePanel(h, _vm) {
|
|
|
34794
34853
|
var maxHeight = customStore.maxHeight;
|
|
34795
34854
|
var checkMethod = customOpts.checkMethod,
|
|
34796
34855
|
visibleMethod = customOpts.visibleMethod,
|
|
34856
|
+
allowVisible = customOpts.allowVisible,
|
|
34797
34857
|
allowSort = customOpts.allowSort,
|
|
34798
34858
|
allowFixed = customOpts.allowFixed,
|
|
34799
|
-
trigger = customOpts.trigger
|
|
34859
|
+
trigger = customOpts.trigger,
|
|
34860
|
+
placement = customOpts.placement;
|
|
34800
34861
|
var colVNs = [];
|
|
34801
34862
|
var customWrapperOns = {};
|
|
34802
34863
|
// hover 触发
|
|
@@ -34829,7 +34890,7 @@ var renderSimplePanel = function renderSimplePanel(h, _vm) {
|
|
|
34829
34890
|
dragend: _vm.sortDragendEvent,
|
|
34830
34891
|
dragover: _vm.sortDragoverEvent
|
|
34831
34892
|
}
|
|
34832
|
-
}, [h('div', {
|
|
34893
|
+
}, [allowVisible ? h('div', {
|
|
34833
34894
|
class: ['vxe-table-custom--checkbox-option', {
|
|
34834
34895
|
'is--checked': isChecked,
|
|
34835
34896
|
'is--indeterminate': isIndeterminate,
|
|
@@ -34847,7 +34908,7 @@ var renderSimplePanel = function renderSimplePanel(h, _vm) {
|
|
|
34847
34908
|
}
|
|
34848
34909
|
}, [h('span', {
|
|
34849
34910
|
class: ['vxe-checkbox--icon', isIndeterminate ? conf.icon.TABLE_CHECKBOX_INDETERMINATE : isChecked ? conf.icon.TABLE_CHECKBOX_CHECKED : conf.icon.TABLE_CHECKBOX_UNCHECKED]
|
|
34850
|
-
})]), allowSort && column.level === 1 ? h('div', {
|
|
34911
|
+
})]) : _e(), allowSort && column.level === 1 ? h('div', {
|
|
34851
34912
|
class: 'vxe-table-custom--sort-option'
|
|
34852
34913
|
}, [h('span', {
|
|
34853
34914
|
class: 'vxe-table-custom--sort-btn',
|
|
@@ -34900,14 +34961,17 @@ var renderSimplePanel = function renderSimplePanel(h, _vm) {
|
|
|
34900
34961
|
var isAllIndeterminate = customStore.isIndeterminate;
|
|
34901
34962
|
return h('div', {
|
|
34902
34963
|
key: 'simple',
|
|
34903
|
-
class: ['vxe-table-custom-wrapper', {
|
|
34964
|
+
class: ['vxe-table-custom-wrapper', "placement--".concat(placement), {
|
|
34904
34965
|
'is--active': customStore.visible
|
|
34905
|
-
}]
|
|
34966
|
+
}],
|
|
34967
|
+
style: maxHeight && !['left', 'right'].includes(placement) ? {
|
|
34968
|
+
maxHeight: "".concat(maxHeight, "px")
|
|
34969
|
+
} : {}
|
|
34906
34970
|
}, customStore.visible ? [h('ul', {
|
|
34907
34971
|
class: 'vxe-table-custom--header'
|
|
34908
34972
|
}, [h('li', {
|
|
34909
34973
|
class: 'vxe-table-custom--option'
|
|
34910
|
-
}, [h('div', {
|
|
34974
|
+
}, [allowVisible ? h('div', {
|
|
34911
34975
|
class: ['vxe-table-custom--checkbox-option', {
|
|
34912
34976
|
'is--checked': isAllChecked,
|
|
34913
34977
|
'is--indeterminate': isAllIndeterminate
|
|
@@ -34922,7 +34986,9 @@ var renderSimplePanel = function renderSimplePanel(h, _vm) {
|
|
|
34922
34986
|
class: ['vxe-checkbox--icon', isAllIndeterminate ? conf.icon.TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? conf.icon.TABLE_CHECKBOX_CHECKED : conf.icon.TABLE_CHECKBOX_UNCHECKED]
|
|
34923
34987
|
}), h('span', {
|
|
34924
34988
|
class: 'vxe-checkbox--label'
|
|
34925
|
-
}, conf.i18n('vxe.toolbar.customAll'))])
|
|
34989
|
+
}, conf.i18n('vxe.toolbar.customAll'))]) : h('span', {
|
|
34990
|
+
class: 'vxe-checkbox--label'
|
|
34991
|
+
}, conf.i18n('vxe.table.customTitle'))])]), h('div', {
|
|
34926
34992
|
ref: 'bodyElemRef',
|
|
34927
34993
|
class: 'vxe-table-custom--list-wrapper'
|
|
34928
34994
|
}, [h('transition-group', {
|
|
@@ -34931,9 +34997,6 @@ var renderSimplePanel = function renderSimplePanel(h, _vm) {
|
|
|
34931
34997
|
name: 'vxe-table-custom--list',
|
|
34932
34998
|
tag: 'ul'
|
|
34933
34999
|
},
|
|
34934
|
-
style: maxHeight ? {
|
|
34935
|
-
maxHeight: "".concat(maxHeight, "px")
|
|
34936
|
-
} : {},
|
|
34937
35000
|
on: customWrapperOns
|
|
34938
35001
|
}, colVNs), h('div', {
|
|
34939
35002
|
ref: 'dragHintElemRef',
|
|
@@ -34965,8 +35028,10 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
34965
35028
|
customColumnList = $xetable.customColumnList,
|
|
34966
35029
|
columnOpts = $xetable.columnOpts,
|
|
34967
35030
|
isMaxFixedColumn = $xetable.isMaxFixedColumn;
|
|
34968
|
-
var
|
|
35031
|
+
var allowVisible = customOpts.allowVisible,
|
|
35032
|
+
allowSort = customOpts.allowSort,
|
|
34969
35033
|
allowFixed = customOpts.allowFixed,
|
|
35034
|
+
allowResizable = customOpts.allowResizable,
|
|
34970
35035
|
checkMethod = customOpts.checkMethod,
|
|
34971
35036
|
visibleMethod = customOpts.visibleMethod;
|
|
34972
35037
|
var trVNs = [];
|
|
@@ -34995,7 +35060,7 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
34995
35060
|
dragend: _vm.sortDragendEvent,
|
|
34996
35061
|
dragover: _vm.sortDragoverEvent
|
|
34997
35062
|
}
|
|
34998
|
-
}, [h('td', {
|
|
35063
|
+
}, [allowVisible ? h('td', {
|
|
34999
35064
|
class: 'vxe-table-custom-popup--column-item col--visible'
|
|
35000
35065
|
}, [h('div', {
|
|
35001
35066
|
class: ['vxe-table-custom--checkbox-option', {
|
|
@@ -35015,7 +35080,7 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
35015
35080
|
}
|
|
35016
35081
|
}, [h('span', {
|
|
35017
35082
|
class: ['vxe-checkbox--icon', isIndeterminate ? conf.icon.TABLE_CHECKBOX_INDETERMINATE : isChecked ? conf.icon.TABLE_CHECKBOX_CHECKED : conf.icon.TABLE_CHECKBOX_UNCHECKED]
|
|
35018
|
-
})])]), allowSort ? h('td', {
|
|
35083
|
+
})])]) : _e(), allowSort ? h('td', {
|
|
35019
35084
|
class: 'vxe-table-custom-popup--column-item col--sort'
|
|
35020
35085
|
}, [column.level === 1 ? h('span', {
|
|
35021
35086
|
class: 'vxe-table-custom-popup--column-sort-btn',
|
|
@@ -35028,16 +35093,29 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
35028
35093
|
}
|
|
35029
35094
|
}, [h('i', {
|
|
35030
35095
|
class: conf.icon.TABLE_CUSTOM_SORT
|
|
35031
|
-
})]) :
|
|
35096
|
+
})]) : h('span', '-')]) : _e(), h('td', {
|
|
35032
35097
|
class: 'vxe-table-custom-popup--column-item col--name'
|
|
35033
35098
|
}, [h('div', {
|
|
35034
35099
|
class: 'vxe-table-custom-popup--name',
|
|
35035
35100
|
attrs: {
|
|
35036
35101
|
title: colTitle
|
|
35037
35102
|
}
|
|
35038
|
-
}, colTitle)]),
|
|
35103
|
+
}, colTitle)]), allowResizable ? h('td', {
|
|
35104
|
+
class: 'vxe-table-custom-popup--column-item col--resizable'
|
|
35105
|
+
}, [!isChecked || column.children && column.children.length ? h('span', '-') : h('vxe-input', {
|
|
35106
|
+
props: {
|
|
35107
|
+
type: 'integer',
|
|
35108
|
+
min: 40,
|
|
35109
|
+
value: column.renderResizeWidth
|
|
35110
|
+
},
|
|
35111
|
+
on: {
|
|
35112
|
+
modelValue: function modelValue(value) {
|
|
35113
|
+
column.renderResizeWidth = Math.max(40, Number(value));
|
|
35114
|
+
}
|
|
35115
|
+
}
|
|
35116
|
+
})]) : _e(), allowFixed ? h('td', {
|
|
35039
35117
|
class: 'vxe-table-custom-popup--column-item col--fixed'
|
|
35040
|
-
}, [
|
|
35118
|
+
}, [parent ? h('span', '-') : h('vxe-radio-group', {
|
|
35041
35119
|
props: {
|
|
35042
35120
|
value: column.renderFixed || '',
|
|
35043
35121
|
type: 'button',
|
|
@@ -35062,7 +35140,7 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
35062
35140
|
// changePopupFixedOption(column)
|
|
35063
35141
|
// }
|
|
35064
35142
|
}
|
|
35065
|
-
})
|
|
35143
|
+
})]) : _e()]));
|
|
35066
35144
|
}
|
|
35067
35145
|
});
|
|
35068
35146
|
var isAllChecked = customStore.isAll;
|
|
@@ -35073,10 +35151,10 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
35073
35151
|
className: 'vxe-table-custom-popup-wrapper vxe-table--ignore-clear',
|
|
35074
35152
|
value: customStore.visible,
|
|
35075
35153
|
title: conf.i18n('vxe.custom.cstmTitle'),
|
|
35076
|
-
width:
|
|
35077
|
-
minWidth:
|
|
35078
|
-
height:
|
|
35079
|
-
minHeight:
|
|
35154
|
+
width: 700,
|
|
35155
|
+
minWidth: 700,
|
|
35156
|
+
height: 400,
|
|
35157
|
+
minHeight: 400,
|
|
35080
35158
|
mask: true,
|
|
35081
35159
|
lockView: true,
|
|
35082
35160
|
showFooter: true,
|
|
@@ -35096,11 +35174,11 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
35096
35174
|
class: 'vxe-table-custom-popup--body'
|
|
35097
35175
|
}, [h('div', {
|
|
35098
35176
|
class: 'vxe-table-custom-popup--table-wrapper'
|
|
35099
|
-
}, [h('table', {}, [h('colgroup', {}, [h('col', {
|
|
35177
|
+
}, [h('table', {}, [h('colgroup', {}, [allowVisible ? h('col', {
|
|
35100
35178
|
style: {
|
|
35101
35179
|
width: '80px'
|
|
35102
35180
|
}
|
|
35103
|
-
}), allowSort ? h('col', {
|
|
35181
|
+
}) : _e(), allowSort ? h('col', {
|
|
35104
35182
|
style: {
|
|
35105
35183
|
width: '80px'
|
|
35106
35184
|
}
|
|
@@ -35108,11 +35186,15 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
35108
35186
|
style: {
|
|
35109
35187
|
minWidth: '120px'
|
|
35110
35188
|
}
|
|
35111
|
-
}),
|
|
35189
|
+
}), allowResizable ? h('col', {
|
|
35190
|
+
style: {
|
|
35191
|
+
width: '140px'
|
|
35192
|
+
}
|
|
35193
|
+
}) : _e(), allowFixed ? h('col', {
|
|
35112
35194
|
style: {
|
|
35113
35195
|
width: '200px'
|
|
35114
35196
|
}
|
|
35115
|
-
}) : _e()]), h('thead', {}, [h('tr', {}, [h('th', {}, [h('div', {
|
|
35197
|
+
}) : _e()]), h('thead', {}, [h('tr', {}, [allowVisible ? h('th', {}, [h('div', {
|
|
35116
35198
|
class: ['vxe-table-custom--checkbox-option', {
|
|
35117
35199
|
'is--checked': isAllChecked,
|
|
35118
35200
|
'is--indeterminate': isAllIndeterminate
|
|
@@ -35127,7 +35209,7 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
35127
35209
|
class: ['vxe-checkbox--icon', isAllIndeterminate ? conf.icon.TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? conf.icon.TABLE_CHECKBOX_CHECKED : conf.icon.TABLE_CHECKBOX_UNCHECKED]
|
|
35128
35210
|
}), h('span', {
|
|
35129
35211
|
class: 'vxe-checkbox--label'
|
|
35130
|
-
}, conf.i18n('vxe.toolbar.customAll'))])]), allowSort ? h('th', {}, [h('span', {
|
|
35212
|
+
}, conf.i18n('vxe.toolbar.customAll'))])]) : _e(), allowSort ? h('th', {}, [h('span', {
|
|
35131
35213
|
class: 'vxe-table-custom-popup--table-sort-help-title'
|
|
35132
35214
|
}, conf.i18n('vxe.custom.setting.colSort')), h('vxe-tooltip', {
|
|
35133
35215
|
props: {
|
|
@@ -35141,7 +35223,7 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
35141
35223
|
});
|
|
35142
35224
|
}
|
|
35143
35225
|
}
|
|
35144
|
-
})]) : _e(), h('th', {}, conf.i18n('vxe.custom.setting.colTitle')), allowFixed ? h('th', {}, conf.i18n('vxe.custom.setting.colFixed', [columnOpts.maxFixedSize || 0])) : _e()])]), h('transition-group', {
|
|
35226
|
+
})]) : _e(), h('th', {}, conf.i18n('vxe.custom.setting.colTitle')), allowResizable ? h('th', {}, conf.i18n('vxe.custom.setting.colResizable')) : _e(), allowFixed ? h('th', {}, conf.i18n('vxe.custom.setting.colFixed', [columnOpts.maxFixedSize || 0])) : _e()])]), h('transition-group', {
|
|
35145
35227
|
class: 'vxe-table-custom--body',
|
|
35146
35228
|
props: {
|
|
35147
35229
|
tag: 'tbody',
|
|
@@ -35241,18 +35323,38 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
35241
35323
|
updateStore({
|
|
35242
35324
|
id: id,
|
|
35243
35325
|
type: type,
|
|
35244
|
-
storeData:
|
|
35326
|
+
storeData: $xetable.getCustomStoreData()
|
|
35245
35327
|
});
|
|
35246
35328
|
}
|
|
35247
35329
|
},
|
|
35248
35330
|
confirmCustomEvent: function confirmCustomEvent(evnt) {
|
|
35249
35331
|
var $xetable = this.$xetable;
|
|
35250
|
-
var
|
|
35251
|
-
|
|
35252
|
-
|
|
35253
|
-
|
|
35254
|
-
|
|
35255
|
-
|
|
35332
|
+
var customOpts = $xetable.customOpts,
|
|
35333
|
+
customColumnList = $xetable.customColumnList;
|
|
35334
|
+
var allowVisible = customOpts.allowVisible,
|
|
35335
|
+
allowSort = customOpts.allowSort,
|
|
35336
|
+
allowFixed = customOpts.allowFixed,
|
|
35337
|
+
allowResizable = customOpts.allowResizable;
|
|
35338
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(customColumnList, function (column, index, items, path, parent) {
|
|
35339
|
+
if (!parent) {
|
|
35340
|
+
if (allowSort) {
|
|
35341
|
+
var sortIndex = index + 1;
|
|
35342
|
+
column.renderSortNumber = sortIndex;
|
|
35343
|
+
}
|
|
35344
|
+
if (allowFixed) {
|
|
35345
|
+
column.fixed = column.renderFixed;
|
|
35346
|
+
}
|
|
35347
|
+
}
|
|
35348
|
+
if (allowResizable) {
|
|
35349
|
+
if (column.renderVisible && (!column.children || column.children.length)) {
|
|
35350
|
+
if (column.renderResizeWidth !== column.renderWidth) {
|
|
35351
|
+
column.resizeWidth = column.renderResizeWidth;
|
|
35352
|
+
}
|
|
35353
|
+
}
|
|
35354
|
+
}
|
|
35355
|
+
if (allowVisible) {
|
|
35356
|
+
column.visible = column.renderVisible;
|
|
35357
|
+
}
|
|
35256
35358
|
});
|
|
35257
35359
|
$xetable.closeCustom();
|
|
35258
35360
|
$xetable.emitCustomEvent('confirm', evnt);
|
|
@@ -35261,19 +35363,33 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
35261
35363
|
cancelCustomEvent: function cancelCustomEvent(evnt) {
|
|
35262
35364
|
var $xetable = this.$xetable;
|
|
35263
35365
|
var customStore = $xetable.customStore,
|
|
35366
|
+
customOpts = $xetable.customOpts,
|
|
35264
35367
|
customColumnList = $xetable.customColumnList;
|
|
35265
35368
|
var oldSortMaps = customStore.oldSortMaps,
|
|
35266
35369
|
oldFixedMaps = customStore.oldFixedMaps,
|
|
35267
35370
|
oldVisibleMaps = customStore.oldVisibleMaps;
|
|
35371
|
+
var allowVisible = customOpts.allowVisible,
|
|
35372
|
+
allowSort = customOpts.allowSort,
|
|
35373
|
+
allowFixed = customOpts.allowFixed,
|
|
35374
|
+
allowResizable = customOpts.allowResizable;
|
|
35268
35375
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(customColumnList, function (column) {
|
|
35269
35376
|
var colid = column.getKey();
|
|
35270
35377
|
var visible = !!oldVisibleMaps[colid];
|
|
35271
35378
|
var fixed = oldFixedMaps[colid] || '';
|
|
35272
|
-
|
|
35273
|
-
|
|
35274
|
-
|
|
35275
|
-
|
|
35276
|
-
|
|
35379
|
+
if (allowVisible) {
|
|
35380
|
+
column.renderVisible = visible;
|
|
35381
|
+
column.visible = visible;
|
|
35382
|
+
}
|
|
35383
|
+
if (allowFixed) {
|
|
35384
|
+
column.renderFixed = fixed;
|
|
35385
|
+
column.fixed = fixed;
|
|
35386
|
+
}
|
|
35387
|
+
if (allowSort) {
|
|
35388
|
+
column.renderSortNumber = oldSortMaps[colid] || 0;
|
|
35389
|
+
}
|
|
35390
|
+
if (allowResizable) {
|
|
35391
|
+
column.renderResizeWidth = column.renderWidth;
|
|
35392
|
+
}
|
|
35277
35393
|
}, {
|
|
35278
35394
|
children: 'children'
|
|
35279
35395
|
});
|
|
@@ -35285,7 +35401,7 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
35285
35401
|
$xetable.resetColumn(true);
|
|
35286
35402
|
$xetable.closeCustom();
|
|
35287
35403
|
$xetable.emitCustomEvent('reset', evnt);
|
|
35288
|
-
this.handleSaveStore('
|
|
35404
|
+
this.handleSaveStore('reset');
|
|
35289
35405
|
},
|
|
35290
35406
|
resetCustomEvent: function resetCustomEvent(evnt) {
|
|
35291
35407
|
var _this = this;
|
|
@@ -37659,6 +37775,12 @@ var Toolbar = VxeToolbar;
|
|
|
37659
37775
|
}
|
|
37660
37776
|
},
|
|
37661
37777
|
className: [String, Function],
|
|
37778
|
+
pageSizePlacement: {
|
|
37779
|
+
type: String,
|
|
37780
|
+
default: function _default() {
|
|
37781
|
+
return conf.pager.pageSizePlacement;
|
|
37782
|
+
}
|
|
37783
|
+
},
|
|
37662
37784
|
// 自定义图标
|
|
37663
37785
|
iconPrevPage: String,
|
|
37664
37786
|
iconJumpPrev: String,
|
|
@@ -37883,7 +38005,7 @@ var Toolbar = VxeToolbar;
|
|
|
37883
38005
|
class: 'vxe-pager--sizes',
|
|
37884
38006
|
props: {
|
|
37885
38007
|
value: this.pageSize,
|
|
37886
|
-
placement:
|
|
38008
|
+
placement: this.pageSizePlacement,
|
|
37887
38009
|
transfer: this.transfer,
|
|
37888
38010
|
options: this.sizeList
|
|
37889
38011
|
},
|
|
@@ -42273,6 +42395,7 @@ var Pulldown = VxePulldown;
|
|
|
42273
42395
|
colSort: '排序',
|
|
42274
42396
|
sortHelpTip: '点击并拖动图标可以调整列的排序',
|
|
42275
42397
|
colTitle: '标题',
|
|
42398
|
+
colResizable: '列宽(像素)',
|
|
42276
42399
|
colVisible: '是否显示',
|
|
42277
42400
|
colFixed: '冻结列(最多 {0} 列)',
|
|
42278
42401
|
fixedLeft: '左侧',
|