vxe-table 3.9.14 → 3.9.16
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/es/style.css +1 -1
- package/es/table/module/custom/panel.js +28 -20
- package/es/ui/index.js +2 -2
- package/es/ui/src/log.js +1 -1
- package/es/ui/src/vn.js +1 -1
- package/lib/index.umd.js +37 -24
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/module/custom/panel.js +33 -20
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/ui/index.js +2 -2
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/ui/src/vn.js +1 -1
- package/lib/ui/src/vn.min.js +1 -1
- package/package.json +1 -1
- package/packages/table/module/custom/panel.ts +28 -20
- package/packages/ui/src/vn.ts +1 -1
- /package/es/{iconfont.1729498231071.ttf → iconfont.1729581009320.ttf} +0 -0
- /package/es/{iconfont.1729498231071.woff → iconfont.1729581009320.woff} +0 -0
- /package/es/{iconfont.1729498231071.woff2 → iconfont.1729581009320.woff2} +0 -0
- /package/lib/{iconfont.1729498231071.ttf → iconfont.1729581009320.ttf} +0 -0
- /package/lib/{iconfont.1729498231071.woff → iconfont.1729581009320.woff} +0 -0
- /package/lib/{iconfont.1729498231071.woff2 → iconfont.1729581009320.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -2220,9 +2220,9 @@ function getClass(property, params) {
|
|
|
2220
2220
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
2221
2221
|
|
|
2222
2222
|
|
|
2223
|
-
const version = "3.9.
|
|
2223
|
+
const version = "3.9.16";
|
|
2224
2224
|
core_.VxeUI.version = version;
|
|
2225
|
-
core_.VxeUI.tableVersion = "3.9.
|
|
2225
|
+
core_.VxeUI.tableVersion = "3.9.16";
|
|
2226
2226
|
core_.VxeUI.setConfig({
|
|
2227
2227
|
emptyCell: ' ',
|
|
2228
2228
|
table: {
|
|
@@ -2764,7 +2764,7 @@ function isNodeElement(elem) {
|
|
|
2764
2764
|
const {
|
|
2765
2765
|
log: log_log
|
|
2766
2766
|
} = core_.VxeUI;
|
|
2767
|
-
const log_version = `table v${"3.9.
|
|
2767
|
+
const log_version = `table v${"3.9.16"}`;
|
|
2768
2768
|
const warnLog = log_log.create('warn', log_version);
|
|
2769
2769
|
const errLog = log_log.create('error', log_version);
|
|
2770
2770
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -3392,7 +3392,7 @@ function colToVisible($xeTable, column) {
|
|
|
3392
3392
|
;// CONCATENATED MODULE: ./packages/ui/src/vn.ts
|
|
3393
3393
|
|
|
3394
3394
|
function getOnName(type) {
|
|
3395
|
-
return type;
|
|
3395
|
+
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().kebabCase(type);
|
|
3396
3396
|
}
|
|
3397
3397
|
function getModelEvent(renderOpts) {
|
|
3398
3398
|
switch (renderOpts.name) {
|
|
@@ -13645,7 +13645,7 @@ const renderSimplePanel = (h, _vm) => {
|
|
|
13645
13645
|
colid: column.id
|
|
13646
13646
|
},
|
|
13647
13647
|
class: ['vxe-table-custom--option', `level--${column.level}`, {
|
|
13648
|
-
'is--hidden': isHidden,
|
|
13648
|
+
'is--hidden': isDisabled || isHidden,
|
|
13649
13649
|
'is--group': isColGroup
|
|
13650
13650
|
}],
|
|
13651
13651
|
on: {
|
|
@@ -13675,12 +13675,12 @@ const renderSimplePanel = (h, _vm) => {
|
|
|
13675
13675
|
class: 'vxe-table-custom--sort-option'
|
|
13676
13676
|
}, [h('span', {
|
|
13677
13677
|
class: ['vxe-table-custom--sort-btn', {
|
|
13678
|
-
'is--disabled': isHidden
|
|
13678
|
+
'is--disabled': isDisabled || isHidden
|
|
13679
13679
|
}],
|
|
13680
13680
|
attrs: {
|
|
13681
13681
|
title: panel_getI18n('vxe.custom.setting.sortHelpTip')
|
|
13682
13682
|
},
|
|
13683
|
-
on: isHidden ? {} : {
|
|
13683
|
+
on: isDisabled || isHidden ? {} : {
|
|
13684
13684
|
mousedown: _vm.sortMousedownEvent,
|
|
13685
13685
|
mouseup: _vm.sortMouseupEvent
|
|
13686
13686
|
}
|
|
@@ -13705,7 +13705,7 @@ const renderSimplePanel = (h, _vm) => {
|
|
|
13705
13705
|
mode: 'text',
|
|
13706
13706
|
icon: column.renderFixed === 'left' ? panel_getIcon().TOOLBAR_TOOLS_FIXED_LEFT_ACTIVE : panel_getIcon().TOOLBAR_TOOLS_FIXED_LEFT,
|
|
13707
13707
|
status: column.renderFixed === 'left' ? 'primary' : '',
|
|
13708
|
-
disabled: isHidden || isMaxFixedColumn && !column.renderFixed,
|
|
13708
|
+
disabled: isDisabled || isHidden || isMaxFixedColumn && !column.renderFixed,
|
|
13709
13709
|
title: panel_getI18n(column.renderFixed === 'left' ? 'vxe.toolbar.cancelFixed' : 'vxe.toolbar.fixedLeft')
|
|
13710
13710
|
},
|
|
13711
13711
|
on: {
|
|
@@ -13718,7 +13718,7 @@ const renderSimplePanel = (h, _vm) => {
|
|
|
13718
13718
|
mode: 'text',
|
|
13719
13719
|
icon: column.renderFixed === 'right' ? panel_getIcon().TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE : panel_getIcon().TOOLBAR_TOOLS_FIXED_RIGHT,
|
|
13720
13720
|
status: column.renderFixed === 'right' ? 'primary' : '',
|
|
13721
|
-
disabled: isHidden || isMaxFixedColumn && !column.renderFixed,
|
|
13721
|
+
disabled: isDisabled || isHidden || isMaxFixedColumn && !column.renderFixed,
|
|
13722
13722
|
title: panel_getI18n(column.renderFixed === 'right' ? 'vxe.toolbar.cancelFixed' : 'vxe.toolbar.fixedRight')
|
|
13723
13723
|
},
|
|
13724
13724
|
on: {
|
|
@@ -13891,12 +13891,12 @@ const renderPopupPanel = (h, _vm) => {
|
|
|
13891
13891
|
class: 'vxe-table-custom-popup--column-item col--sort'
|
|
13892
13892
|
}, [column.level === 1 ? h('span', {
|
|
13893
13893
|
class: ['vxe-table-custom-popup--column-sort-btn', {
|
|
13894
|
-
'is--disabled': isHidden
|
|
13894
|
+
'is--disabled': isDisabled || isHidden
|
|
13895
13895
|
}],
|
|
13896
13896
|
attrs: {
|
|
13897
13897
|
title: panel_getI18n('vxe.custom.setting.sortHelpTip')
|
|
13898
13898
|
},
|
|
13899
|
-
on: isHidden ? {} : {
|
|
13899
|
+
on: isDisabled || isHidden ? {} : {
|
|
13900
13900
|
mousedown: _vm.sortMousedownEvent,
|
|
13901
13901
|
mouseup: _vm.sortMouseupEvent
|
|
13902
13902
|
}
|
|
@@ -13921,7 +13921,7 @@ const renderPopupPanel = (h, _vm) => {
|
|
|
13921
13921
|
}, [column.children && column.children.length ? h('span', '-') : VxeUIInputComponent ? h(VxeUIInputComponent, {
|
|
13922
13922
|
props: {
|
|
13923
13923
|
type: 'integer',
|
|
13924
|
-
disabled: isHidden,
|
|
13924
|
+
disabled: isDisabled || isHidden,
|
|
13925
13925
|
value: column.renderResizeWidth
|
|
13926
13926
|
},
|
|
13927
13927
|
on: {
|
|
@@ -13936,19 +13936,19 @@ const renderPopupPanel = (h, _vm) => {
|
|
|
13936
13936
|
value: column.renderFixed || '',
|
|
13937
13937
|
type: 'button',
|
|
13938
13938
|
size: 'mini',
|
|
13939
|
-
disabled: isHidden,
|
|
13939
|
+
disabled: isDisabled || isHidden,
|
|
13940
13940
|
options: [{
|
|
13941
13941
|
label: panel_getI18n('vxe.custom.setting.fixedLeft'),
|
|
13942
13942
|
value: 'left',
|
|
13943
|
-
disabled: isHidden || isMaxFixedColumn
|
|
13943
|
+
disabled: isDisabled || isHidden || isMaxFixedColumn
|
|
13944
13944
|
}, {
|
|
13945
13945
|
label: panel_getI18n('vxe.custom.setting.fixedUnset'),
|
|
13946
13946
|
value: '',
|
|
13947
|
-
disabled: isHidden
|
|
13947
|
+
disabled: isDisabled || isHidden
|
|
13948
13948
|
}, {
|
|
13949
13949
|
label: panel_getI18n('vxe.custom.setting.fixedRight'),
|
|
13950
13950
|
value: 'right',
|
|
13951
|
-
disabled: isHidden || isMaxFixedColumn
|
|
13951
|
+
disabled: isDisabled || isHidden || isMaxFixedColumn
|
|
13952
13952
|
}]
|
|
13953
13953
|
},
|
|
13954
13954
|
on: {
|
|
@@ -14402,30 +14402,43 @@ const renderPopupPanel = (h, _vm) => {
|
|
|
14402
14402
|
customOpts
|
|
14403
14403
|
} = $xetable;
|
|
14404
14404
|
const {
|
|
14405
|
-
checkMethod
|
|
14405
|
+
checkMethod,
|
|
14406
|
+
visibleMethod
|
|
14406
14407
|
} = customOpts;
|
|
14407
14408
|
const isAll = !customStore.isAll;
|
|
14408
14409
|
if (customOpts.immediate) {
|
|
14409
14410
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(customColumnList, column => {
|
|
14410
|
-
if (
|
|
14411
|
+
if (visibleMethod && !visibleMethod({
|
|
14412
|
+
column
|
|
14413
|
+
})) {
|
|
14414
|
+
return;
|
|
14415
|
+
}
|
|
14416
|
+
if (checkMethod && !checkMethod({
|
|
14411
14417
|
column
|
|
14412
14418
|
})) {
|
|
14413
|
-
|
|
14414
|
-
column.renderVisible = isAll;
|
|
14415
|
-
column.halfVisible = false;
|
|
14419
|
+
return;
|
|
14416
14420
|
}
|
|
14421
|
+
column.visible = isAll;
|
|
14422
|
+
column.renderVisible = isAll;
|
|
14423
|
+
column.halfVisible = false;
|
|
14417
14424
|
});
|
|
14418
14425
|
customStore.isAll = isAll;
|
|
14419
14426
|
$xetable.handleCustom();
|
|
14420
14427
|
$xetable.saveCustomStore('update:visible');
|
|
14421
14428
|
} else {
|
|
14422
14429
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(customColumnList, column => {
|
|
14423
|
-
if (
|
|
14430
|
+
if (visibleMethod && !visibleMethod({
|
|
14424
14431
|
column
|
|
14425
14432
|
})) {
|
|
14426
|
-
|
|
14427
|
-
|
|
14433
|
+
return;
|
|
14434
|
+
}
|
|
14435
|
+
if (checkMethod && !checkMethod({
|
|
14436
|
+
column
|
|
14437
|
+
})) {
|
|
14438
|
+
return;
|
|
14428
14439
|
}
|
|
14440
|
+
column.renderVisible = isAll;
|
|
14441
|
+
column.halfVisible = false;
|
|
14429
14442
|
});
|
|
14430
14443
|
customStore.isAll = isAll;
|
|
14431
14444
|
}
|