vxe-table 4.7.72 → 4.7.73
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/grid/src/grid.js +1 -1
- package/es/locale/lang/en-US.js +19 -2
- package/es/locale/lang/es-ES.js +19 -2
- package/es/locale/lang/hu-HU.js +23 -2
- package/es/locale/lang/ja-JP.js +19 -2
- package/es/locale/lang/ko-KR.js +19 -2
- package/es/locale/lang/pt-BR.js +19 -2
- package/es/locale/lang/ru-RU.js +19 -2
- package/es/locale/lang/vi-VN.js +19 -2
- package/es/locale/lang/zh-CN.js +19 -2
- package/es/locale/lang/zh-TC.js +19 -2
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/custom/panel.js +147 -75
- package/es/table/style.css +16 -37
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +2 -2
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +16 -37
- package/es/vxe-table/style.min.css +1 -1
- package/lib/grid/src/grid.js +1 -1
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +168 -63
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/en-US.js +19 -2
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +19 -2
- package/lib/locale/lang/es-ES.js +19 -2
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +19 -2
- package/lib/locale/lang/hu-HU.js +23 -2
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/ja-JP.js +19 -2
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +19 -2
- package/lib/locale/lang/ko-KR.js +19 -2
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/pt-BR.js +19 -2
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +19 -2
- package/lib/locale/lang/ru-RU.js +19 -2
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/vi-VN.js +19 -2
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/zh-CN.js +19 -2
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +19 -2
- package/lib/locale/lang/zh-HK.min.js +1 -1
- package/lib/locale/lang/zh-HK.umd.js +19 -2
- package/lib/locale/lang/zh-MO.min.js +1 -1
- package/lib/locale/lang/zh-MO.umd.js +19 -2
- package/lib/locale/lang/zh-TC.js +19 -2
- package/lib/locale/lang/zh-TC.min.js +1 -1
- package/lib/locale/lang/zh-TC.umd.js +19 -2
- package/lib/locale/lang/zh-TW.min.js +1 -1
- package/lib/locale/lang/zh-TW.umd.js +19 -2
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/custom/panel.js +120 -59
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/style/style.css +16 -37
- package/lib/table/style/style.min.css +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/vxe-table/style/style.css +16 -37
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/grid/src/grid.ts +1 -1
- package/packages/locale/lang/en-US.ts +19 -2
- package/packages/locale/lang/es-ES.ts +19 -2
- package/packages/locale/lang/hu-HU.ts +23 -2
- package/packages/locale/lang/ja-JP.ts +19 -2
- package/packages/locale/lang/ko-KR.ts +19 -2
- package/packages/locale/lang/pt-BR.ts +19 -2
- package/packages/locale/lang/ru-RU.ts +19 -2
- package/packages/locale/lang/vi-VN.ts +19 -2
- package/packages/locale/lang/zh-CN.ts +19 -2
- package/packages/locale/lang/zh-TC.ts +19 -2
- package/packages/table/module/custom/panel.ts +147 -70
- package/styles/components/table-module/custom.scss +21 -40
- /package/es/{iconfont.1724722752271.ttf → iconfont.1724892633863.ttf} +0 -0
- /package/es/{iconfont.1724722752271.woff → iconfont.1724892633863.woff} +0 -0
- /package/es/{iconfont.1724722752271.woff2 → iconfont.1724892633863.woff2} +0 -0
- /package/lib/{iconfont.1724722752271.ttf → iconfont.1724892633863.ttf} +0 -0
- /package/lib/{iconfont.1724722752271.woff → iconfont.1724892633863.woff} +0 -0
- /package/lib/{iconfont.1724722752271.woff2 → iconfont.1724892633863.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -1796,6 +1796,8 @@ var external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_defa
|
|
|
1796
1796
|
;// CONCATENATED MODULE: ./node_modules/dom-zindex/es/index.esm.js
|
|
1797
1797
|
var storeEl = null;
|
|
1798
1798
|
var storeId = 'z-index-manage';
|
|
1799
|
+
var styleEl = null;
|
|
1800
|
+
var styleId = 'z-index-style';
|
|
1799
1801
|
var storeMainKey = 'm';
|
|
1800
1802
|
var storeSubKey = 's';
|
|
1801
1803
|
var storeData = {
|
|
@@ -1821,6 +1823,27 @@ function getDomMaxZIndex() {
|
|
|
1821
1823
|
}
|
|
1822
1824
|
return max;
|
|
1823
1825
|
}
|
|
1826
|
+
function getStyle() {
|
|
1827
|
+
if (!styleEl) {
|
|
1828
|
+
if (isDocument()) {
|
|
1829
|
+
styleEl = document.getElementById(styleId);
|
|
1830
|
+
if (!styleEl) {
|
|
1831
|
+
styleEl = document.createElement('style');
|
|
1832
|
+
styleEl.id = styleId;
|
|
1833
|
+
document.getElementsByTagName('head')[0].appendChild(styleEl);
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1836
|
+
}
|
|
1837
|
+
return styleEl;
|
|
1838
|
+
}
|
|
1839
|
+
function updateVar() {
|
|
1840
|
+
var styEl = getStyle();
|
|
1841
|
+
if (styEl) {
|
|
1842
|
+
var prefixes = '--dom-';
|
|
1843
|
+
var propKey = '-z-index';
|
|
1844
|
+
styEl.innerHTML = ':root{' + prefixes + 'main' + propKey + ':' + getCurrent() + ';' + prefixes + 'sub' + propKey + ':' + getSubCurrent() + '}';
|
|
1845
|
+
}
|
|
1846
|
+
}
|
|
1824
1847
|
function getDom() {
|
|
1825
1848
|
if (!storeEl) {
|
|
1826
1849
|
if (isDocument()) {
|
|
@@ -1851,6 +1874,7 @@ function createSetHandle(key) {
|
|
|
1851
1874
|
}
|
|
1852
1875
|
}
|
|
1853
1876
|
}
|
|
1877
|
+
updateVar();
|
|
1854
1878
|
return storeData[key];
|
|
1855
1879
|
};
|
|
1856
1880
|
}
|
|
@@ -1902,6 +1926,7 @@ var DomZIndex = {
|
|
|
1902
1926
|
getSubNext: getSubNext,
|
|
1903
1927
|
getMax: getDomMaxZIndex
|
|
1904
1928
|
};
|
|
1929
|
+
updateVar();
|
|
1905
1930
|
/* harmony default export */ var index_esm = (DomZIndex);
|
|
1906
1931
|
;// CONCATENATED MODULE: ./packages/ui/src/utils.ts
|
|
1907
1932
|
|
|
@@ -1951,9 +1976,9 @@ function eqEmptyValue(cellValue) {
|
|
|
1951
1976
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
1952
1977
|
|
|
1953
1978
|
|
|
1954
|
-
const version = "4.7.
|
|
1979
|
+
const version = "4.7.73";
|
|
1955
1980
|
core_.VxeUI.version = version;
|
|
1956
|
-
core_.VxeUI.tableVersion = "4.7.
|
|
1981
|
+
core_.VxeUI.tableVersion = "4.7.73";
|
|
1957
1982
|
core_.VxeUI.setConfig({
|
|
1958
1983
|
emptyCell: ' ',
|
|
1959
1984
|
table: {
|
|
@@ -2335,7 +2360,7 @@ var es_array_push = __webpack_require__(4114);
|
|
|
2335
2360
|
const {
|
|
2336
2361
|
log: log_log
|
|
2337
2362
|
} = core_.VxeUI;
|
|
2338
|
-
const log_version = `table v${"4.7.
|
|
2363
|
+
const log_version = `table v${"4.7.73"}`;
|
|
2339
2364
|
const warnLog = log_log.create('warn', log_version);
|
|
2340
2365
|
const errLog = log_log.create('error', log_version);
|
|
2341
2366
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -6645,6 +6670,12 @@ const {
|
|
|
6645
6670
|
$xeTable.emitCustomEvent('confirm', $event);
|
|
6646
6671
|
$xeTable.saveCustomStore('confirm');
|
|
6647
6672
|
};
|
|
6673
|
+
const cancelCloseEvent = ({
|
|
6674
|
+
$event
|
|
6675
|
+
}) => {
|
|
6676
|
+
$xeTable.closeCustom();
|
|
6677
|
+
$xeTable.emitCustomEvent('close', $event);
|
|
6678
|
+
};
|
|
6648
6679
|
const cancelCustomEvent = ({
|
|
6649
6680
|
$event
|
|
6650
6681
|
}) => {
|
|
@@ -6731,35 +6762,48 @@ const {
|
|
|
6731
6762
|
const changeCheckboxOption = column => {
|
|
6732
6763
|
const isChecked = !column.renderVisible;
|
|
6733
6764
|
const customOpts = computeCustomOpts.value;
|
|
6734
|
-
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree([column], item => {
|
|
6735
|
-
item.renderVisible = isChecked;
|
|
6736
|
-
item.halfVisible = false;
|
|
6737
|
-
});
|
|
6738
|
-
handleOptionCheck(column);
|
|
6739
6765
|
if (customOpts.immediate) {
|
|
6766
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree([column], item => {
|
|
6767
|
+
item.visible = isChecked;
|
|
6768
|
+
item.renderVisible = isChecked;
|
|
6769
|
+
item.halfVisible = false;
|
|
6770
|
+
});
|
|
6740
6771
|
$xeTable.handleCustom();
|
|
6741
6772
|
$xeTable.saveCustomStore('update:visible');
|
|
6773
|
+
} else {
|
|
6774
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree([column], item => {
|
|
6775
|
+
item.renderVisible = isChecked;
|
|
6776
|
+
item.halfVisible = false;
|
|
6777
|
+
});
|
|
6742
6778
|
}
|
|
6779
|
+
handleOptionCheck(column);
|
|
6743
6780
|
$xeTable.checkCustomStatus();
|
|
6744
6781
|
};
|
|
6745
6782
|
const changeFixedOption = (column, colFixed) => {
|
|
6746
6783
|
const isMaxFixedColumn = computeIsMaxFixedColumn.value;
|
|
6747
|
-
|
|
6748
|
-
|
|
6749
|
-
|
|
6784
|
+
const customOpts = computeCustomOpts.value;
|
|
6785
|
+
if (customOpts.immediate) {
|
|
6786
|
+
if (column.renderFixed === colFixed) {
|
|
6787
|
+
column.fixed = '';
|
|
6788
|
+
column.renderFixed = '';
|
|
6789
|
+
} else {
|
|
6790
|
+
if (!isMaxFixedColumn || column.renderFixed) {
|
|
6791
|
+
column.fixed = colFixed;
|
|
6792
|
+
column.renderFixed = colFixed;
|
|
6793
|
+
}
|
|
6794
|
+
}
|
|
6795
|
+
$xeTable.handleCustom();
|
|
6796
|
+
$xeTable.saveCustomStore('update:fixed');
|
|
6750
6797
|
} else {
|
|
6751
|
-
if (
|
|
6752
|
-
column.renderFixed =
|
|
6753
|
-
|
|
6798
|
+
if (column.renderFixed === colFixed) {
|
|
6799
|
+
column.renderFixed = '';
|
|
6800
|
+
} else {
|
|
6801
|
+
if (!isMaxFixedColumn || column.renderFixed) {
|
|
6802
|
+
column.renderFixed = colFixed;
|
|
6803
|
+
}
|
|
6754
6804
|
}
|
|
6755
6805
|
}
|
|
6756
6806
|
};
|
|
6757
|
-
// const changePopupFixedOption = () => {
|
|
6758
|
-
// const isMaxFixedColumn = computeIsMaxFixedColumn.value
|
|
6759
|
-
// if (!isMaxFixedColumn) {
|
|
6760
|
-
// // $xeTable.setColumnFixed(column, column.fixed)
|
|
6761
|
-
// }
|
|
6762
|
-
// }
|
|
6763
6807
|
const allOptionEvent = () => {
|
|
6764
6808
|
const {
|
|
6765
6809
|
customStore
|
|
@@ -6772,15 +6816,30 @@ const {
|
|
|
6772
6816
|
checkMethod
|
|
6773
6817
|
} = customOpts;
|
|
6774
6818
|
const isAll = !customStore.isAll;
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
-
|
|
6779
|
-
|
|
6780
|
-
|
|
6781
|
-
|
|
6782
|
-
|
|
6783
|
-
|
|
6819
|
+
if (customOpts.immediate) {
|
|
6820
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(customColumnList, column => {
|
|
6821
|
+
if (!checkMethod || checkMethod({
|
|
6822
|
+
column
|
|
6823
|
+
})) {
|
|
6824
|
+
column.visible = isAll;
|
|
6825
|
+
column.renderVisible = isAll;
|
|
6826
|
+
column.halfVisible = false;
|
|
6827
|
+
}
|
|
6828
|
+
});
|
|
6829
|
+
customStore.isAll = isAll;
|
|
6830
|
+
$xeTable.handleCustom();
|
|
6831
|
+
$xeTable.saveCustomStore('update:visible');
|
|
6832
|
+
} else {
|
|
6833
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(customColumnList, column => {
|
|
6834
|
+
if (!checkMethod || checkMethod({
|
|
6835
|
+
column
|
|
6836
|
+
})) {
|
|
6837
|
+
column.renderVisible = isAll;
|
|
6838
|
+
column.halfVisible = false;
|
|
6839
|
+
}
|
|
6840
|
+
});
|
|
6841
|
+
customStore.isAll = isAll;
|
|
6842
|
+
}
|
|
6784
6843
|
$xeTable.checkCustomStatus();
|
|
6785
6844
|
};
|
|
6786
6845
|
const sortMousedownEvent = evnt => {
|
|
@@ -6815,6 +6874,7 @@ const {
|
|
|
6815
6874
|
const {
|
|
6816
6875
|
customColumnList
|
|
6817
6876
|
} = reactData;
|
|
6877
|
+
const customOpts = computeCustomOpts.value;
|
|
6818
6878
|
const trEl = evnt.currentTarget;
|
|
6819
6879
|
const dragHintEl = dragHintElemRef.value;
|
|
6820
6880
|
if (prevDropTrEl) {
|
|
@@ -6850,6 +6910,16 @@ const {
|
|
|
6850
6910
|
}
|
|
6851
6911
|
removeClass(trEl, 'active--drag-target');
|
|
6852
6912
|
removeClass(trEl, 'active--drag-origin');
|
|
6913
|
+
if (customOpts.immediate) {
|
|
6914
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(customColumnList, (column, index, items, path, parent) => {
|
|
6915
|
+
if (!parent) {
|
|
6916
|
+
const sortIndex = index + 1;
|
|
6917
|
+
column.renderSortNumber = sortIndex;
|
|
6918
|
+
}
|
|
6919
|
+
});
|
|
6920
|
+
$xeTable.handleCustom();
|
|
6921
|
+
$xeTable.saveCustomStore('update:sort');
|
|
6922
|
+
}
|
|
6853
6923
|
};
|
|
6854
6924
|
const sortDragoverEvent = evnt => {
|
|
6855
6925
|
const trEl = evnt.currentTarget;
|
|
@@ -6923,6 +6993,7 @@ const {
|
|
|
6923
6993
|
const isDisabled = checkMethod ? !checkMethod({
|
|
6924
6994
|
column
|
|
6925
6995
|
}) : false;
|
|
6996
|
+
const isHidden = !isChecked;
|
|
6926
6997
|
colVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('li', {
|
|
6927
6998
|
key: column.id,
|
|
6928
6999
|
colid: column.id,
|
|
@@ -6949,10 +7020,14 @@ const {
|
|
|
6949
7020
|
})]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), allowSort && column.level === 1 ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
6950
7021
|
class: 'vxe-table-custom--sort-option'
|
|
6951
7022
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
6952
|
-
class: 'vxe-table-custom--sort-btn',
|
|
7023
|
+
class: ['vxe-table-custom--sort-btn', {
|
|
7024
|
+
'is--disabled': isHidden
|
|
7025
|
+
}],
|
|
6953
7026
|
title: panel_getI18n('vxe.custom.setting.sortHelpTip'),
|
|
6954
|
-
|
|
6955
|
-
|
|
7027
|
+
...(isHidden ? {} : {
|
|
7028
|
+
onMousedown: sortMousedownEvent,
|
|
7029
|
+
onMouseup: sortMouseupEvent
|
|
7030
|
+
})
|
|
6956
7031
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
6957
7032
|
class: panel_getIcon().TABLE_CUSTOM_SORT
|
|
6958
7033
|
})])]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), column.type === 'html' ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
@@ -6964,25 +7039,25 @@ const {
|
|
|
6964
7039
|
class: 'vxe-table-custom--checkbox-label'
|
|
6965
7040
|
}, colTitle), !parent && allowFixed ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
6966
7041
|
class: 'vxe-table-custom--fixed-option'
|
|
6967
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(
|
|
6968
|
-
|
|
6969
|
-
|
|
6970
|
-
|
|
6971
|
-
|
|
7042
|
+
}, [VxeUIButtonComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
|
|
7043
|
+
mode: 'text',
|
|
7044
|
+
icon: column.renderFixed === 'left' ? panel_getIcon().TOOLBAR_TOOLS_FIXED_LEFT_ACTIVE : panel_getIcon().TOOLBAR_TOOLS_FIXED_LEFT,
|
|
7045
|
+
status: column.renderFixed === 'left' ? 'primary' : '',
|
|
7046
|
+
disabled: isHidden || isMaxFixedColumn && !column.renderFixed,
|
|
6972
7047
|
title: panel_getI18n(column.renderFixed === 'left' ? 'vxe.toolbar.cancelFixed' : 'vxe.toolbar.fixedLeft'),
|
|
6973
7048
|
onClick: () => {
|
|
6974
7049
|
changeFixedOption(column, 'left');
|
|
6975
7050
|
}
|
|
6976
|
-
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(
|
|
6977
|
-
|
|
6978
|
-
|
|
6979
|
-
|
|
6980
|
-
|
|
7051
|
+
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), VxeUIButtonComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
|
|
7052
|
+
mode: 'text',
|
|
7053
|
+
icon: column.renderFixed === 'right' ? panel_getIcon().TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE : panel_getIcon().TOOLBAR_TOOLS_FIXED_RIGHT,
|
|
7054
|
+
status: column.renderFixed === 'right' ? 'primary' : '',
|
|
7055
|
+
disabled: isHidden || isMaxFixedColumn && !column.renderFixed,
|
|
6981
7056
|
title: panel_getI18n(column.renderFixed === 'right' ? 'vxe.toolbar.cancelFixed' : 'vxe.toolbar.fixedRight'),
|
|
6982
7057
|
onClick: () => {
|
|
6983
7058
|
changeFixedOption(column, 'right');
|
|
6984
7059
|
}
|
|
6985
|
-
})]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()]));
|
|
7060
|
+
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()]));
|
|
6986
7061
|
}
|
|
6987
7062
|
});
|
|
6988
7063
|
const isAllChecked = customStore.isAll;
|
|
@@ -7029,16 +7104,24 @@ const {
|
|
|
7029
7104
|
class: 'vxe-table-custom-popup--drag-hint'
|
|
7030
7105
|
}, panel_getI18n('vxe.custom.cstmDragTarget', [dragColumn && dragColumn.type !== 'html' ? dragColumn.getTitle() : '']))]), customOpts.showFooter ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
7031
7106
|
class: 'vxe-table-custom--footer'
|
|
7032
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(
|
|
7033
|
-
|
|
7107
|
+
}, [VxeUIButtonComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
|
|
7108
|
+
mode: 'text',
|
|
7109
|
+
content: customOpts.resetButtonText || panel_getI18n('vxe.table.customRestore'),
|
|
7034
7110
|
onClick: resetCustomEvent
|
|
7035
|
-
}
|
|
7036
|
-
|
|
7111
|
+
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), customOpts.immediate ? VxeUIButtonComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
|
|
7112
|
+
mode: 'text',
|
|
7113
|
+
content: customOpts.closeButtonText || panel_getI18n('vxe.table.customClose'),
|
|
7114
|
+
onClick: cancelCloseEvent
|
|
7115
|
+
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)() : VxeUIButtonComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
|
|
7116
|
+
mode: 'text',
|
|
7117
|
+
content: customOpts.cancelButtonText || panel_getI18n('vxe.table.customCancel'),
|
|
7037
7118
|
onClick: cancelCustomEvent
|
|
7038
|
-
}, customOpts.
|
|
7039
|
-
|
|
7119
|
+
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), customOpts.immediate ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)() : VxeUIButtonComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
|
|
7120
|
+
mode: 'text',
|
|
7121
|
+
status: 'primary',
|
|
7122
|
+
content: customOpts.confirmButtonText || panel_getI18n('vxe.table.customConfirm'),
|
|
7040
7123
|
onClick: confirmCustomEvent
|
|
7041
|
-
}
|
|
7124
|
+
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()]) : null] : []);
|
|
7042
7125
|
};
|
|
7043
7126
|
const renderPopupPanel = () => {
|
|
7044
7127
|
const {
|
|
@@ -7081,6 +7164,7 @@ const {
|
|
|
7081
7164
|
const isDisabled = checkMethod ? !checkMethod({
|
|
7082
7165
|
column
|
|
7083
7166
|
}) : false;
|
|
7167
|
+
const isHidden = !isChecked;
|
|
7084
7168
|
trVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', {
|
|
7085
7169
|
key: column.id,
|
|
7086
7170
|
colid: column.id,
|
|
@@ -7109,10 +7193,14 @@ const {
|
|
|
7109
7193
|
})])]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), allowSort ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', {
|
|
7110
7194
|
class: 'vxe-table-custom-popup--column-item col--sort'
|
|
7111
7195
|
}, [column.level === 1 ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
7112
|
-
class: 'vxe-table-custom-popup--column-sort-btn',
|
|
7196
|
+
class: ['vxe-table-custom-popup--column-sort-btn', {
|
|
7197
|
+
'is--disabled': isHidden
|
|
7198
|
+
}],
|
|
7113
7199
|
title: panel_getI18n('vxe.custom.setting.sortHelpTip'),
|
|
7114
|
-
|
|
7115
|
-
|
|
7200
|
+
...(isHidden ? {} : {
|
|
7201
|
+
onMousedown: sortMousedownEvent,
|
|
7202
|
+
onMouseup: sortMouseupEvent
|
|
7203
|
+
})
|
|
7116
7204
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
7117
7205
|
class: panel_getIcon().TABLE_CUSTOM_SORT
|
|
7118
7206
|
})]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', '-')]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', {
|
|
@@ -7127,8 +7215,9 @@ const {
|
|
|
7127
7215
|
title: colTitle
|
|
7128
7216
|
}, colTitle)]), allowResizable ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', {
|
|
7129
7217
|
class: 'vxe-table-custom-popup--column-item col--resizable'
|
|
7130
|
-
}, [
|
|
7218
|
+
}, [column.children && column.children.length ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', '-') : VxeUIInputComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIInputComponent, {
|
|
7131
7219
|
type: 'integer',
|
|
7220
|
+
disabled: isHidden,
|
|
7132
7221
|
modelValue: column.renderResizeWidth,
|
|
7133
7222
|
'onUpdate:modelValue'(value) {
|
|
7134
7223
|
column.renderResizeWidth = Math.max(0, Number(value));
|
|
@@ -7139,24 +7228,23 @@ const {
|
|
|
7139
7228
|
modelValue: column.renderFixed || '',
|
|
7140
7229
|
type: 'button',
|
|
7141
7230
|
size: 'mini',
|
|
7231
|
+
disabled: isHidden,
|
|
7142
7232
|
options: [{
|
|
7143
7233
|
label: panel_getI18n('vxe.custom.setting.fixedLeft'),
|
|
7144
7234
|
value: 'left',
|
|
7145
|
-
disabled: isMaxFixedColumn
|
|
7235
|
+
disabled: isHidden || isMaxFixedColumn
|
|
7146
7236
|
}, {
|
|
7147
7237
|
label: panel_getI18n('vxe.custom.setting.fixedUnset'),
|
|
7148
|
-
value: ''
|
|
7238
|
+
value: '',
|
|
7239
|
+
disabled: isHidden
|
|
7149
7240
|
}, {
|
|
7150
7241
|
label: panel_getI18n('vxe.custom.setting.fixedRight'),
|
|
7151
7242
|
value: 'right',
|
|
7152
|
-
disabled: isMaxFixedColumn
|
|
7243
|
+
disabled: isHidden || isMaxFixedColumn
|
|
7153
7244
|
}],
|
|
7154
7245
|
'onUpdate:modelValue'(value) {
|
|
7155
7246
|
column.renderFixed = value;
|
|
7156
7247
|
}
|
|
7157
|
-
// onChange () {
|
|
7158
|
-
// changePopupFixedOption(column)
|
|
7159
|
-
// }
|
|
7160
7248
|
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()]));
|
|
7161
7249
|
}
|
|
7162
7250
|
});
|
|
@@ -22873,7 +22961,7 @@ const {
|
|
|
22873
22961
|
GLOBAL_EVENT_KEYS: grid_GLOBAL_EVENT_KEYS
|
|
22874
22962
|
} = core_.VxeUI;
|
|
22875
22963
|
const tableComponentPropKeys = Object.keys(props);
|
|
22876
|
-
const tableComponentMethodKeys = ['clearAll', 'syncData', 'updateData', 'loadData', 'reloadData', 'reloadRow', 'loadColumn', 'reloadColumn', 'getRowNode', 'getColumnNode', 'getRowIndex', 'getVTRowIndex', 'getVMRowIndex', 'getColumnIndex', 'getVTColumnIndex', 'getVMColumnIndex', 'setRow', 'createData', 'createRow', 'revertData', 'clearData', 'isInsertByRow', 'isUpdateByRow', 'getColumns', 'getColumnById', 'getColumnByField', 'getTableColumn', 'getData', 'getCheckboxRecords', 'getParentRow', 'getRowSeq', 'getRowById', 'getRowid', 'getTableData', 'setColumnFixed', 'clearColumnFixed', 'setColumnWidth', 'getColumnWidth', 'hideColumn', 'showColumn', 'resetColumn', 'refreshColumn', 'refreshScroll', 'recalculate', 'closeTooltip', 'isAllCheckboxChecked', 'isAllCheckboxIndeterminate', 'getCheckboxIndeterminateRecords', 'setCheckboxRow', 'isCheckedByCheckboxRow', 'isIndeterminateByCheckboxRow', 'toggleCheckboxRow', 'setAllCheckboxRow', 'getRadioReserveRecord', 'clearRadioReserve', 'getCheckboxReserveRecords', 'clearCheckboxReserve', 'toggleAllCheckboxRow', 'clearCheckboxRow', 'setCurrentRow', 'isCheckedByRadioRow', 'setRadioRow', 'clearCurrentRow', 'clearRadioRow', 'getCurrentRecord', 'getRadioRecord', 'getCurrentColumn', 'setCurrentColumn', 'clearCurrentColumn', 'setPendingRow', 'togglePendingRow', 'getPendingRecords', 'clearPendingRow', 'sort', 'clearSort', 'isSort', 'getSortColumns', 'closeFilter', 'isFilter', 'isActiveFilterByColumn', 'isRowExpandLoaded', 'clearRowExpandLoaded', 'reloadRowExpand', 'reloadRowExpand', 'toggleRowExpand', 'setAllRowExpand', 'setRowExpand', 'isExpandByRow', 'isRowExpandByRow', 'clearRowExpand', 'clearRowExpandReserve', 'getRowExpandRecords', 'getTreeExpandRecords', 'isTreeExpandLoaded', 'clearTreeExpandLoaded', 'reloadTreeExpand', 'reloadTreeChilds', 'toggleTreeExpand', 'setAllTreeExpand', 'setTreeExpand', 'isTreeExpandByRow', 'clearTreeExpand', 'clearTreeExpandReserve', 'getScroll', 'scrollTo', 'scrollToRow', 'scrollToColumn', 'clearScroll', 'updateFooter', 'updateStatus', 'setMergeCells', 'removeInsertRow', 'removeMergeCells', 'getMergeCells', 'clearMergeCells', 'setMergeFooterItems', 'removeMergeFooterItems', 'getMergeFooterItems', 'clearMergeFooterItems', 'openTooltip', 'getCellLabel', 'getCellElement', 'focus', 'blur', 'connect'];
|
|
22964
|
+
const tableComponentMethodKeys = ['clearAll', 'syncData', 'updateData', 'loadData', 'reloadData', 'reloadRow', 'loadColumn', 'reloadColumn', 'getRowNode', 'getColumnNode', 'getRowIndex', 'getVTRowIndex', 'getVMRowIndex', 'getColumnIndex', 'getVTColumnIndex', 'getVMColumnIndex', 'setRow', 'createData', 'createRow', 'revertData', 'clearData', 'isInsertByRow', 'isUpdateByRow', 'getColumns', 'getColumnById', 'getColumnByField', 'getTableColumn', 'getData', 'getCheckboxRecords', 'getParentRow', 'getRowSeq', 'getRowById', 'getRowid', 'getTableData', 'setColumnFixed', 'clearColumnFixed', 'setColumnWidth', 'getColumnWidth', 'hideColumn', 'showColumn', 'resetColumn', 'refreshColumn', 'refreshScroll', 'recalculate', 'closeTooltip', 'isAllCheckboxChecked', 'isAllCheckboxIndeterminate', 'getCheckboxIndeterminateRecords', 'setCheckboxRow', 'isCheckedByCheckboxRow', 'isIndeterminateByCheckboxRow', 'toggleCheckboxRow', 'setAllCheckboxRow', 'getRadioReserveRecord', 'clearRadioReserve', 'getCheckboxReserveRecords', 'clearCheckboxReserve', 'toggleAllCheckboxRow', 'clearCheckboxRow', 'setCurrentRow', 'isCheckedByRadioRow', 'setRadioRow', 'clearCurrentRow', 'clearRadioRow', 'getCurrentRecord', 'getRadioRecord', 'getCurrentColumn', 'setCurrentColumn', 'clearCurrentColumn', 'setPendingRow', 'togglePendingRow', 'getPendingRecords', 'clearPendingRow', 'sort', 'clearSort', 'isSort', 'getSortColumns', 'closeFilter', 'isFilter', 'isActiveFilterByColumn', 'isRowExpandLoaded', 'clearRowExpandLoaded', 'reloadRowExpand', 'reloadRowExpand', 'toggleRowExpand', 'setAllRowExpand', 'setRowExpand', 'isExpandByRow', 'isRowExpandByRow', 'clearRowExpand', 'clearRowExpandReserve', 'getRowExpandRecords', 'getTreeExpandRecords', 'isTreeExpandLoaded', 'clearTreeExpandLoaded', 'reloadTreeExpand', 'reloadTreeChilds', 'toggleTreeExpand', 'setAllTreeExpand', 'setTreeExpand', 'isTreeExpandByRow', 'clearTreeExpand', 'clearTreeExpandReserve', 'getScroll', 'scrollTo', 'scrollToRow', 'scrollToColumn', 'clearScroll', 'updateFooter', 'updateStatus', 'setMergeCells', 'removeInsertRow', 'removeMergeCells', 'getMergeCells', 'clearMergeCells', 'setMergeFooterItems', 'removeMergeFooterItems', 'getMergeFooterItems', 'clearMergeFooterItems', 'getCustomStoreData', 'openTooltip', 'getCellLabel', 'getCellElement', 'focus', 'blur', 'connect'];
|
|
22877
22965
|
const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit-invalid', 'form-reset', 'form-collapse', 'form-toggle-collapse', 'proxy-query', 'proxy-delete', 'proxy-save', 'toolbar-button-click', 'toolbar-tool-click', 'zoom'];
|
|
22878
22966
|
/* harmony default export */ var grid = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
22879
22967
|
name: 'VxeGrid',
|
|
@@ -24419,6 +24507,7 @@ const Grid = VxeGrid;
|
|
|
24419
24507
|
customTitle: '列设置',
|
|
24420
24508
|
customAll: '全部',
|
|
24421
24509
|
customConfirm: '确认',
|
|
24510
|
+
customClose: '关闭',
|
|
24422
24511
|
customCancel: '取消',
|
|
24423
24512
|
customRestore: '恢复默认',
|
|
24424
24513
|
maxFixedCol: '最大冻结列的数量不能超过 {0} 个'
|
|
@@ -24771,7 +24860,8 @@ const Grid = VxeGrid;
|
|
|
24771
24860
|
seqTitle: '序号',
|
|
24772
24861
|
showSeq: '显示序号',
|
|
24773
24862
|
showCheckbox: '允许多选',
|
|
24774
|
-
errSubDrag: '子表不支持该控件,请使用其他控件'
|
|
24863
|
+
errSubDrag: '子表不支持该控件,请使用其他控件',
|
|
24864
|
+
colPlace: '将控件拖拽进来'
|
|
24775
24865
|
},
|
|
24776
24866
|
uploadProp: {
|
|
24777
24867
|
limitFileCount: '文件数量限制',
|
|
@@ -24796,13 +24886,28 @@ const Grid = VxeGrid;
|
|
|
24796
24886
|
},
|
|
24797
24887
|
search: {
|
|
24798
24888
|
addBtn: '编辑',
|
|
24799
|
-
emptyText: '未配置查询条件'
|
|
24889
|
+
emptyText: '未配置查询条件',
|
|
24890
|
+
editPopupTitle: '编辑查询字段'
|
|
24891
|
+
},
|
|
24892
|
+
searchPopup: {
|
|
24893
|
+
colTitle: '标题',
|
|
24894
|
+
saveBtn: '保存'
|
|
24800
24895
|
}
|
|
24801
24896
|
},
|
|
24802
24897
|
text: {
|
|
24803
24898
|
copySuccess: '已复制到剪贴板',
|
|
24804
24899
|
copyError: '当前环境不支持该操作'
|
|
24805
24900
|
},
|
|
24901
|
+
countdown: {
|
|
24902
|
+
formats: {
|
|
24903
|
+
yyyy: '年',
|
|
24904
|
+
MM: '月',
|
|
24905
|
+
dd: '天',
|
|
24906
|
+
HH: '时',
|
|
24907
|
+
mm: '分',
|
|
24908
|
+
ss: '秒'
|
|
24909
|
+
}
|
|
24910
|
+
},
|
|
24806
24911
|
/**
|
|
24807
24912
|
* 扩展插件
|
|
24808
24913
|
*/
|