vxe-table 4.6.18 → 4.6.20
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 +3 -3
- package/es/icon/style.css +1 -1
- package/es/input/src/input.js +8 -6
- package/es/locale/lang/en-US.js +214 -13
- package/es/locale/lang/es-ES.js +215 -14
- package/es/locale/lang/hu-HU.d.ts +2 -0
- package/es/locale/lang/hu-HU.js +672 -0
- package/es/locale/lang/ja-JP.js +218 -17
- package/es/locale/lang/ko-KR.d.ts +2 -0
- package/es/locale/lang/ko-KR.js +674 -0
- package/es/locale/lang/pt-BR.js +214 -13
- package/es/locale/lang/ru-RU.d.ts +2 -0
- package/es/locale/lang/ru-RU.js +674 -0
- package/es/locale/lang/uk-UA.d.ts +2 -0
- package/es/locale/lang/uk-UA.js +674 -0
- package/es/locale/lang/vi-VN.js +674 -0
- package/es/locale/lang/zh-CHT.d.ts +2 -0
- package/es/locale/lang/zh-CHT.js +674 -0
- package/es/locale/lang/zh-CN.js +211 -10
- package/es/locale/lang/zh-HK.js +2 -2
- package/es/locale/lang/zh-MO.js +2 -2
- package/es/locale/lang/zh-TC.js +2 -473
- package/es/locale/lang/zh-TW.js +2 -2
- package/es/modal/src/modal.js +6 -1
- package/es/radio/style.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/src/columnInfo.js +2 -2
- package/es/table/src/table.js +6 -4
- package/es/tools/log.js +1 -1
- package/es/v-x-e-table/index.js +1 -1
- package/es/vxe-radio/style.css +1 -1
- package/lib/grid/src/grid.js +3 -3
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +317 -52
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +14 -4
- package/lib/input/src/input.min.js +1 -1
- package/lib/locale/lang/en-US.js +214 -13
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +214 -13
- package/lib/locale/lang/es-ES.js +215 -14
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +215 -14
- package/lib/locale/lang/hu-HU.d.ts +2 -0
- package/lib/locale/lang/hu-HU.js +678 -0
- package/lib/locale/lang/hu-HU.min.js +1 -0
- package/lib/locale/lang/hu-HU.umd.js +692 -0
- package/lib/locale/lang/ja-JP.js +218 -17
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +218 -17
- package/lib/locale/lang/ko-KR.d.ts +2 -0
- package/lib/locale/lang/ko-KR.js +680 -0
- package/lib/locale/lang/ko-KR.min.js +1 -0
- package/lib/locale/lang/ko-KR.umd.js +694 -0
- package/lib/locale/lang/pt-BR.js +214 -13
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +214 -13
- package/lib/locale/lang/ru-RU.d.ts +2 -0
- package/lib/locale/lang/ru-RU.js +680 -0
- package/lib/locale/lang/ru-RU.min.js +1 -0
- package/lib/locale/lang/ru-RU.umd.js +694 -0
- package/lib/locale/lang/uk-UA.d.ts +2 -0
- package/lib/locale/lang/uk-UA.js +680 -0
- package/lib/locale/lang/uk-UA.min.js +1 -0
- package/lib/locale/lang/uk-UA.umd.js +694 -0
- package/lib/locale/lang/vi-VN.js +680 -0
- package/lib/locale/lang/vi-VN.min.js +1 -0
- package/lib/locale/lang/zh-CHT.d.ts +2 -0
- package/lib/locale/lang/zh-CHT.js +680 -0
- package/lib/locale/lang/zh-CHT.min.js +1 -0
- package/lib/locale/lang/zh-CHT.umd.js +694 -0
- package/lib/locale/lang/zh-CN.js +211 -10
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +211 -10
- package/lib/locale/lang/zh-HK.js +2 -2
- package/lib/locale/lang/zh-HK.min.js +1 -1
- package/lib/locale/lang/zh-HK.umd.js +7 -477
- package/lib/locale/lang/zh-MO.js +2 -2
- package/lib/locale/lang/zh-MO.min.js +1 -1
- package/lib/locale/lang/zh-MO.umd.js +7 -477
- package/lib/locale/lang/zh-TC.js +3 -473
- package/lib/locale/lang/zh-TC.min.js +1 -1
- package/lib/locale/lang/zh-TC.umd.js +7 -477
- package/lib/locale/lang/zh-TW.js +2 -2
- package/lib/locale/lang/zh-TW.min.js +1 -1
- package/lib/locale/lang/zh-TW.umd.js +7 -477
- package/lib/modal/src/modal.js +5 -0
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/radio/style/style.css +1 -1
- package/lib/radio/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/columnInfo.js +2 -2
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/table.js +6 -4
- package/lib/table/src/table.min.js +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/vxe-radio/style/style.css +1 -1
- package/lib/vxe-radio/style/style.min.css +1 -1
- package/package.json +4 -4
- package/packages/grid/src/grid.ts +3 -3
- package/packages/input/src/input.ts +8 -6
- package/packages/locale/lang/en-US.ts +214 -13
- package/packages/locale/lang/es-ES.ts +215 -14
- package/packages/locale/lang/hu-HU.ts +674 -0
- package/packages/locale/lang/ja-JP.ts +218 -17
- package/packages/locale/lang/ko-KR.ts +676 -0
- package/packages/locale/lang/pt-BR.ts +214 -13
- package/packages/locale/lang/ru-RU.ts +676 -0
- package/packages/locale/lang/uk-UA.ts +676 -0
- package/packages/locale/lang/vi-VN.ts +676 -0
- package/packages/locale/lang/zh-CHT.ts +676 -0
- package/packages/locale/lang/zh-CN.ts +211 -10
- package/packages/locale/lang/zh-HK.ts +2 -2
- package/packages/locale/lang/zh-MO.ts +2 -2
- package/packages/locale/lang/zh-TC.ts +2 -474
- package/packages/locale/lang/zh-TW.ts +2 -2
- package/packages/modal/src/modal.ts +6 -1
- package/packages/table/src/columnInfo.ts +2 -2
- package/packages/table/src/table.ts +6 -4
- package/styles/checkbox.scss +1 -1
- package/styles/custom.scss +1 -1
- package/styles/export.scss +1 -1
- package/styles/radio.scss +1 -1
- package/styles/variable.scss +18 -18
- package/types/v-x-e-table/formats.d.ts +5 -0
- package/types/v-x-e-table/index.d.ts +1 -1
- /package/es/icon/style/{iconfont.1720006583309.ttf → iconfont.1727934888345.ttf} +0 -0
- /package/es/icon/style/{iconfont.1720006583309.woff → iconfont.1727934888345.woff} +0 -0
- /package/es/icon/style/{iconfont.1720006583309.woff2 → iconfont.1727934888345.woff2} +0 -0
- /package/es/{iconfont.1720006583309.ttf → iconfont.1727934888345.ttf} +0 -0
- /package/es/{iconfont.1720006583309.woff → iconfont.1727934888345.woff} +0 -0
- /package/es/{iconfont.1720006583309.woff2 → iconfont.1727934888345.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1720006583309.ttf → iconfont.1727934888345.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1720006583309.woff → iconfont.1727934888345.woff} +0 -0
- /package/lib/icon/style/{iconfont.1720006583309.woff2 → iconfont.1727934888345.woff2} +0 -0
- /package/lib/{iconfont.1720006583309.ttf → iconfont.1727934888345.ttf} +0 -0
- /package/lib/{iconfont.1720006583309.woff → iconfont.1727934888345.woff} +0 -0
- /package/lib/{iconfont.1720006583309.woff2 → iconfont.1727934888345.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -2506,44 +2506,89 @@ const GlobalConfig = {
|
|
|
2506
2506
|
};
|
|
2507
2507
|
/* harmony default export */ var conf = (GlobalConfig);
|
|
2508
2508
|
;// CONCATENATED MODULE: ./node_modules/dom-zindex/es/index.esm.js
|
|
2509
|
+
var winDom = null;
|
|
2510
|
+
var bodyEl = null;
|
|
2509
2511
|
var storeEl = null;
|
|
2510
2512
|
var storeId = 'z-index-manage';
|
|
2513
|
+
var styleEl = null;
|
|
2514
|
+
var styleId = 'z-index-style';
|
|
2511
2515
|
var storeMainKey = 'm';
|
|
2512
2516
|
var storeSubKey = 's';
|
|
2513
2517
|
var storeData = {
|
|
2514
2518
|
m: 1000,
|
|
2515
2519
|
s: 1000
|
|
2516
2520
|
};
|
|
2517
|
-
function
|
|
2518
|
-
|
|
2521
|
+
function getDocument() {
|
|
2522
|
+
if (!winDom) {
|
|
2523
|
+
if (typeof document !== 'undefined') {
|
|
2524
|
+
winDom = document;
|
|
2525
|
+
}
|
|
2526
|
+
}
|
|
2527
|
+
return winDom;
|
|
2528
|
+
}
|
|
2529
|
+
function getBody() {
|
|
2530
|
+
if (winDom && !bodyEl) {
|
|
2531
|
+
bodyEl = winDom.body || winDom.getElementsByTagName('body')[0];
|
|
2532
|
+
}
|
|
2533
|
+
return bodyEl;
|
|
2519
2534
|
}
|
|
2520
2535
|
function getDomMaxZIndex() {
|
|
2521
2536
|
var max = 0;
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2537
|
+
var dom = getDocument();
|
|
2538
|
+
if (dom) {
|
|
2539
|
+
var body = getBody();
|
|
2540
|
+
if (body) {
|
|
2541
|
+
var allElem = body.getElementsByTagName('*');
|
|
2542
|
+
for (var i = 0; i < allElem.length; i++) {
|
|
2543
|
+
var elem = allElem[i];
|
|
2544
|
+
if (elem && elem.style && elem.nodeType === 1) {
|
|
2545
|
+
var zIndex = elem.style.zIndex;
|
|
2546
|
+
if (zIndex && /^\d+$/.test(zIndex)) {
|
|
2547
|
+
max = Math.max(max, Number(zIndex));
|
|
2548
|
+
}
|
|
2530
2549
|
}
|
|
2531
2550
|
}
|
|
2532
2551
|
}
|
|
2533
2552
|
}
|
|
2534
2553
|
return max;
|
|
2535
2554
|
}
|
|
2536
|
-
function
|
|
2555
|
+
function getStyle() {
|
|
2556
|
+
if (!styleEl) {
|
|
2557
|
+
var dom = getDocument();
|
|
2558
|
+
if (dom) {
|
|
2559
|
+
styleEl = dom.getElementById(styleId);
|
|
2560
|
+
if (!styleEl) {
|
|
2561
|
+
styleEl = dom.createElement('style');
|
|
2562
|
+
styleEl.id = styleId;
|
|
2563
|
+
dom.getElementsByTagName('head')[0].appendChild(styleEl);
|
|
2564
|
+
}
|
|
2565
|
+
}
|
|
2566
|
+
}
|
|
2567
|
+
return styleEl;
|
|
2568
|
+
}
|
|
2569
|
+
function updateVar() {
|
|
2570
|
+
var styEl = getStyle();
|
|
2571
|
+
if (styEl) {
|
|
2572
|
+
var prefixes = '--dom-';
|
|
2573
|
+
var propKey = '-z-index';
|
|
2574
|
+
styEl.innerHTML = ':root{' + prefixes + 'main' + propKey + ':' + getCurrent() + ';' + prefixes + 'sub' + propKey + ':' + getSubCurrent() + '}';
|
|
2575
|
+
}
|
|
2576
|
+
}
|
|
2577
|
+
function getStoreDom() {
|
|
2537
2578
|
if (!storeEl) {
|
|
2538
|
-
|
|
2539
|
-
|
|
2579
|
+
var dom = getDocument();
|
|
2580
|
+
if (dom) {
|
|
2581
|
+
storeEl = dom.getElementById(storeId);
|
|
2540
2582
|
if (!storeEl) {
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2583
|
+
var body = getBody();
|
|
2584
|
+
if (body) {
|
|
2585
|
+
storeEl = dom.createElement('div');
|
|
2586
|
+
storeEl.id = storeId;
|
|
2587
|
+
storeEl.style.display = 'none';
|
|
2588
|
+
body.appendChild(storeEl);
|
|
2589
|
+
setCurrent(storeData.m);
|
|
2590
|
+
setSubCurrent(storeData.s);
|
|
2591
|
+
}
|
|
2547
2592
|
}
|
|
2548
2593
|
}
|
|
2549
2594
|
}
|
|
@@ -2554,15 +2599,16 @@ function createSetHandle(key) {
|
|
|
2554
2599
|
if (value) {
|
|
2555
2600
|
value = Number(value);
|
|
2556
2601
|
storeData[key] = value;
|
|
2557
|
-
var
|
|
2558
|
-
if (
|
|
2559
|
-
if (
|
|
2560
|
-
|
|
2602
|
+
var el = getStoreDom();
|
|
2603
|
+
if (el) {
|
|
2604
|
+
if (el.dataset) {
|
|
2605
|
+
el.dataset[key] = value + '';
|
|
2561
2606
|
} else {
|
|
2562
|
-
|
|
2607
|
+
el.setAttribute('data-' + key, value + '');
|
|
2563
2608
|
}
|
|
2564
2609
|
}
|
|
2565
2610
|
}
|
|
2611
|
+
updateVar();
|
|
2566
2612
|
return storeData[key];
|
|
2567
2613
|
};
|
|
2568
2614
|
}
|
|
@@ -2570,9 +2616,9 @@ var setCurrent = createSetHandle(storeMainKey);
|
|
|
2570
2616
|
function createGetHandle(key, nextMethod) {
|
|
2571
2617
|
return function getCurrent(currZindex) {
|
|
2572
2618
|
var zIndex;
|
|
2573
|
-
var
|
|
2574
|
-
if (
|
|
2575
|
-
var domVal =
|
|
2619
|
+
var el = getStoreDom();
|
|
2620
|
+
if (el) {
|
|
2621
|
+
var domVal = el.dataset ? el.dataset[key] : el.getAttribute('data-' + key);
|
|
2576
2622
|
if (domVal) {
|
|
2577
2623
|
zIndex = Number(domVal);
|
|
2578
2624
|
}
|
|
@@ -2614,11 +2660,12 @@ var DomZIndex = {
|
|
|
2614
2660
|
getSubNext: getSubNext,
|
|
2615
2661
|
getMax: getDomMaxZIndex
|
|
2616
2662
|
};
|
|
2663
|
+
updateVar();
|
|
2617
2664
|
/* harmony default export */ var index_esm = (DomZIndex);
|
|
2618
2665
|
;// CONCATENATED MODULE: ./packages/tools/log.ts
|
|
2619
2666
|
|
|
2620
2667
|
function getLog(message, params) {
|
|
2621
|
-
return `[vxe-table v${"4.6.
|
|
2668
|
+
return `[vxe-table v${"4.6.20"}] ${conf.i18n(message, params)}`;
|
|
2622
2669
|
}
|
|
2623
2670
|
function outLog(type) {
|
|
2624
2671
|
return function (message, params) {
|
|
@@ -2868,12 +2915,12 @@ class ColumnInfo {
|
|
|
2868
2915
|
if (formatter) {
|
|
2869
2916
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(formatter)) {
|
|
2870
2917
|
const gFormatOpts = formats.get(formatter) || (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default())[formatter];
|
|
2871
|
-
if (!gFormatOpts || !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(gFormatOpts.cellFormatMethod)) {
|
|
2918
|
+
if (!gFormatOpts || !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(gFormatOpts.tableCellFormatMethod || gFormatOpts.cellFormatMethod)) {
|
|
2872
2919
|
errLog('vxe.error.notFormats', [formatter]);
|
|
2873
2920
|
}
|
|
2874
2921
|
} else if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(formatter)) {
|
|
2875
2922
|
const gFormatOpts = formats.get(formatter[0]) || (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default())[formatter[0]];
|
|
2876
|
-
if (!gFormatOpts || !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(gFormatOpts.cellFormatMethod)) {
|
|
2923
|
+
if (!gFormatOpts || !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(gFormatOpts.tableCellFormatMethod || gFormatOpts.cellFormatMethod)) {
|
|
2877
2924
|
errLog('vxe.error.notFormats', [formatter[0]]);
|
|
2878
2925
|
}
|
|
2879
2926
|
}
|
|
@@ -5038,7 +5085,7 @@ function component(comp) {
|
|
|
5038
5085
|
components[comp.name] = comp;
|
|
5039
5086
|
}
|
|
5040
5087
|
}
|
|
5041
|
-
const version = "4.6.
|
|
5088
|
+
const version = "4.6.20";
|
|
5042
5089
|
const tableVersion = version;
|
|
5043
5090
|
const VXETable = {
|
|
5044
5091
|
v,
|
|
@@ -9036,6 +9083,11 @@ const msgQueue = [];
|
|
|
9036
9083
|
}
|
|
9037
9084
|
});
|
|
9038
9085
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
9086
|
+
if (({"NODE_ENV":"production","VUE_APP_VXE_TABLE_ENV":"development","VUE_APP_VXE_TABLE_VERSION":"4.6.20","BASE_URL":"/"}).VUE_APP_VXE_ENV === 'development') {
|
|
9087
|
+
if (props.type === 'modal' && props.showFooter && !(props.showConfirmButton || props.showCancelButton || slots.footer)) {
|
|
9088
|
+
warnLog('vxe.modal.footPropErr');
|
|
9089
|
+
}
|
|
9090
|
+
}
|
|
9039
9091
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
9040
9092
|
if (props.storage && !props.id) {
|
|
9041
9093
|
errLog('vxe.error.reqProp', ['modal.id']);
|
|
@@ -10214,7 +10266,9 @@ const quarterSize = 8;
|
|
|
10214
10266
|
if (!disabled && !readonly && !isDisabledSubtractNumber) {
|
|
10215
10267
|
numberChange(false, evnt);
|
|
10216
10268
|
}
|
|
10217
|
-
inputMethods.dispatchEvent('next-number', {
|
|
10269
|
+
inputMethods.dispatchEvent('next-number', {
|
|
10270
|
+
value: reactData.inputValue
|
|
10271
|
+
}, evnt);
|
|
10218
10272
|
};
|
|
10219
10273
|
const numberDownNextEvent = evnt => {
|
|
10220
10274
|
downbumTimeout = window.setTimeout(() => {
|
|
@@ -10232,7 +10286,9 @@ const quarterSize = 8;
|
|
|
10232
10286
|
if (!disabled && !readonly && !isDisabledAddNumber) {
|
|
10233
10287
|
numberChange(true, evnt);
|
|
10234
10288
|
}
|
|
10235
|
-
inputMethods.dispatchEvent('prev-number', {
|
|
10289
|
+
inputMethods.dispatchEvent('prev-number', {
|
|
10290
|
+
value: reactData.inputValue
|
|
10291
|
+
}, evnt);
|
|
10236
10292
|
};
|
|
10237
10293
|
const numberKeydownEvent = evnt => {
|
|
10238
10294
|
const isUpArrow = hasEventKey(evnt, EVENT_KEYS.ARROW_UP);
|
|
@@ -10338,8 +10394,10 @@ const quarterSize = 8;
|
|
|
10338
10394
|
} = props;
|
|
10339
10395
|
const {
|
|
10340
10396
|
datePanelType,
|
|
10341
|
-
selectMonth
|
|
10397
|
+
selectMonth,
|
|
10398
|
+
inputValue
|
|
10342
10399
|
} = reactData;
|
|
10400
|
+
const value = inputValue;
|
|
10343
10401
|
const isDisabledPrevDateBtn = computeIsDisabledPrevDateBtn.value;
|
|
10344
10402
|
if (!isDisabledPrevDateBtn) {
|
|
10345
10403
|
if (type === 'year') {
|
|
@@ -10360,6 +10418,7 @@ const quarterSize = 8;
|
|
|
10360
10418
|
}
|
|
10361
10419
|
}
|
|
10362
10420
|
inputMethods.dispatchEvent('date-prev', {
|
|
10421
|
+
value,
|
|
10363
10422
|
type
|
|
10364
10423
|
}, evnt);
|
|
10365
10424
|
}
|
|
@@ -10380,8 +10439,10 @@ const quarterSize = 8;
|
|
|
10380
10439
|
} = props;
|
|
10381
10440
|
const {
|
|
10382
10441
|
datePanelType,
|
|
10383
|
-
selectMonth
|
|
10442
|
+
selectMonth,
|
|
10443
|
+
inputValue
|
|
10384
10444
|
} = reactData;
|
|
10445
|
+
const value = inputValue;
|
|
10385
10446
|
const isDisabledNextDateBtn = computeIsDisabledNextDateBtn.value;
|
|
10386
10447
|
if (!isDisabledNextDateBtn) {
|
|
10387
10448
|
if (type === 'year') {
|
|
@@ -10402,6 +10463,7 @@ const quarterSize = 8;
|
|
|
10402
10463
|
}
|
|
10403
10464
|
}
|
|
10404
10465
|
inputMethods.dispatchEvent('date-next', {
|
|
10466
|
+
value,
|
|
10405
10467
|
type
|
|
10406
10468
|
}, evnt);
|
|
10407
10469
|
}
|
|
@@ -22039,7 +22101,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
22039
22101
|
const val = props[key];
|
|
22040
22102
|
let num = 0;
|
|
22041
22103
|
if (val) {
|
|
22042
|
-
if (val === 'auto') {
|
|
22104
|
+
if (val === '100%' || val === 'auto') {
|
|
22043
22105
|
num = parentHeight;
|
|
22044
22106
|
} else {
|
|
22045
22107
|
const excludeHeight = $xetable.getExcludeHeight();
|
|
@@ -27050,7 +27112,7 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
27050
27112
|
const el = refElem.value;
|
|
27051
27113
|
if (el) {
|
|
27052
27114
|
const parentElem = el.parentNode;
|
|
27053
|
-
const parentPaddingSize = height === 'auto' ? getPaddingTopBottomSize(parentElem) : 0;
|
|
27115
|
+
const parentPaddingSize = height === '100%' || height === 'auto' ? getPaddingTopBottomSize(parentElem) : 0;
|
|
27054
27116
|
return Math.floor($xegrid ? $xegrid.getParentHeight() : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(getComputedStyle(parentElem).height) - parentPaddingSize);
|
|
27055
27117
|
}
|
|
27056
27118
|
return 0;
|
|
@@ -28556,10 +28618,12 @@ const sortStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_SORT';
|
|
|
28556
28618
|
};
|
|
28557
28619
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(formatter)) {
|
|
28558
28620
|
const gFormatOpts = VXETable.formats.get(formatter);
|
|
28559
|
-
|
|
28621
|
+
const tcFormatMethod = gFormatOpts ? gFormatOpts.tableCellFormatMethod || gFormatOpts.cellFormatMethod : null;
|
|
28622
|
+
cellLabel = tcFormatMethod ? tcFormatMethod(formatParams) : '';
|
|
28560
28623
|
} else if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(formatter)) {
|
|
28561
28624
|
const gFormatOpts = VXETable.formats.get(formatter[0]);
|
|
28562
|
-
|
|
28625
|
+
const tcFormatMethod = gFormatOpts ? gFormatOpts.tableCellFormatMethod || gFormatOpts.cellFormatMethod : null;
|
|
28626
|
+
cellLabel = tcFormatMethod ? tcFormatMethod(formatParams, ...formatter.slice(1)) : '';
|
|
28563
28627
|
} else {
|
|
28564
28628
|
cellLabel = formatter(formatParams);
|
|
28565
28629
|
}
|
|
@@ -31798,9 +31862,9 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
31798
31862
|
const tableProps = Object.assign({}, tableExtendProps);
|
|
31799
31863
|
if (isZMax) {
|
|
31800
31864
|
if (tableExtendProps.maxHeight) {
|
|
31801
|
-
tableProps.maxHeight = '
|
|
31865
|
+
tableProps.maxHeight = '100%';
|
|
31802
31866
|
} else {
|
|
31803
|
-
tableProps.height = '
|
|
31867
|
+
tableProps.height = '100%';
|
|
31804
31868
|
}
|
|
31805
31869
|
}
|
|
31806
31870
|
if (proxyConfig && isEnableConf(proxyOpts)) {
|
|
@@ -32898,7 +32962,7 @@ const gridComponentEmits = [...emits, 'page-change', 'form-submit', 'form-submit
|
|
|
32898
32962
|
const topWrapper = refTopWrapper.value;
|
|
32899
32963
|
const bottomWrapper = refBottomWrapper.value;
|
|
32900
32964
|
const pagerWrapper = refPagerWrapper.value;
|
|
32901
|
-
const parentPaddingSize = isZMax || height
|
|
32965
|
+
const parentPaddingSize = isZMax || !(height === 'auto' || height === '100%') ? 0 : getPaddingTopBottomSize(el.parentNode);
|
|
32902
32966
|
return parentPaddingSize + getPaddingTopBottomSize(el) + getOffsetHeight(formWrapper) + getOffsetHeight(toolbarWrapper) + getOffsetHeight(topWrapper) + getOffsetHeight(bottomWrapper) + getOffsetHeight(pagerWrapper);
|
|
32903
32967
|
},
|
|
32904
32968
|
getParentHeight() {
|
|
@@ -35709,12 +35773,15 @@ dynamicApp.component(pulldown.name, pulldown);
|
|
|
35709
35773
|
vxe: {
|
|
35710
35774
|
base: {
|
|
35711
35775
|
pleaseInput: '请输入',
|
|
35712
|
-
pleaseSelect: '请选择'
|
|
35776
|
+
pleaseSelect: '请选择',
|
|
35777
|
+
comma: ',',
|
|
35778
|
+
fullStop: '。'
|
|
35713
35779
|
},
|
|
35714
35780
|
loading: {
|
|
35715
35781
|
text: '加载中...'
|
|
35716
35782
|
},
|
|
35717
35783
|
error: {
|
|
35784
|
+
downErr: '下载失败',
|
|
35718
35785
|
groupFixed: '如果使用分组表头,冻结列必须按组设置',
|
|
35719
35786
|
groupMouseRange: '分组表头与 "{0}" 不能同时使用,这可能会出现错误',
|
|
35720
35787
|
groupTag: '分组列头应该使用 "{0}" 而不是 "{1}",这可能会出现错误',
|
|
@@ -35724,6 +35791,7 @@ dynamicApp.component(pulldown.name, pulldown);
|
|
|
35724
35791
|
useErr: '安装 "{0}" 模块时发生错误,可能顺序不正确,依赖的模块需要在 Table 之前安装',
|
|
35725
35792
|
barUnableLink: '工具栏无法关联表格',
|
|
35726
35793
|
expandContent: '展开行的插槽应该是 "content",请检查是否正确',
|
|
35794
|
+
reqComp: '缺少 "{0}" 组件,请检查是否正确安装。 https://vxeui.com/#/start/useGlobal',
|
|
35727
35795
|
reqModule: '缺少 "{0}" 模块',
|
|
35728
35796
|
reqProp: '缺少必要的 "{0}" 参数,这可能会导致出现错误',
|
|
35729
35797
|
emptyProp: '参数 "{0}" 不允许为空',
|
|
@@ -35739,6 +35807,7 @@ dynamicApp.component(pulldown.name, pulldown);
|
|
|
35739
35807
|
notProp: '不支持的参数 "{0}"',
|
|
35740
35808
|
checkProp: '当数据量过大时可能会导致复选框卡顿,建议设置参数 "{0}" 提升渲染速度',
|
|
35741
35809
|
coverProp: '"{0}" 的参数 "{1}" 重复定义,这可能会出现错误',
|
|
35810
|
+
uniField: '字段名 "{0}" 重复定义,这可能会出现错误',
|
|
35742
35811
|
delFunc: '方法 "{0}" 已废弃,请使用 "{1}"',
|
|
35743
35812
|
delProp: '参数 "{0}" 已废弃,请使用 "{1}"',
|
|
35744
35813
|
delEvent: '事件 "{0}" 已废弃,请使用 "{1}"',
|
|
@@ -35752,7 +35821,8 @@ dynamicApp.component(pulldown.name, pulldown);
|
|
|
35752
35821
|
table: {
|
|
35753
35822
|
emptyText: '暂无数据',
|
|
35754
35823
|
allTitle: '全选/取消',
|
|
35755
|
-
seqTitle: '
|
|
35824
|
+
seqTitle: '序号',
|
|
35825
|
+
actionTitle: '操作',
|
|
35756
35826
|
confirmFilter: '筛选',
|
|
35757
35827
|
resetFilter: '重置',
|
|
35758
35828
|
allFilter: '全部',
|
|
@@ -35767,7 +35837,9 @@ dynamicApp.component(pulldown.name, pulldown);
|
|
|
35767
35837
|
customTitle: '列设置',
|
|
35768
35838
|
customAll: '全部',
|
|
35769
35839
|
customConfirm: '确认',
|
|
35770
|
-
|
|
35840
|
+
customClose: '关闭',
|
|
35841
|
+
customCancel: '取消',
|
|
35842
|
+
customRestore: '恢复默认',
|
|
35771
35843
|
maxFixedCol: '最大冻结列的数量不能超过 {0} 个'
|
|
35772
35844
|
},
|
|
35773
35845
|
grid: {
|
|
@@ -35786,6 +35858,7 @@ dynamicApp.component(pulldown.name, pulldown);
|
|
|
35786
35858
|
},
|
|
35787
35859
|
pager: {
|
|
35788
35860
|
goto: '前往',
|
|
35861
|
+
gotoTitle: '页数',
|
|
35789
35862
|
pagesize: '{0}条/页',
|
|
35790
35863
|
total: '共 {0} 条记录',
|
|
35791
35864
|
pageClassifier: '页',
|
|
@@ -35823,8 +35896,10 @@ dynamicApp.component(pulldown.name, pulldown);
|
|
|
35823
35896
|
colSort: '排序',
|
|
35824
35897
|
sortHelpTip: '点击并拖动图标可以调整列的排序',
|
|
35825
35898
|
colTitle: '标题',
|
|
35899
|
+
colResizable: '列宽(像素)',
|
|
35826
35900
|
colVisible: '是否显示',
|
|
35827
|
-
colFixed: '
|
|
35901
|
+
colFixed: '冻结列',
|
|
35902
|
+
colFixedMax: '冻结列(最多 {0} 列)',
|
|
35828
35903
|
fixedLeft: '左侧',
|
|
35829
35904
|
fixedUnset: '不设置',
|
|
35830
35905
|
fixedRight: '右侧'
|
|
@@ -35832,14 +35907,17 @@ dynamicApp.component(pulldown.name, pulldown);
|
|
|
35832
35907
|
},
|
|
35833
35908
|
import: {
|
|
35834
35909
|
modes: {
|
|
35835
|
-
covering: '
|
|
35836
|
-
insert: '
|
|
35910
|
+
covering: '覆盖方式(直接覆盖表格数据)',
|
|
35911
|
+
insert: '底部追加(在表格的底部追加新数据)',
|
|
35912
|
+
insertTop: '顶部追加(在表格的顶部追加新数据)',
|
|
35913
|
+
insertBottom: '底部追加(在表格的底部追加新数据)'
|
|
35837
35914
|
},
|
|
35838
35915
|
impTitle: '导入数据',
|
|
35839
35916
|
impFile: '文件名',
|
|
35840
35917
|
impSelect: '选择文件',
|
|
35841
35918
|
impType: '文件类型',
|
|
35842
35919
|
impOpts: '参数设置',
|
|
35920
|
+
impMode: '导入模式',
|
|
35843
35921
|
impConfirm: '导入',
|
|
35844
35922
|
impCancel: '取消'
|
|
35845
35923
|
},
|
|
@@ -35888,9 +35966,13 @@ dynamicApp.component(pulldown.name, pulldown);
|
|
|
35888
35966
|
expCancel: '取消'
|
|
35889
35967
|
},
|
|
35890
35968
|
modal: {
|
|
35969
|
+
errTitle: '错误提示',
|
|
35970
|
+
zoomMin: '最小化',
|
|
35891
35971
|
zoomIn: '最大化',
|
|
35892
35972
|
zoomOut: '还原',
|
|
35893
|
-
close: '关闭'
|
|
35973
|
+
close: '关闭',
|
|
35974
|
+
miniMaxSize: '最小化窗口的数量不能超过 {0} 个',
|
|
35975
|
+
footPropErr: 'show-footer 仅用于启用表尾,需配合 show-confirm-button | show-cancel-button | 插槽使用'
|
|
35894
35976
|
},
|
|
35895
35977
|
drawer: {
|
|
35896
35978
|
close: '关闭'
|
|
@@ -35972,11 +36054,194 @@ dynamicApp.component(pulldown.name, pulldown);
|
|
|
35972
36054
|
}
|
|
35973
36055
|
}
|
|
35974
36056
|
},
|
|
36057
|
+
imagePreview: {
|
|
36058
|
+
popupTitle: '预览',
|
|
36059
|
+
operBtn: {
|
|
36060
|
+
zoomOut: '缩小',
|
|
36061
|
+
zoomIn: '放大',
|
|
36062
|
+
pctFull: '等比例缩放',
|
|
36063
|
+
pct11: '显示原始尺寸',
|
|
36064
|
+
rotateLeft: '向左旋转',
|
|
36065
|
+
rotateRight: '向右旋转',
|
|
36066
|
+
print: '点击打印图片',
|
|
36067
|
+
download: '点击下载图片'
|
|
36068
|
+
}
|
|
36069
|
+
},
|
|
36070
|
+
upload: {
|
|
36071
|
+
fileBtnText: '点击或拖拽上传',
|
|
36072
|
+
imgBtnText: '点击或拖拽上传',
|
|
36073
|
+
dragPlaceholder: '请把文件拖放到这个区域即可上传',
|
|
36074
|
+
imgSizeHint: '单张{0}',
|
|
36075
|
+
imgCountHint: '最多{0}张',
|
|
36076
|
+
fileTypeHint: '支持 {0} 文件类型',
|
|
36077
|
+
fileSizeHint: '单个文件大小不超过{0}',
|
|
36078
|
+
fileCountHint: '最多可上传{0}个文件',
|
|
36079
|
+
overCountErr: '最多只能选择{0}个文件!',
|
|
36080
|
+
overCountExtraErr: '已超出最大数量{0}个,超出的{1}个文件将被忽略!',
|
|
36081
|
+
overSizeErr: '文件大小最大不能超过{0}!',
|
|
36082
|
+
reUpload: '重新上传',
|
|
36083
|
+
uploadProgress: '上传中 {0}%',
|
|
36084
|
+
uploadErr: '上传失败',
|
|
36085
|
+
uploadSuccess: '上传成功',
|
|
36086
|
+
moreBtnText: '更多({0})',
|
|
36087
|
+
viewItemTitle: '点击查看',
|
|
36088
|
+
morePopup: {
|
|
36089
|
+
readTitle: '查看列表',
|
|
36090
|
+
imageTitle: '上传图片',
|
|
36091
|
+
fileTitle: '上传文件'
|
|
36092
|
+
}
|
|
36093
|
+
},
|
|
35975
36094
|
formDesign: {
|
|
36095
|
+
formName: '表单名称',
|
|
36096
|
+
defFormTitle: '未命名的表单',
|
|
36097
|
+
widgetPropTab: '控件属性',
|
|
36098
|
+
widgetFormTab: '表单属性',
|
|
36099
|
+
error: {
|
|
36100
|
+
wdFormUni: '该类型的控件在表单中只允许添加一个',
|
|
36101
|
+
wdSubUni: '该类型的控件在子表中只允许添加一个'
|
|
36102
|
+
},
|
|
36103
|
+
styleSetting: {
|
|
36104
|
+
btn: '样式设置',
|
|
36105
|
+
title: '表单的样式设置',
|
|
36106
|
+
layoutTitle: '控件布局',
|
|
36107
|
+
verticalLayout: '上下布局',
|
|
36108
|
+
horizontalLayout: '横向布局',
|
|
36109
|
+
styleTitle: '标题样式',
|
|
36110
|
+
boldTitle: '标题加粗',
|
|
36111
|
+
fontBold: '加粗',
|
|
36112
|
+
fontNormal: '常规',
|
|
36113
|
+
colonTitle: '显示冒号',
|
|
36114
|
+
colonVisible: '显示',
|
|
36115
|
+
colonHidden: '隐藏',
|
|
36116
|
+
alignTitle: '对齐方式',
|
|
36117
|
+
widthTitle: '标题宽度',
|
|
36118
|
+
alignLeft: '居左',
|
|
36119
|
+
alignRight: '居右',
|
|
36120
|
+
unitPx: '像素',
|
|
36121
|
+
unitPct: '百分比'
|
|
36122
|
+
},
|
|
35976
36123
|
widget: {
|
|
35977
|
-
|
|
35978
|
-
|
|
35979
|
-
|
|
36124
|
+
group: {
|
|
36125
|
+
base: '基础控件',
|
|
36126
|
+
layout: '布局控件',
|
|
36127
|
+
system: '系统控件',
|
|
36128
|
+
module: '模块控件',
|
|
36129
|
+
chart: '图表控件',
|
|
36130
|
+
advanced: '高级控件'
|
|
36131
|
+
},
|
|
36132
|
+
copyTitle: '副本_{0}',
|
|
36133
|
+
component: {
|
|
36134
|
+
input: '输入框',
|
|
36135
|
+
textarea: '文本域',
|
|
36136
|
+
select: '下拉选择',
|
|
36137
|
+
row: '一行多列',
|
|
36138
|
+
title: '标题',
|
|
36139
|
+
text: '文本',
|
|
36140
|
+
subtable: '子表',
|
|
36141
|
+
VxeSwitch: '是/否',
|
|
36142
|
+
VxeInput: '输入框',
|
|
36143
|
+
VxeNumberInput: '数字',
|
|
36144
|
+
VxeDatePicker: '日期',
|
|
36145
|
+
VxeTextarea: '文本域',
|
|
36146
|
+
VxeSelect: '下拉选择',
|
|
36147
|
+
VxeTreeSelect: '树形选择',
|
|
36148
|
+
VxeRadioGroup: '单选框',
|
|
36149
|
+
VxeCheckboxGroup: '复选框',
|
|
36150
|
+
VxeUploadFile: '文件',
|
|
36151
|
+
VxeUploadImage: '图片'
|
|
36152
|
+
}
|
|
36153
|
+
},
|
|
36154
|
+
widgetProp: {
|
|
36155
|
+
name: '控件名称',
|
|
36156
|
+
placeholder: '提示语',
|
|
36157
|
+
required: '必填校验',
|
|
36158
|
+
multiple: '允许多选',
|
|
36159
|
+
displaySetting: {
|
|
36160
|
+
name: '显示设置',
|
|
36161
|
+
pc: '电脑端',
|
|
36162
|
+
mobile: '手机端',
|
|
36163
|
+
visible: '显示',
|
|
36164
|
+
hidden: '隐藏'
|
|
36165
|
+
},
|
|
36166
|
+
dataSource: {
|
|
36167
|
+
name: '数据源',
|
|
36168
|
+
defValue: '选项{0}',
|
|
36169
|
+
addOption: '添加选项',
|
|
36170
|
+
batchEditOption: '批量编辑',
|
|
36171
|
+
batchEditTip: '每行对应一个选项,支持从表格、Excel、WPS 中直接复制粘贴。',
|
|
36172
|
+
batchEditSubTip: '每行对应一个选项,如果是分组,子项可以是空格或制表键开头,支持从表格、Excel、WPS 中直接复制粘贴。',
|
|
36173
|
+
buildOption: '生成选项'
|
|
36174
|
+
},
|
|
36175
|
+
rowProp: {
|
|
36176
|
+
colSize: '列数',
|
|
36177
|
+
col2: '两列',
|
|
36178
|
+
col3: '三列',
|
|
36179
|
+
col4: '四列',
|
|
36180
|
+
col6: '六列',
|
|
36181
|
+
layout: '布局'
|
|
36182
|
+
},
|
|
36183
|
+
textProp: {
|
|
36184
|
+
name: '内容',
|
|
36185
|
+
alignTitle: '对齐方式',
|
|
36186
|
+
alignLeft: '居左',
|
|
36187
|
+
alignCenter: '居中',
|
|
36188
|
+
alignRight: '居右',
|
|
36189
|
+
colorTitle: '字体颜色',
|
|
36190
|
+
sizeTitle: '字体大小',
|
|
36191
|
+
boldTitle: '字体加粗',
|
|
36192
|
+
fontNormal: '常规',
|
|
36193
|
+
fontBold: '加粗'
|
|
36194
|
+
},
|
|
36195
|
+
subtableProp: {
|
|
36196
|
+
seqTitle: '序号',
|
|
36197
|
+
showSeq: '显示序号',
|
|
36198
|
+
showCheckbox: '允许多选',
|
|
36199
|
+
errSubDrag: '子表不支持该控件,请使用其他控件',
|
|
36200
|
+
colPlace: '将控件拖拽进来'
|
|
36201
|
+
},
|
|
36202
|
+
uploadProp: {
|
|
36203
|
+
limitFileCount: '文件数量限制',
|
|
36204
|
+
limitFileSize: '文件大小限制',
|
|
36205
|
+
multiFile: '允许上传多个文件',
|
|
36206
|
+
limitImgCount: '图片数量限制',
|
|
36207
|
+
limitImgSize: '图片大小限制',
|
|
36208
|
+
multiImg: '允许上传多张图片'
|
|
36209
|
+
}
|
|
36210
|
+
}
|
|
36211
|
+
},
|
|
36212
|
+
listDesign: {
|
|
36213
|
+
fieldSettingTab: '字段设置',
|
|
36214
|
+
listSettingTab: '参数设置',
|
|
36215
|
+
searchTitle: '查询条件',
|
|
36216
|
+
listTitle: '列表字段',
|
|
36217
|
+
searchField: '查询字段',
|
|
36218
|
+
listField: '列表字段',
|
|
36219
|
+
activeBtn: {
|
|
36220
|
+
ActionButtonUpdate: '编辑',
|
|
36221
|
+
ActionButtonDelete: '删除'
|
|
36222
|
+
},
|
|
36223
|
+
search: {
|
|
36224
|
+
addBtn: '编辑',
|
|
36225
|
+
emptyText: '未配置查询条件',
|
|
36226
|
+
editPopupTitle: '编辑查询字段'
|
|
36227
|
+
},
|
|
36228
|
+
searchPopup: {
|
|
36229
|
+
colTitle: '标题',
|
|
36230
|
+
saveBtn: '保存'
|
|
36231
|
+
}
|
|
36232
|
+
},
|
|
36233
|
+
text: {
|
|
36234
|
+
copySuccess: '已复制到剪贴板',
|
|
36235
|
+
copyError: '当前环境不支持该操作'
|
|
36236
|
+
},
|
|
36237
|
+
countdown: {
|
|
36238
|
+
formats: {
|
|
36239
|
+
yyyy: '年',
|
|
36240
|
+
MM: '月',
|
|
36241
|
+
dd: '天',
|
|
36242
|
+
HH: '时',
|
|
36243
|
+
mm: '分',
|
|
36244
|
+
ss: '秒'
|
|
35980
36245
|
}
|
|
35981
36246
|
},
|
|
35982
36247
|
/**
|