vxe-table 3.8.8-beta.5 → 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 +5 -10
- 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 +179 -54
- 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 +60 -0
- 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 +5 -10
- 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 +56 -0
- package/packages/v-x-e-table/src/conf.js +5 -1
- package/styles/custom.scss +41 -5
- package/styles/table.scss +1 -0
- /package/lib/icon/style/{iconfont.1717729278146.ttf → iconfont.1717772226455.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1717729278146.woff → iconfont.1717772226455.woff} +0 -0
- /package/lib/icon/style/{iconfont.1717729278146.woff2 → iconfont.1717772226455.woff2} +0 -0
- /package/lib/{iconfont.1717729278146.ttf → iconfont.1717772226455.ttf} +0 -0
- /package/lib/{iconfont.1717729278146.woff → iconfont.1717772226455.woff} +0 -0
- /package/lib/{iconfont.1717729278146.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,
|
|
@@ -34653,6 +34718,7 @@ var Validator = VxeTableValidatorModule;
|
|
|
34653
34718
|
var colid = column.getKey();
|
|
34654
34719
|
column.renderFixed = column.fixed;
|
|
34655
34720
|
column.renderVisible = column.visible;
|
|
34721
|
+
column.renderResizeWidth = column.renderWidth;
|
|
34656
34722
|
sortMaps[colid] = column.renderSortNumber;
|
|
34657
34723
|
fixedMaps[colid] = column.fixed;
|
|
34658
34724
|
visibleMaps[colid] = column.visible;
|
|
@@ -34683,20 +34749,14 @@ var Validator = VxeTableValidatorModule;
|
|
|
34683
34749
|
return this.$nextTick();
|
|
34684
34750
|
},
|
|
34685
34751
|
calcMaxHeight: function calcMaxHeight() {
|
|
34686
|
-
var $
|
|
34752
|
+
var $el = this.$el,
|
|
34687
34753
|
customStore = this.customStore;
|
|
34688
|
-
var customWrapperElem = $refs.customWrapper ? $refs.customWrapper.$el : null;
|
|
34689
|
-
var headElem = $refs.tableHeader ? $refs.tableHeader.$el : null;
|
|
34690
|
-
var bodyElem = $refs.tableBody ? $refs.tableBody.$el : null;
|
|
34691
34754
|
// 判断面板不能大于表格高度
|
|
34692
34755
|
var tableHeight = 0;
|
|
34693
|
-
if (
|
|
34694
|
-
tableHeight
|
|
34695
|
-
}
|
|
34696
|
-
if (bodyElem) {
|
|
34697
|
-
tableHeight += bodyElem.clientHeight;
|
|
34756
|
+
if ($el) {
|
|
34757
|
+
tableHeight = $el.clientHeight - 30;
|
|
34698
34758
|
}
|
|
34699
|
-
customStore.maxHeight = Math.max(
|
|
34759
|
+
customStore.maxHeight = Math.max(4, tableHeight);
|
|
34700
34760
|
},
|
|
34701
34761
|
checkCustomStatus: function checkCustomStatus() {
|
|
34702
34762
|
var customStore = this.customStore,
|
|
@@ -34764,6 +34824,7 @@ var Validator = VxeTableValidatorModule;
|
|
|
34764
34824
|
|
|
34765
34825
|
|
|
34766
34826
|
|
|
34827
|
+
|
|
34767
34828
|
var panel_formatText = utils.formatText;
|
|
34768
34829
|
var panel_addClass = dom.addClass,
|
|
34769
34830
|
panel_removeClass = dom.removeClass;
|
|
@@ -34792,9 +34853,11 @@ var renderSimplePanel = function renderSimplePanel(h, _vm) {
|
|
|
34792
34853
|
var maxHeight = customStore.maxHeight;
|
|
34793
34854
|
var checkMethod = customOpts.checkMethod,
|
|
34794
34855
|
visibleMethod = customOpts.visibleMethod,
|
|
34856
|
+
allowVisible = customOpts.allowVisible,
|
|
34795
34857
|
allowSort = customOpts.allowSort,
|
|
34796
34858
|
allowFixed = customOpts.allowFixed,
|
|
34797
|
-
trigger = customOpts.trigger
|
|
34859
|
+
trigger = customOpts.trigger,
|
|
34860
|
+
placement = customOpts.placement;
|
|
34798
34861
|
var colVNs = [];
|
|
34799
34862
|
var customWrapperOns = {};
|
|
34800
34863
|
// hover 触发
|
|
@@ -34827,7 +34890,7 @@ var renderSimplePanel = function renderSimplePanel(h, _vm) {
|
|
|
34827
34890
|
dragend: _vm.sortDragendEvent,
|
|
34828
34891
|
dragover: _vm.sortDragoverEvent
|
|
34829
34892
|
}
|
|
34830
|
-
}, [h('div', {
|
|
34893
|
+
}, [allowVisible ? h('div', {
|
|
34831
34894
|
class: ['vxe-table-custom--checkbox-option', {
|
|
34832
34895
|
'is--checked': isChecked,
|
|
34833
34896
|
'is--indeterminate': isIndeterminate,
|
|
@@ -34845,7 +34908,7 @@ var renderSimplePanel = function renderSimplePanel(h, _vm) {
|
|
|
34845
34908
|
}
|
|
34846
34909
|
}, [h('span', {
|
|
34847
34910
|
class: ['vxe-checkbox--icon', isIndeterminate ? conf.icon.TABLE_CHECKBOX_INDETERMINATE : isChecked ? conf.icon.TABLE_CHECKBOX_CHECKED : conf.icon.TABLE_CHECKBOX_UNCHECKED]
|
|
34848
|
-
})]), allowSort && column.level === 1 ? h('div', {
|
|
34911
|
+
})]) : _e(), allowSort && column.level === 1 ? h('div', {
|
|
34849
34912
|
class: 'vxe-table-custom--sort-option'
|
|
34850
34913
|
}, [h('span', {
|
|
34851
34914
|
class: 'vxe-table-custom--sort-btn',
|
|
@@ -34898,14 +34961,17 @@ var renderSimplePanel = function renderSimplePanel(h, _vm) {
|
|
|
34898
34961
|
var isAllIndeterminate = customStore.isIndeterminate;
|
|
34899
34962
|
return h('div', {
|
|
34900
34963
|
key: 'simple',
|
|
34901
|
-
class: ['vxe-table-custom-wrapper', {
|
|
34964
|
+
class: ['vxe-table-custom-wrapper', "placement--".concat(placement), {
|
|
34902
34965
|
'is--active': customStore.visible
|
|
34903
|
-
}]
|
|
34966
|
+
}],
|
|
34967
|
+
style: maxHeight && !['left', 'right'].includes(placement) ? {
|
|
34968
|
+
maxHeight: "".concat(maxHeight, "px")
|
|
34969
|
+
} : {}
|
|
34904
34970
|
}, customStore.visible ? [h('ul', {
|
|
34905
34971
|
class: 'vxe-table-custom--header'
|
|
34906
34972
|
}, [h('li', {
|
|
34907
34973
|
class: 'vxe-table-custom--option'
|
|
34908
|
-
}, [h('div', {
|
|
34974
|
+
}, [allowVisible ? h('div', {
|
|
34909
34975
|
class: ['vxe-table-custom--checkbox-option', {
|
|
34910
34976
|
'is--checked': isAllChecked,
|
|
34911
34977
|
'is--indeterminate': isAllIndeterminate
|
|
@@ -34920,7 +34986,9 @@ var renderSimplePanel = function renderSimplePanel(h, _vm) {
|
|
|
34920
34986
|
class: ['vxe-checkbox--icon', isAllIndeterminate ? conf.icon.TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? conf.icon.TABLE_CHECKBOX_CHECKED : conf.icon.TABLE_CHECKBOX_UNCHECKED]
|
|
34921
34987
|
}), h('span', {
|
|
34922
34988
|
class: 'vxe-checkbox--label'
|
|
34923
|
-
}, 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', {
|
|
34924
34992
|
ref: 'bodyElemRef',
|
|
34925
34993
|
class: 'vxe-table-custom--list-wrapper'
|
|
34926
34994
|
}, [h('transition-group', {
|
|
@@ -34929,9 +34997,6 @@ var renderSimplePanel = function renderSimplePanel(h, _vm) {
|
|
|
34929
34997
|
name: 'vxe-table-custom--list',
|
|
34930
34998
|
tag: 'ul'
|
|
34931
34999
|
},
|
|
34932
|
-
style: maxHeight ? {
|
|
34933
|
-
maxHeight: "".concat(maxHeight, "px")
|
|
34934
|
-
} : {},
|
|
34935
35000
|
on: customWrapperOns
|
|
34936
35001
|
}, colVNs), h('div', {
|
|
34937
35002
|
ref: 'dragHintElemRef',
|
|
@@ -34963,8 +35028,10 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
34963
35028
|
customColumnList = $xetable.customColumnList,
|
|
34964
35029
|
columnOpts = $xetable.columnOpts,
|
|
34965
35030
|
isMaxFixedColumn = $xetable.isMaxFixedColumn;
|
|
34966
|
-
var
|
|
35031
|
+
var allowVisible = customOpts.allowVisible,
|
|
35032
|
+
allowSort = customOpts.allowSort,
|
|
34967
35033
|
allowFixed = customOpts.allowFixed,
|
|
35034
|
+
allowResizable = customOpts.allowResizable,
|
|
34968
35035
|
checkMethod = customOpts.checkMethod,
|
|
34969
35036
|
visibleMethod = customOpts.visibleMethod;
|
|
34970
35037
|
var trVNs = [];
|
|
@@ -34993,7 +35060,7 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
34993
35060
|
dragend: _vm.sortDragendEvent,
|
|
34994
35061
|
dragover: _vm.sortDragoverEvent
|
|
34995
35062
|
}
|
|
34996
|
-
}, [h('td', {
|
|
35063
|
+
}, [allowVisible ? h('td', {
|
|
34997
35064
|
class: 'vxe-table-custom-popup--column-item col--visible'
|
|
34998
35065
|
}, [h('div', {
|
|
34999
35066
|
class: ['vxe-table-custom--checkbox-option', {
|
|
@@ -35013,7 +35080,7 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
35013
35080
|
}
|
|
35014
35081
|
}, [h('span', {
|
|
35015
35082
|
class: ['vxe-checkbox--icon', isIndeterminate ? conf.icon.TABLE_CHECKBOX_INDETERMINATE : isChecked ? conf.icon.TABLE_CHECKBOX_CHECKED : conf.icon.TABLE_CHECKBOX_UNCHECKED]
|
|
35016
|
-
})])]), allowSort ? h('td', {
|
|
35083
|
+
})])]) : _e(), allowSort ? h('td', {
|
|
35017
35084
|
class: 'vxe-table-custom-popup--column-item col--sort'
|
|
35018
35085
|
}, [column.level === 1 ? h('span', {
|
|
35019
35086
|
class: 'vxe-table-custom-popup--column-sort-btn',
|
|
@@ -35026,16 +35093,29 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
35026
35093
|
}
|
|
35027
35094
|
}, [h('i', {
|
|
35028
35095
|
class: conf.icon.TABLE_CUSTOM_SORT
|
|
35029
|
-
})]) :
|
|
35096
|
+
})]) : h('span', '-')]) : _e(), h('td', {
|
|
35030
35097
|
class: 'vxe-table-custom-popup--column-item col--name'
|
|
35031
35098
|
}, [h('div', {
|
|
35032
35099
|
class: 'vxe-table-custom-popup--name',
|
|
35033
35100
|
attrs: {
|
|
35034
35101
|
title: colTitle
|
|
35035
35102
|
}
|
|
35036
|
-
}, 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', {
|
|
35037
35117
|
class: 'vxe-table-custom-popup--column-item col--fixed'
|
|
35038
|
-
}, [
|
|
35118
|
+
}, [parent ? h('span', '-') : h('vxe-radio-group', {
|
|
35039
35119
|
props: {
|
|
35040
35120
|
value: column.renderFixed || '',
|
|
35041
35121
|
type: 'button',
|
|
@@ -35060,7 +35140,7 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
35060
35140
|
// changePopupFixedOption(column)
|
|
35061
35141
|
// }
|
|
35062
35142
|
}
|
|
35063
|
-
})
|
|
35143
|
+
})]) : _e()]));
|
|
35064
35144
|
}
|
|
35065
35145
|
});
|
|
35066
35146
|
var isAllChecked = customStore.isAll;
|
|
@@ -35071,10 +35151,10 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
35071
35151
|
className: 'vxe-table-custom-popup-wrapper vxe-table--ignore-clear',
|
|
35072
35152
|
value: customStore.visible,
|
|
35073
35153
|
title: conf.i18n('vxe.custom.cstmTitle'),
|
|
35074
|
-
width:
|
|
35075
|
-
minWidth:
|
|
35076
|
-
height:
|
|
35077
|
-
minHeight:
|
|
35154
|
+
width: 700,
|
|
35155
|
+
minWidth: 700,
|
|
35156
|
+
height: 400,
|
|
35157
|
+
minHeight: 400,
|
|
35078
35158
|
mask: true,
|
|
35079
35159
|
lockView: true,
|
|
35080
35160
|
showFooter: true,
|
|
@@ -35094,11 +35174,11 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
35094
35174
|
class: 'vxe-table-custom-popup--body'
|
|
35095
35175
|
}, [h('div', {
|
|
35096
35176
|
class: 'vxe-table-custom-popup--table-wrapper'
|
|
35097
|
-
}, [h('table', {}, [h('colgroup', {}, [h('col', {
|
|
35177
|
+
}, [h('table', {}, [h('colgroup', {}, [allowVisible ? h('col', {
|
|
35098
35178
|
style: {
|
|
35099
35179
|
width: '80px'
|
|
35100
35180
|
}
|
|
35101
|
-
}), allowSort ? h('col', {
|
|
35181
|
+
}) : _e(), allowSort ? h('col', {
|
|
35102
35182
|
style: {
|
|
35103
35183
|
width: '80px'
|
|
35104
35184
|
}
|
|
@@ -35106,11 +35186,15 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
35106
35186
|
style: {
|
|
35107
35187
|
minWidth: '120px'
|
|
35108
35188
|
}
|
|
35109
|
-
}),
|
|
35189
|
+
}), allowResizable ? h('col', {
|
|
35190
|
+
style: {
|
|
35191
|
+
width: '140px'
|
|
35192
|
+
}
|
|
35193
|
+
}) : _e(), allowFixed ? h('col', {
|
|
35110
35194
|
style: {
|
|
35111
35195
|
width: '200px'
|
|
35112
35196
|
}
|
|
35113
|
-
}) : _e()]), h('thead', {}, [h('tr', {}, [h('th', {}, [h('div', {
|
|
35197
|
+
}) : _e()]), h('thead', {}, [h('tr', {}, [allowVisible ? h('th', {}, [h('div', {
|
|
35114
35198
|
class: ['vxe-table-custom--checkbox-option', {
|
|
35115
35199
|
'is--checked': isAllChecked,
|
|
35116
35200
|
'is--indeterminate': isAllIndeterminate
|
|
@@ -35125,7 +35209,7 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
35125
35209
|
class: ['vxe-checkbox--icon', isAllIndeterminate ? conf.icon.TABLE_CHECKBOX_INDETERMINATE : isAllChecked ? conf.icon.TABLE_CHECKBOX_CHECKED : conf.icon.TABLE_CHECKBOX_UNCHECKED]
|
|
35126
35210
|
}), h('span', {
|
|
35127
35211
|
class: 'vxe-checkbox--label'
|
|
35128
|
-
}, conf.i18n('vxe.toolbar.customAll'))])]), allowSort ? h('th', {}, [h('span', {
|
|
35212
|
+
}, conf.i18n('vxe.toolbar.customAll'))])]) : _e(), allowSort ? h('th', {}, [h('span', {
|
|
35129
35213
|
class: 'vxe-table-custom-popup--table-sort-help-title'
|
|
35130
35214
|
}, conf.i18n('vxe.custom.setting.colSort')), h('vxe-tooltip', {
|
|
35131
35215
|
props: {
|
|
@@ -35139,7 +35223,7 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
35139
35223
|
});
|
|
35140
35224
|
}
|
|
35141
35225
|
}
|
|
35142
|
-
})]) : _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', {
|
|
35143
35227
|
class: 'vxe-table-custom--body',
|
|
35144
35228
|
props: {
|
|
35145
35229
|
tag: 'tbody',
|
|
@@ -35239,18 +35323,38 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
35239
35323
|
updateStore({
|
|
35240
35324
|
id: id,
|
|
35241
35325
|
type: type,
|
|
35242
|
-
storeData:
|
|
35326
|
+
storeData: $xetable.getCustomStoreData()
|
|
35243
35327
|
});
|
|
35244
35328
|
}
|
|
35245
35329
|
},
|
|
35246
35330
|
confirmCustomEvent: function confirmCustomEvent(evnt) {
|
|
35247
35331
|
var $xetable = this.$xetable;
|
|
35248
|
-
var
|
|
35249
|
-
|
|
35250
|
-
|
|
35251
|
-
|
|
35252
|
-
|
|
35253
|
-
|
|
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
|
+
}
|
|
35254
35358
|
});
|
|
35255
35359
|
$xetable.closeCustom();
|
|
35256
35360
|
$xetable.emitCustomEvent('confirm', evnt);
|
|
@@ -35259,19 +35363,33 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
35259
35363
|
cancelCustomEvent: function cancelCustomEvent(evnt) {
|
|
35260
35364
|
var $xetable = this.$xetable;
|
|
35261
35365
|
var customStore = $xetable.customStore,
|
|
35366
|
+
customOpts = $xetable.customOpts,
|
|
35262
35367
|
customColumnList = $xetable.customColumnList;
|
|
35263
35368
|
var oldSortMaps = customStore.oldSortMaps,
|
|
35264
35369
|
oldFixedMaps = customStore.oldFixedMaps,
|
|
35265
35370
|
oldVisibleMaps = customStore.oldVisibleMaps;
|
|
35371
|
+
var allowVisible = customOpts.allowVisible,
|
|
35372
|
+
allowSort = customOpts.allowSort,
|
|
35373
|
+
allowFixed = customOpts.allowFixed,
|
|
35374
|
+
allowResizable = customOpts.allowResizable;
|
|
35266
35375
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(customColumnList, function (column) {
|
|
35267
35376
|
var colid = column.getKey();
|
|
35268
35377
|
var visible = !!oldVisibleMaps[colid];
|
|
35269
35378
|
var fixed = oldFixedMaps[colid] || '';
|
|
35270
|
-
|
|
35271
|
-
|
|
35272
|
-
|
|
35273
|
-
|
|
35274
|
-
|
|
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
|
+
}
|
|
35275
35393
|
}, {
|
|
35276
35394
|
children: 'children'
|
|
35277
35395
|
});
|
|
@@ -35283,7 +35401,7 @@ var renderPopupPanel = function renderPopupPanel(h, _vm) {
|
|
|
35283
35401
|
$xetable.resetColumn(true);
|
|
35284
35402
|
$xetable.closeCustom();
|
|
35285
35403
|
$xetable.emitCustomEvent('reset', evnt);
|
|
35286
|
-
this.handleSaveStore('
|
|
35404
|
+
this.handleSaveStore('reset');
|
|
35287
35405
|
},
|
|
35288
35406
|
resetCustomEvent: function resetCustomEvent(evnt) {
|
|
35289
35407
|
var _this = this;
|
|
@@ -37657,6 +37775,12 @@ var Toolbar = VxeToolbar;
|
|
|
37657
37775
|
}
|
|
37658
37776
|
},
|
|
37659
37777
|
className: [String, Function],
|
|
37778
|
+
pageSizePlacement: {
|
|
37779
|
+
type: String,
|
|
37780
|
+
default: function _default() {
|
|
37781
|
+
return conf.pager.pageSizePlacement;
|
|
37782
|
+
}
|
|
37783
|
+
},
|
|
37660
37784
|
// 自定义图标
|
|
37661
37785
|
iconPrevPage: String,
|
|
37662
37786
|
iconJumpPrev: String,
|
|
@@ -37881,7 +38005,7 @@ var Toolbar = VxeToolbar;
|
|
|
37881
38005
|
class: 'vxe-pager--sizes',
|
|
37882
38006
|
props: {
|
|
37883
38007
|
value: this.pageSize,
|
|
37884
|
-
placement:
|
|
38008
|
+
placement: this.pageSizePlacement,
|
|
37885
38009
|
transfer: this.transfer,
|
|
37886
38010
|
options: this.sizeList
|
|
37887
38011
|
},
|
|
@@ -42271,6 +42395,7 @@ var Pulldown = VxePulldown;
|
|
|
42271
42395
|
colSort: '排序',
|
|
42272
42396
|
sortHelpTip: '点击并拖动图标可以调整列的排序',
|
|
42273
42397
|
colTitle: '标题',
|
|
42398
|
+
colResizable: '列宽(像素)',
|
|
42274
42399
|
colVisible: '是否显示',
|
|
42275
42400
|
colFixed: '冻结列(最多 {0} 列)',
|
|
42276
42401
|
fixedLeft: '左侧',
|