vxe-table 4.7.35 → 4.7.37
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/README.en.md +35 -12
- package/README.md +34 -11
- package/README.zh-TW.md +35 -12
- package/es/components.js +6 -2
- package/es/iconfont.1719470436190.ttf +0 -0
- package/es/iconfont.1719470436190.woff +0 -0
- package/es/iconfont.1719470436190.woff2 +0 -0
- package/es/locale/lang/en-US.js +5 -2
- package/es/locale/lang/es-ES.js +5 -2
- package/es/locale/lang/ja-JP.js +5 -2
- package/es/locale/lang/pt-BR.js +5 -2
- package/es/locale/lang/zh-CN.js +5 -2
- package/es/locale/lang/zh-TC.js +5 -2
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/export/export-panel.js +1 -6
- package/es/table/module/export/hook.js +36 -18
- package/es/table/module/export/import-panel.js +7 -14
- package/es/table/style.css +706 -1
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +70 -3
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +706 -1
- package/es/vxe-table/style.min.css +1 -1
- package/lib/components.js +8 -7
- package/lib/components.min.js +1 -1
- package/lib/iconfont.1719470436190.ttf +0 -0
- package/lib/iconfont.1719470436190.woff +0 -0
- package/lib/iconfont.1719470436190.woff2 +0 -0
- package/lib/index.umd.js +739 -44
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/en-US.js +5 -2
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +5 -2
- package/lib/locale/lang/es-ES.js +5 -2
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +5 -2
- package/lib/locale/lang/ja-JP.js +5 -2
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +5 -2
- package/lib/locale/lang/pt-BR.js +5 -2
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +5 -2
- package/lib/locale/lang/zh-CN.js +5 -2
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +5 -2
- package/lib/locale/lang/zh-HK.min.js +1 -1
- package/lib/locale/lang/zh-HK.umd.js +5 -2
- package/lib/locale/lang/zh-MO.min.js +1 -1
- package/lib/locale/lang/zh-MO.umd.js +5 -2
- package/lib/locale/lang/zh-TC.js +5 -2
- package/lib/locale/lang/zh-TC.min.js +1 -1
- package/lib/locale/lang/zh-TC.umd.js +5 -2
- package/lib/locale/lang/zh-TW.min.js +1 -1
- package/lib/locale/lang/zh-TW.umd.js +5 -2
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/export/export-panel.js +1 -6
- package/lib/table/module/export/export-panel.min.js +1 -1
- package/lib/table/module/export/hook.js +35 -18
- package/lib/table/module/export/hook.min.js +1 -1
- package/lib/table/module/export/import-panel.js +5 -12
- package/lib/table/module/export/import-panel.min.js +1 -1
- package/lib/table/style/style.css +706 -1
- package/lib/table/style/style.min.css +1 -1
- package/lib/ui/index.js +71 -4
- 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 +706 -1
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/components.ts +7 -2
- package/packages/locale/lang/en-US.ts +5 -2
- package/packages/locale/lang/es-ES.ts +5 -2
- package/packages/locale/lang/ja-JP.ts +5 -2
- package/packages/locale/lang/pt-BR.ts +5 -2
- package/packages/locale/lang/zh-CN.ts +5 -2
- package/packages/locale/lang/zh-TC.ts +5 -2
- package/packages/table/module/export/export-panel.ts +1 -6
- package/packages/table/module/export/hook.ts +35 -19
- package/packages/table/module/export/import-panel.ts +8 -15
- package/packages/ui/index.ts +68 -1
- package/styles/components/icon.scss +183 -0
- package/styles/components/old-icon.scss +717 -0
- package/styles/components/table-module/export.scss +2 -1
- package/styles/components/table.scss +1 -0
- package/styles/icon/iconfont.ttf +0 -0
- package/styles/icon/iconfont.woff +0 -0
- package/styles/icon/iconfont.woff2 +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -1693,7 +1693,6 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1693
1693
|
commands: function() { return /* reexport */ commands; },
|
|
1694
1694
|
config: function() { return /* reexport */ config; },
|
|
1695
1695
|
"default": function() { return /* binding */ entry_lib; },
|
|
1696
|
-
drawer: function() { return /* reexport */ drawer; },
|
|
1697
1696
|
formats: function() { return /* reexport */ formats; },
|
|
1698
1697
|
getConfig: function() { return /* reexport */ getConfig; },
|
|
1699
1698
|
getI18n: function() { return /* reexport */ getI18n; },
|
|
@@ -1743,7 +1742,6 @@ __webpack_require__.d(components_namespaceObject, {
|
|
|
1743
1742
|
clipboard: function() { return clipboard; },
|
|
1744
1743
|
commands: function() { return commands; },
|
|
1745
1744
|
config: function() { return config; },
|
|
1746
|
-
drawer: function() { return drawer; },
|
|
1747
1745
|
formats: function() { return formats; },
|
|
1748
1746
|
getConfig: function() { return getConfig; },
|
|
1749
1747
|
getI18n: function() { return getI18n; },
|
|
@@ -1953,9 +1951,9 @@ function eqEmptyValue(cellValue) {
|
|
|
1953
1951
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
1954
1952
|
|
|
1955
1953
|
|
|
1956
|
-
const version = "4.7.
|
|
1954
|
+
const version = "4.7.37";
|
|
1957
1955
|
core_.VxeUI.version = version;
|
|
1958
|
-
core_.VxeUI.tableVersion = "4.7.
|
|
1956
|
+
core_.VxeUI.tableVersion = "4.7.37";
|
|
1959
1957
|
core_.VxeUI.setConfig({
|
|
1960
1958
|
emptyCell: ' ',
|
|
1961
1959
|
table: {
|
|
@@ -2147,7 +2145,7 @@ core_.VxeUI.setConfig({
|
|
|
2147
2145
|
// buttons: []
|
|
2148
2146
|
}
|
|
2149
2147
|
});
|
|
2150
|
-
const iconPrefix = 'vxe-icon-';
|
|
2148
|
+
const iconPrefix = 'vxe-table-icon-';
|
|
2151
2149
|
core_.VxeUI.setIcon({
|
|
2152
2150
|
// table
|
|
2153
2151
|
TABLE_SORT_ASC: iconPrefix + 'caret-up',
|
|
@@ -2239,15 +2237,82 @@ const _t = (content, args) => {
|
|
|
2239
2237
|
const VXETable = core_.VxeUI;
|
|
2240
2238
|
VXETable.setup = config;
|
|
2241
2239
|
VXETable.config = config;
|
|
2240
|
+
/**
|
|
2241
|
+
* 已废弃,兼容老版本
|
|
2242
|
+
* @deprecated
|
|
2243
|
+
*/
|
|
2242
2244
|
const saveFile = options => {
|
|
2243
2245
|
return core_.VxeUI.saveFile(options);
|
|
2244
2246
|
};
|
|
2247
|
+
/**
|
|
2248
|
+
* 已废弃,兼容老版本
|
|
2249
|
+
* @deprecated
|
|
2250
|
+
*/
|
|
2245
2251
|
const readFile = options => {
|
|
2246
2252
|
return core_.VxeUI.readFile(options);
|
|
2247
2253
|
};
|
|
2254
|
+
/**
|
|
2255
|
+
* 已废弃,兼容老版本
|
|
2256
|
+
* @deprecated
|
|
2257
|
+
*/
|
|
2248
2258
|
const print = options => {
|
|
2249
2259
|
return core_.VxeUI.print(options);
|
|
2250
2260
|
};
|
|
2261
|
+
/**
|
|
2262
|
+
* 已废弃,兼容老版本
|
|
2263
|
+
* @deprecated
|
|
2264
|
+
*/
|
|
2265
|
+
const modal = {
|
|
2266
|
+
/**
|
|
2267
|
+
* 已废弃,兼容老版本
|
|
2268
|
+
* @deprecated
|
|
2269
|
+
*/
|
|
2270
|
+
get(id) {
|
|
2271
|
+
return core_.VxeUI.modal.get(id);
|
|
2272
|
+
},
|
|
2273
|
+
/**
|
|
2274
|
+
* 已废弃,兼容老版本
|
|
2275
|
+
* @deprecated
|
|
2276
|
+
*/
|
|
2277
|
+
close(id) {
|
|
2278
|
+
return core_.VxeUI.modal.close(id);
|
|
2279
|
+
},
|
|
2280
|
+
/**
|
|
2281
|
+
* 已废弃,兼容老版本
|
|
2282
|
+
* @deprecated
|
|
2283
|
+
*/
|
|
2284
|
+
open(options) {
|
|
2285
|
+
return core_.VxeUI.modal.open(options);
|
|
2286
|
+
},
|
|
2287
|
+
/**
|
|
2288
|
+
* 已废弃,兼容老版本
|
|
2289
|
+
* @deprecated
|
|
2290
|
+
*/
|
|
2291
|
+
alert(content, title, options) {
|
|
2292
|
+
return core_.VxeUI.modal.alert(content, title, options);
|
|
2293
|
+
},
|
|
2294
|
+
/**
|
|
2295
|
+
* 已废弃,兼容老版本
|
|
2296
|
+
* @deprecated
|
|
2297
|
+
*/
|
|
2298
|
+
confirm(content, title, options) {
|
|
2299
|
+
return core_.VxeUI.modal.confirm(content, title, options);
|
|
2300
|
+
},
|
|
2301
|
+
/**
|
|
2302
|
+
* 已废弃,兼容老版本
|
|
2303
|
+
* @deprecated
|
|
2304
|
+
*/
|
|
2305
|
+
message(content, options) {
|
|
2306
|
+
return core_.VxeUI.modal.message(content, options);
|
|
2307
|
+
},
|
|
2308
|
+
/**
|
|
2309
|
+
* 已废弃,兼容老版本
|
|
2310
|
+
* @deprecated
|
|
2311
|
+
*/
|
|
2312
|
+
notification(content, title, options) {
|
|
2313
|
+
return core_.VxeUI.modal.notification(content, title, options);
|
|
2314
|
+
}
|
|
2315
|
+
};
|
|
2251
2316
|
|
|
2252
2317
|
/* harmony default export */ var ui = ((/* unused pure expression or super */ null && (VxeUI)));
|
|
2253
2318
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
@@ -2259,7 +2324,7 @@ var es_array_push = __webpack_require__(4114);
|
|
|
2259
2324
|
const {
|
|
2260
2325
|
log: log_log
|
|
2261
2326
|
} = core_.VxeUI;
|
|
2262
|
-
const log_version = `table v${"4.7.
|
|
2327
|
+
const log_version = `table v${"4.7.37"}`;
|
|
2263
2328
|
const warnLog = log_log.create('warn', log_version);
|
|
2264
2329
|
const errLog = log_log.create('error', log_version);
|
|
2265
2330
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -7375,8 +7440,7 @@ const {
|
|
|
7375
7440
|
setup(props) {
|
|
7376
7441
|
const VxeUIModalComponent = core_.VxeUI.getComponent('VxeModal');
|
|
7377
7442
|
const VxeUIButtonComponent = core_.VxeUI.getComponent('VxeButton');
|
|
7378
|
-
const
|
|
7379
|
-
const VxeUIRadioComponent = core_.VxeUI.getComponent('VxeRadio');
|
|
7443
|
+
const VxeUISelectComponent = core_.VxeUI.getComponent('VxeSelect');
|
|
7380
7444
|
const $xeTable = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeTable', {});
|
|
7381
7445
|
const {
|
|
7382
7446
|
computeImportOpts
|
|
@@ -7407,7 +7471,7 @@ const {
|
|
|
7407
7471
|
} = storeData;
|
|
7408
7472
|
if (type) {
|
|
7409
7473
|
const selectItem = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().find(typeList, item => type === item.value);
|
|
7410
|
-
return selectItem ?
|
|
7474
|
+
return selectItem ? selectItem.label : '*.*';
|
|
7411
7475
|
}
|
|
7412
7476
|
return `*.${typeList.map(item => item.value).join(', *.')}`;
|
|
7413
7477
|
});
|
|
@@ -7475,7 +7539,7 @@ const {
|
|
|
7475
7539
|
modelValue: storeData.visible,
|
|
7476
7540
|
title: import_panel_getI18n('vxe.import.impTitle'),
|
|
7477
7541
|
className: 'vxe-table-import-popup-wrapper',
|
|
7478
|
-
width:
|
|
7542
|
+
width: 520,
|
|
7479
7543
|
mask: true,
|
|
7480
7544
|
lockView: true,
|
|
7481
7545
|
showFooter: false,
|
|
@@ -7504,18 +7568,12 @@ const {
|
|
|
7504
7568
|
ref: refFileBtn,
|
|
7505
7569
|
class: 'vxe-import-select--file',
|
|
7506
7570
|
onClick: selectFileEvent
|
|
7507
|
-
}, import_panel_getI18n('vxe.import.impSelect'))])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', import_panel_getI18n('vxe.import.impType')), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', parseTypeLabel)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', import_panel_getI18n('vxe.import.
|
|
7571
|
+
}, import_panel_getI18n('vxe.import.impSelect'))])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', import_panel_getI18n('vxe.import.impType')), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', parseTypeLabel)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', import_panel_getI18n('vxe.import.impMode')), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', [VxeUISelectComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUISelectComponent, {
|
|
7508
7572
|
modelValue: defaultOptions.mode,
|
|
7573
|
+
options: storeData.modeList,
|
|
7509
7574
|
'onUpdate:modelValue'(value) {
|
|
7510
7575
|
defaultOptions.mode = value;
|
|
7511
7576
|
}
|
|
7512
|
-
}, {
|
|
7513
|
-
default: () => storeData.modeList.map(item => {
|
|
7514
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIRadioComponent, {
|
|
7515
|
-
label: item.value,
|
|
7516
|
-
content: import_panel_getI18n(item.label)
|
|
7517
|
-
});
|
|
7518
|
-
})
|
|
7519
7577
|
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()])])])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
7520
7578
|
class: 'vxe-export--panel-btns'
|
|
7521
7579
|
}, [VxeUIButtonComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
|
|
@@ -7791,12 +7849,7 @@ const {
|
|
|
7791
7849
|
}
|
|
7792
7850
|
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()])]), isPrint ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)() : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('tr', [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', export_panel_getI18n('vxe.export.expType')), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('td', [VxeUISelectComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUISelectComponent, {
|
|
7793
7851
|
modelValue: defaultOptions.type,
|
|
7794
|
-
options: storeData.typeList
|
|
7795
|
-
return {
|
|
7796
|
-
value: item.value,
|
|
7797
|
-
label: export_panel_getI18n(item.label)
|
|
7798
|
-
};
|
|
7799
|
-
}),
|
|
7852
|
+
options: storeData.typeList,
|
|
7800
7853
|
'onUpdate:modelValue'(value) {
|
|
7801
7854
|
defaultOptions.type = value;
|
|
7802
7855
|
}
|
|
@@ -18901,7 +18954,7 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
18901
18954
|
if (status) {
|
|
18902
18955
|
$xeTable.createData(rows).then(data => {
|
|
18903
18956
|
let loadRest;
|
|
18904
|
-
if (opts.mode === 'insert') {
|
|
18957
|
+
if (opts.mode === 'insert' || opts.mode === 'insertBottom') {
|
|
18905
18958
|
loadRest = $xeTable.insert(data);
|
|
18906
18959
|
} else {
|
|
18907
18960
|
loadRest = $xeTable.reloadData(data);
|
|
@@ -18976,7 +19029,7 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
18976
19029
|
internalData._importReject = _importReject;
|
|
18977
19030
|
if (window.FileReader) {
|
|
18978
19031
|
const options = Object.assign({
|
|
18979
|
-
mode: '
|
|
19032
|
+
mode: 'insertBottom'
|
|
18980
19033
|
}, opts, {
|
|
18981
19034
|
type,
|
|
18982
19035
|
filename
|
|
@@ -19080,6 +19133,7 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
19080
19133
|
message: true,
|
|
19081
19134
|
isHeader: showHeader,
|
|
19082
19135
|
isFooter: showFooter,
|
|
19136
|
+
current: 'current',
|
|
19083
19137
|
modes: ['current', 'selected'].concat(proxyOpts.ajax && proxyOpts.ajax.queryAll ? ['all'] : [])
|
|
19084
19138
|
}, options);
|
|
19085
19139
|
const types = defOpts.types || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(exportOpts._typeMaps);
|
|
@@ -19093,13 +19147,19 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
19093
19147
|
const typeList = types.map(value => {
|
|
19094
19148
|
return {
|
|
19095
19149
|
value,
|
|
19096
|
-
label: `vxe.export.types.${value}`
|
|
19150
|
+
label: export_hook_getI18n(`vxe.export.types.${value}`)
|
|
19097
19151
|
};
|
|
19098
19152
|
});
|
|
19099
|
-
const modeList = modes.map(
|
|
19153
|
+
const modeList = modes.map(item => {
|
|
19154
|
+
if (item && item.value) {
|
|
19155
|
+
return {
|
|
19156
|
+
value: item.value,
|
|
19157
|
+
label: item.label || item.value
|
|
19158
|
+
};
|
|
19159
|
+
}
|
|
19100
19160
|
return {
|
|
19101
|
-
value,
|
|
19102
|
-
label: `vxe.export.modes.${
|
|
19161
|
+
value: item,
|
|
19162
|
+
label: export_hook_getI18n(`vxe.export.modes.${item}`)
|
|
19103
19163
|
};
|
|
19104
19164
|
});
|
|
19105
19165
|
// 默认选中
|
|
@@ -19149,11 +19209,11 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
19149
19209
|
Object.assign(exportParams, {
|
|
19150
19210
|
mode: selectRecords.length ? 'selected' : 'current'
|
|
19151
19211
|
}, defOpts);
|
|
19152
|
-
if (
|
|
19153
|
-
exportParams.mode =
|
|
19212
|
+
if (!modeList.some(item => item.value === exportParams.mode)) {
|
|
19213
|
+
exportParams.mode = modeList[0].value;
|
|
19154
19214
|
}
|
|
19155
|
-
if (
|
|
19156
|
-
exportParams.type =
|
|
19215
|
+
if (!typeList.some(item => item.value === exportParams.type)) {
|
|
19216
|
+
exportParams.type = typeList[0].value;
|
|
19157
19217
|
}
|
|
19158
19218
|
initStore.export = true;
|
|
19159
19219
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
@@ -19306,7 +19366,7 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
19306
19366
|
}
|
|
19307
19367
|
}
|
|
19308
19368
|
if (!opts.data) {
|
|
19309
|
-
opts.data =
|
|
19369
|
+
opts.data = [];
|
|
19310
19370
|
if (mode === 'selected') {
|
|
19311
19371
|
const selectRecords = $xeTable.getCheckboxRecords();
|
|
19312
19372
|
if (['html', 'pdf'].indexOf(type) > -1 && treeConfig) {
|
|
@@ -19361,6 +19421,8 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
19361
19421
|
});
|
|
19362
19422
|
}
|
|
19363
19423
|
}
|
|
19424
|
+
} else if (mode === 'current') {
|
|
19425
|
+
opts.data = afterFullData;
|
|
19364
19426
|
}
|
|
19365
19427
|
}
|
|
19366
19428
|
return handleExport(opts);
|
|
@@ -19511,10 +19573,10 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
19511
19573
|
} = reactData;
|
|
19512
19574
|
const importOpts = computeImportOpts.value;
|
|
19513
19575
|
const defOpts = Object.assign({
|
|
19514
|
-
mode: '
|
|
19576
|
+
mode: 'insertBottom',
|
|
19515
19577
|
message: true,
|
|
19516
19578
|
types: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(importOpts._typeMaps),
|
|
19517
|
-
modes: ['
|
|
19579
|
+
modes: ['insertBottom', 'covering']
|
|
19518
19580
|
}, importOpts, options);
|
|
19519
19581
|
const types = defOpts.types || [];
|
|
19520
19582
|
const modes = defOpts.modes || [];
|
|
@@ -19537,13 +19599,19 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
19537
19599
|
const typeList = types.map(value => {
|
|
19538
19600
|
return {
|
|
19539
19601
|
value,
|
|
19540
|
-
label: `vxe.export.types.${value}`
|
|
19602
|
+
label: export_hook_getI18n(`vxe.export.types.${value}`)
|
|
19541
19603
|
};
|
|
19542
19604
|
});
|
|
19543
|
-
const modeList = modes.map(
|
|
19605
|
+
const modeList = modes.map(item => {
|
|
19606
|
+
if (item && item.value) {
|
|
19607
|
+
return {
|
|
19608
|
+
value: item.value,
|
|
19609
|
+
label: item.label || item.value
|
|
19610
|
+
};
|
|
19611
|
+
}
|
|
19544
19612
|
return {
|
|
19545
|
-
value,
|
|
19546
|
-
label: `vxe.import.modes.${
|
|
19613
|
+
value: item,
|
|
19614
|
+
label: export_hook_getI18n(`vxe.import.modes.${item}`)
|
|
19547
19615
|
};
|
|
19548
19616
|
});
|
|
19549
19617
|
Object.assign(importStore, {
|
|
@@ -19555,12 +19623,14 @@ export_hook_hooks.add('tableExportModule', {
|
|
|
19555
19623
|
visible: true
|
|
19556
19624
|
});
|
|
19557
19625
|
Object.assign(importParams, defOpts);
|
|
19626
|
+
if (!modeList.some(item => item.value === importParams.mode)) {
|
|
19627
|
+
importParams.mode = modeList[0].value;
|
|
19628
|
+
}
|
|
19558
19629
|
initStore.import = true;
|
|
19559
19630
|
},
|
|
19560
19631
|
openExport(options) {
|
|
19561
19632
|
const exportOpts = computeExportOpts.value;
|
|
19562
19633
|
const defOpts = Object.assign({
|
|
19563
|
-
mode: 'insert',
|
|
19564
19634
|
message: true,
|
|
19565
19635
|
types: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(exportOpts._typeMaps)
|
|
19566
19636
|
}, exportOpts, options);
|
|
@@ -23638,6 +23708,627 @@ if (core_.VxeUI.dynamicApp) {
|
|
|
23638
23708
|
core_.VxeUI.component(grid);
|
|
23639
23709
|
const Grid = VxeGrid;
|
|
23640
23710
|
/* harmony default export */ var packages_grid = ((/* unused pure expression or super */ null && (VxeGrid)));
|
|
23711
|
+
;// CONCATENATED MODULE: ./packages/locale/lang/zh-CN.ts
|
|
23712
|
+
/**
|
|
23713
|
+
* v4保留兼容,已废弃,即将删除文件
|
|
23714
|
+
* @deprecated
|
|
23715
|
+
*/
|
|
23716
|
+
/* harmony default export */ var zh_CN = ({
|
|
23717
|
+
vxe: {
|
|
23718
|
+
base: {
|
|
23719
|
+
pleaseInput: '请输入',
|
|
23720
|
+
pleaseSelect: '请选择',
|
|
23721
|
+
comma: ',',
|
|
23722
|
+
fullStop: '。'
|
|
23723
|
+
},
|
|
23724
|
+
loading: {
|
|
23725
|
+
text: '加载中...'
|
|
23726
|
+
},
|
|
23727
|
+
error: {
|
|
23728
|
+
groupFixed: '如果使用分组表头,冻结列必须按组设置',
|
|
23729
|
+
groupMouseRange: '分组表头与 "{0}" 不能同时使用,这可能会出现错误',
|
|
23730
|
+
groupTag: '分组列头应该使用 "{0}" 而不是 "{1}",这可能会出现错误',
|
|
23731
|
+
scrollErrProp: '启用虚拟滚动后不支持该参数 "{0}"',
|
|
23732
|
+
errConflicts: '参数 "{0}" 与 "{1}" 有冲突',
|
|
23733
|
+
unableInsert: '无法插入到指定位置,请检查参数是否正确',
|
|
23734
|
+
useErr: '安装 "{0}" 模块时发生错误,可能顺序不正确,依赖的模块需要在 Table 之前安装',
|
|
23735
|
+
barUnableLink: '工具栏无法关联表格',
|
|
23736
|
+
expandContent: '展开行的插槽应该是 "content",请检查是否正确',
|
|
23737
|
+
reqModule: '缺少 "{0}" 模块',
|
|
23738
|
+
reqProp: '缺少必要的 "{0}" 参数,这可能会导致出现错误',
|
|
23739
|
+
emptyProp: '参数 "{0}" 不允许为空',
|
|
23740
|
+
errProp: '不支持的参数 "{0}",可能为 "{1}"',
|
|
23741
|
+
colRepet: 'column.{0}="{1}" 重复了,这可能会导致某些功能无法使用',
|
|
23742
|
+
notFunc: '方法 "{0}" 不存在',
|
|
23743
|
+
errFunc: '参数 "{0}" 不是一个方法',
|
|
23744
|
+
notValidators: '全局校验 "{0}" 不存在',
|
|
23745
|
+
notFormats: '全局格式化 "{0}" 不存在',
|
|
23746
|
+
notCommands: '全局指令 "{0}" 不存在',
|
|
23747
|
+
notSlot: '插槽 "{0}" 不存在',
|
|
23748
|
+
noTree: '树结构不支持 "{0}"',
|
|
23749
|
+
notProp: '不支持的参数 "{0}"',
|
|
23750
|
+
checkProp: '当数据量过大时可能会导致复选框卡顿,建议设置参数 "{0}" 提升渲染速度',
|
|
23751
|
+
coverProp: '"{0}" 的参数 "{1}" 重复定义,这可能会出现错误',
|
|
23752
|
+
delFunc: '方法 "{0}" 已废弃,请使用 "{1}"',
|
|
23753
|
+
delProp: '参数 "{0}" 已废弃,请使用 "{1}"',
|
|
23754
|
+
delEvent: '事件 "{0}" 已废弃,请使用 "{1}"',
|
|
23755
|
+
removeProp: '参数 "{0}" 已废弃,不建议使用,这可能会导致出现错误',
|
|
23756
|
+
errFormat: '全局的格式化内容应该使用 "VXETable.formats" 定义,挂载 "formatter={0}" 的方式已不建议使用',
|
|
23757
|
+
notType: '不支持的文件类型 "{0}"',
|
|
23758
|
+
notExp: '该浏览器不支持导入/导出功能',
|
|
23759
|
+
impFields: '导入失败,请检查字段名和数据格式是否正确',
|
|
23760
|
+
treeNotImp: '树表格不支持导入'
|
|
23761
|
+
},
|
|
23762
|
+
table: {
|
|
23763
|
+
emptyText: '暂无数据',
|
|
23764
|
+
allTitle: '全选/取消',
|
|
23765
|
+
seqTitle: '序号',
|
|
23766
|
+
confirmFilter: '筛选',
|
|
23767
|
+
resetFilter: '重置',
|
|
23768
|
+
allFilter: '全部',
|
|
23769
|
+
sortAsc: '升序:最低到最高',
|
|
23770
|
+
sortDesc: '降序:最高到最低',
|
|
23771
|
+
filter: '对所选的列启用筛选',
|
|
23772
|
+
impSuccess: '成功导入 {0} 条记录',
|
|
23773
|
+
expLoading: '正在导出中',
|
|
23774
|
+
expSuccess: '导出成功',
|
|
23775
|
+
expFilename: '导出_{0}',
|
|
23776
|
+
expOriginFilename: '导出_源_{0}',
|
|
23777
|
+
customTitle: '列设置',
|
|
23778
|
+
customAll: '全部',
|
|
23779
|
+
customConfirm: '确认',
|
|
23780
|
+
customCancel: '取消',
|
|
23781
|
+
customRestore: '恢复默认',
|
|
23782
|
+
maxFixedCol: '最大冻结列的数量不能超过 {0} 个'
|
|
23783
|
+
},
|
|
23784
|
+
grid: {
|
|
23785
|
+
selectOneRecord: '请至少选择一条记录!',
|
|
23786
|
+
deleteSelectRecord: '您确定要删除所选记录吗?',
|
|
23787
|
+
removeSelectRecord: '您确定要移除所选记录吗?',
|
|
23788
|
+
dataUnchanged: '数据未改动!',
|
|
23789
|
+
delSuccess: '成功删除所选记录!',
|
|
23790
|
+
saveSuccess: '保存成功!',
|
|
23791
|
+
operError: '发生错误,操作失败!'
|
|
23792
|
+
},
|
|
23793
|
+
select: {
|
|
23794
|
+
search: '搜索',
|
|
23795
|
+
loadingText: '加载中',
|
|
23796
|
+
emptyText: '暂无数据'
|
|
23797
|
+
},
|
|
23798
|
+
pager: {
|
|
23799
|
+
goto: '前往',
|
|
23800
|
+
pagesize: '{0}条/页',
|
|
23801
|
+
total: '共 {0} 条记录',
|
|
23802
|
+
pageClassifier: '页',
|
|
23803
|
+
homePage: '首页',
|
|
23804
|
+
homePageTitle: '首页',
|
|
23805
|
+
prevPage: '上一页',
|
|
23806
|
+
prevPageTitle: '上一页',
|
|
23807
|
+
nextPage: '下一页',
|
|
23808
|
+
nextPageTitle: '下一页',
|
|
23809
|
+
prevJump: '向上跳页',
|
|
23810
|
+
prevJumpTitle: '向上跳页',
|
|
23811
|
+
nextJump: '向下跳页',
|
|
23812
|
+
nextJumpTitle: '向下跳页',
|
|
23813
|
+
endPage: '末页',
|
|
23814
|
+
endPageTitle: '末页'
|
|
23815
|
+
},
|
|
23816
|
+
alert: {
|
|
23817
|
+
title: '系统提示'
|
|
23818
|
+
},
|
|
23819
|
+
button: {
|
|
23820
|
+
confirm: '确认',
|
|
23821
|
+
cancel: '取消'
|
|
23822
|
+
},
|
|
23823
|
+
filter: {
|
|
23824
|
+
search: '搜索'
|
|
23825
|
+
},
|
|
23826
|
+
custom: {
|
|
23827
|
+
cstmTitle: '列设置',
|
|
23828
|
+
cstmRestore: '恢复默认',
|
|
23829
|
+
cstmCancel: '取消',
|
|
23830
|
+
cstmConfirm: '确定',
|
|
23831
|
+
cstmConfirmRestore: '请确认是否恢复成默认列配置?',
|
|
23832
|
+
cstmDragTarget: '移动目标:{0}',
|
|
23833
|
+
setting: {
|
|
23834
|
+
colSort: '排序',
|
|
23835
|
+
sortHelpTip: '点击并拖动图标可以调整列的排序',
|
|
23836
|
+
colTitle: '标题',
|
|
23837
|
+
colResizable: '列宽(像素)',
|
|
23838
|
+
colVisible: '是否显示',
|
|
23839
|
+
colFixed: '冻结列(最多 {0} 列)',
|
|
23840
|
+
fixedLeft: '左侧',
|
|
23841
|
+
fixedUnset: '不设置',
|
|
23842
|
+
fixedRight: '右侧'
|
|
23843
|
+
}
|
|
23844
|
+
},
|
|
23845
|
+
import: {
|
|
23846
|
+
modes: {
|
|
23847
|
+
covering: 'Overwrite mode (directly overwrite table data)',
|
|
23848
|
+
insert: 'Bottom append (appends new data to the bottom of the table)',
|
|
23849
|
+
insertTop: 'Top append (appends new data to the top of the table)',
|
|
23850
|
+
insertBottom: 'Bottom append (appends new data to the bottom of the table)'
|
|
23851
|
+
},
|
|
23852
|
+
impTitle: '导入数据',
|
|
23853
|
+
impFile: '文件名',
|
|
23854
|
+
impSelect: '选择文件',
|
|
23855
|
+
impType: '文件类型',
|
|
23856
|
+
impOpts: '参数设置',
|
|
23857
|
+
impMode: '导入模式',
|
|
23858
|
+
impConfirm: '导入',
|
|
23859
|
+
impCancel: '取消'
|
|
23860
|
+
},
|
|
23861
|
+
export: {
|
|
23862
|
+
types: {
|
|
23863
|
+
csv: 'CSV (逗号分隔)(*.csv)',
|
|
23864
|
+
html: '网页(*.html)',
|
|
23865
|
+
xml: 'XML 数据(*.xml)',
|
|
23866
|
+
txt: '文本文件(制表符分隔)(*.txt)',
|
|
23867
|
+
xls: 'Excel 97-2003 工作簿(*.xls)',
|
|
23868
|
+
xlsx: 'Excel 工作簿(*.xlsx)',
|
|
23869
|
+
pdf: 'PDF (*.pdf)'
|
|
23870
|
+
},
|
|
23871
|
+
modes: {
|
|
23872
|
+
current: '当前数据(当前页的数据)',
|
|
23873
|
+
selected: '选中数据(当前页选中的数据)',
|
|
23874
|
+
all: '全量数据(包括所有分页的数据)'
|
|
23875
|
+
},
|
|
23876
|
+
printTitle: '打印数据',
|
|
23877
|
+
expTitle: '导出数据',
|
|
23878
|
+
expName: '文件名',
|
|
23879
|
+
expNamePlaceholder: '请输入文件名',
|
|
23880
|
+
expSheetName: '标题',
|
|
23881
|
+
expSheetNamePlaceholder: '请输入标题',
|
|
23882
|
+
expType: '保存类型',
|
|
23883
|
+
expMode: '选择数据',
|
|
23884
|
+
expCurrentColumn: '全部字段',
|
|
23885
|
+
expColumn: '选择字段',
|
|
23886
|
+
expOpts: '参数设置',
|
|
23887
|
+
expOptHeader: '表头',
|
|
23888
|
+
expHeaderTitle: '是否需要表头',
|
|
23889
|
+
expOptFooter: '表尾',
|
|
23890
|
+
expFooterTitle: '是否需要表尾',
|
|
23891
|
+
expOptColgroup: '分组表头',
|
|
23892
|
+
expColgroupTitle: '如果存在,则支持带有分组结构的表头',
|
|
23893
|
+
expOptMerge: '合并',
|
|
23894
|
+
expMergeTitle: '如果存在,则支持带有合并结构的单元格',
|
|
23895
|
+
expOptAllExpand: '展开层级',
|
|
23896
|
+
expAllExpandTitle: '如果存在,则支持将带有层级结构的数据全部展开',
|
|
23897
|
+
expOptUseStyle: '样式',
|
|
23898
|
+
expUseStyleTitle: '如果存在,则支持带样式的单元格',
|
|
23899
|
+
expOptOriginal: '源数据',
|
|
23900
|
+
expOriginalTitle: '如果为源数据,则支持导入到表格中',
|
|
23901
|
+
expPrint: '打印',
|
|
23902
|
+
expConfirm: '导出',
|
|
23903
|
+
expCancel: '取消'
|
|
23904
|
+
},
|
|
23905
|
+
modal: {
|
|
23906
|
+
errTitle: '错误提示',
|
|
23907
|
+
zoomMin: '最小化',
|
|
23908
|
+
zoomIn: '最大化',
|
|
23909
|
+
zoomOut: '还原',
|
|
23910
|
+
close: '关闭'
|
|
23911
|
+
},
|
|
23912
|
+
drawer: {
|
|
23913
|
+
close: '关闭'
|
|
23914
|
+
},
|
|
23915
|
+
form: {
|
|
23916
|
+
folding: '收起',
|
|
23917
|
+
unfolding: '展开'
|
|
23918
|
+
},
|
|
23919
|
+
toolbar: {
|
|
23920
|
+
import: '导入',
|
|
23921
|
+
export: '导出',
|
|
23922
|
+
print: '打印',
|
|
23923
|
+
refresh: '刷新',
|
|
23924
|
+
zoomIn: '全屏',
|
|
23925
|
+
zoomOut: '还原',
|
|
23926
|
+
custom: '列设置',
|
|
23927
|
+
customAll: '全部',
|
|
23928
|
+
customConfirm: '确认',
|
|
23929
|
+
customRestore: '重置',
|
|
23930
|
+
fixedLeft: '冻结在左侧',
|
|
23931
|
+
fixedRight: '冻结在右侧',
|
|
23932
|
+
cancelFixed: '取消冻结列'
|
|
23933
|
+
},
|
|
23934
|
+
input: {
|
|
23935
|
+
date: {
|
|
23936
|
+
m1: '01 月',
|
|
23937
|
+
m2: '02 月',
|
|
23938
|
+
m3: '03 月',
|
|
23939
|
+
m4: '04 月',
|
|
23940
|
+
m5: '05 月',
|
|
23941
|
+
m6: '06 月',
|
|
23942
|
+
m7: '07 月',
|
|
23943
|
+
m8: '08 月',
|
|
23944
|
+
m9: '09 月',
|
|
23945
|
+
m10: '10 月',
|
|
23946
|
+
m11: '11 月',
|
|
23947
|
+
m12: '12 月',
|
|
23948
|
+
quarterLabel: '{0} 年',
|
|
23949
|
+
monthLabel: '{0} 年',
|
|
23950
|
+
dayLabel: '{0} 年 {1}',
|
|
23951
|
+
labelFormat: {
|
|
23952
|
+
date: 'yyyy-MM-dd',
|
|
23953
|
+
time: 'HH:mm:ss',
|
|
23954
|
+
datetime: 'yyyy-MM-dd HH:mm:ss',
|
|
23955
|
+
week: 'yyyy 年第 WW 周',
|
|
23956
|
+
month: 'yyyy-MM',
|
|
23957
|
+
quarter: 'yyyy 年第 q 季度',
|
|
23958
|
+
year: 'yyyy'
|
|
23959
|
+
},
|
|
23960
|
+
weeks: {
|
|
23961
|
+
w: '周',
|
|
23962
|
+
w0: '周日',
|
|
23963
|
+
w1: '周一',
|
|
23964
|
+
w2: '周二',
|
|
23965
|
+
w3: '周三',
|
|
23966
|
+
w4: '周四',
|
|
23967
|
+
w5: '周五',
|
|
23968
|
+
w6: '周六'
|
|
23969
|
+
},
|
|
23970
|
+
months: {
|
|
23971
|
+
m0: '一月',
|
|
23972
|
+
m1: '二月',
|
|
23973
|
+
m2: '三月',
|
|
23974
|
+
m3: '四月',
|
|
23975
|
+
m4: '五月',
|
|
23976
|
+
m5: '六月',
|
|
23977
|
+
m6: '七月',
|
|
23978
|
+
m7: '八月',
|
|
23979
|
+
m8: '九月',
|
|
23980
|
+
m9: '十月',
|
|
23981
|
+
m10: '十一月',
|
|
23982
|
+
m11: '十二月'
|
|
23983
|
+
},
|
|
23984
|
+
quarters: {
|
|
23985
|
+
q1: '第一季度',
|
|
23986
|
+
q2: '第二季度',
|
|
23987
|
+
q3: '第三季度',
|
|
23988
|
+
q4: '第四季度'
|
|
23989
|
+
}
|
|
23990
|
+
}
|
|
23991
|
+
},
|
|
23992
|
+
imagePreview: {
|
|
23993
|
+
popupTitle: '预览',
|
|
23994
|
+
operBtn: {
|
|
23995
|
+
zoomOut: '缩小',
|
|
23996
|
+
zoomIn: '放大',
|
|
23997
|
+
pctFull: '等比例缩放',
|
|
23998
|
+
pct11: '显示原始尺寸',
|
|
23999
|
+
rotateLeft: '向左旋转',
|
|
24000
|
+
rotateRight: '向右旋转',
|
|
24001
|
+
print: '点击打印图片',
|
|
24002
|
+
download: '点击下载图片'
|
|
24003
|
+
}
|
|
24004
|
+
},
|
|
24005
|
+
upload: {
|
|
24006
|
+
fileBtnText: '点击或拖拽上传',
|
|
24007
|
+
imgBtnText: '点击或拖拽上传',
|
|
24008
|
+
dragPlaceholder: '请把文件拖放到这个区域即可上传',
|
|
24009
|
+
imgSizeHint: '单张{0}',
|
|
24010
|
+
imgCountHint: '最多{0}张',
|
|
24011
|
+
fileTypeHint: '支持 {0} 文件类型',
|
|
24012
|
+
fileSizeHint: '单个文件大小不超过{0}',
|
|
24013
|
+
fileCountHint: '最多可上传{0}个文件',
|
|
24014
|
+
overCountErr: '最多只能选择{0}个文件!',
|
|
24015
|
+
overCountExtraErr: '已超出最大数量{0}个,超出的{1}个文件将被忽略!',
|
|
24016
|
+
overSizeErr: '文件大小最大不能超过{0}!',
|
|
24017
|
+
reUpload: '重新上传',
|
|
24018
|
+
uploadProgress: '上传中 {0}%',
|
|
24019
|
+
uploadErr: '上传失败',
|
|
24020
|
+
uploadSuccess: '上传成功'
|
|
24021
|
+
},
|
|
24022
|
+
formDesign: {
|
|
24023
|
+
formName: '表单名称',
|
|
24024
|
+
defFormTitle: '未命名的表单',
|
|
24025
|
+
widgetPropTab: '控件属性',
|
|
24026
|
+
widgetFormTab: '表单属性',
|
|
24027
|
+
styleSetting: {
|
|
24028
|
+
btn: '样式设置',
|
|
24029
|
+
title: '表单的样式设置',
|
|
24030
|
+
layoutTitle: '控件布局',
|
|
24031
|
+
verticalLayout: '上下布局',
|
|
24032
|
+
horizontalLayout: '横向布局',
|
|
24033
|
+
styleTitle: '标题样式',
|
|
24034
|
+
boldTitle: '标题加粗',
|
|
24035
|
+
fontBold: '加粗',
|
|
24036
|
+
fontNormal: '常规',
|
|
24037
|
+
colonTitle: '显示冒号',
|
|
24038
|
+
colonVisible: '显示',
|
|
24039
|
+
colonHidden: '隐藏',
|
|
24040
|
+
alignTitle: '对齐方式',
|
|
24041
|
+
widthTitle: '标题宽度',
|
|
24042
|
+
alignLeft: '居左',
|
|
24043
|
+
alignRight: '居右',
|
|
24044
|
+
unitPx: '像素',
|
|
24045
|
+
unitPct: '百分比'
|
|
24046
|
+
},
|
|
24047
|
+
widget: {
|
|
24048
|
+
group: {
|
|
24049
|
+
base: '基础控件',
|
|
24050
|
+
layout: '布局控件',
|
|
24051
|
+
advanced: '高级控件'
|
|
24052
|
+
},
|
|
24053
|
+
copyTitle: '副本_{0}',
|
|
24054
|
+
component: {
|
|
24055
|
+
input: '输入框',
|
|
24056
|
+
textarea: '文本域',
|
|
24057
|
+
select: '下拉框',
|
|
24058
|
+
row: '一行多列',
|
|
24059
|
+
title: '文本',
|
|
24060
|
+
subtable: '子表',
|
|
24061
|
+
VxeSwitch: '是/否',
|
|
24062
|
+
VxeInput: '输入框',
|
|
24063
|
+
VxeNumberInput: '数字',
|
|
24064
|
+
VxeDatePicker: '日期',
|
|
24065
|
+
VxeTextarea: '文本域',
|
|
24066
|
+
VxeSelect: '下拉框',
|
|
24067
|
+
VxeRadioGroup: '单选框',
|
|
24068
|
+
VxeCheckboxGroup: '复选框',
|
|
24069
|
+
VxeUploadFile: '文件',
|
|
24070
|
+
VxeUploadImage: '图片'
|
|
24071
|
+
}
|
|
24072
|
+
},
|
|
24073
|
+
widgetProp: {
|
|
24074
|
+
name: '控件名称',
|
|
24075
|
+
placeholder: '提示语',
|
|
24076
|
+
required: '必填校验',
|
|
24077
|
+
displaySetting: {
|
|
24078
|
+
name: '显示设置',
|
|
24079
|
+
pc: '电脑端',
|
|
24080
|
+
mobile: '手机端',
|
|
24081
|
+
visible: '显示',
|
|
24082
|
+
hidden: '隐藏'
|
|
24083
|
+
},
|
|
24084
|
+
dataSource: {
|
|
24085
|
+
name: '数据源',
|
|
24086
|
+
defValue: '选项{0}',
|
|
24087
|
+
addOption: '添加选项',
|
|
24088
|
+
batchEditOption: '批量编辑',
|
|
24089
|
+
batchEditTip: '每行对应一个选项,支持从表格、Excel、WPS 中直接复制粘贴。',
|
|
24090
|
+
batchEditSubTip: '每行对应一个选项,如果是分组,子项可以是空格或制表键开头,支持从表格、Excel、WPS 中直接复制粘贴。',
|
|
24091
|
+
buildOption: '生成选项'
|
|
24092
|
+
},
|
|
24093
|
+
rowProp: {
|
|
24094
|
+
colSize: '列数',
|
|
24095
|
+
col2: '两列',
|
|
24096
|
+
col3: '三列',
|
|
24097
|
+
col4: '四列',
|
|
24098
|
+
col6: '六列',
|
|
24099
|
+
layout: '布局'
|
|
24100
|
+
},
|
|
24101
|
+
textProp: {
|
|
24102
|
+
name: '内容',
|
|
24103
|
+
alignTitle: '对齐方式',
|
|
24104
|
+
alignLeft: '居左',
|
|
24105
|
+
alignCenter: '居中',
|
|
24106
|
+
alignRight: '居右',
|
|
24107
|
+
colorTitle: '字体颜色',
|
|
24108
|
+
sizeTitle: '字体大小',
|
|
24109
|
+
boldTitle: '字体加粗',
|
|
24110
|
+
fontNormal: '常规',
|
|
24111
|
+
fontBold: '加粗'
|
|
24112
|
+
},
|
|
24113
|
+
subtableProp: {
|
|
24114
|
+
seqTitle: '序号',
|
|
24115
|
+
showSeq: '显示序号',
|
|
24116
|
+
showCheckbox: '允许多选',
|
|
24117
|
+
errSubDrag: '子表不支持该控件,请使用其他控件'
|
|
24118
|
+
},
|
|
24119
|
+
uploadProp: {
|
|
24120
|
+
limitFileCount: '文件数量限制',
|
|
24121
|
+
limitFileSize: '文件大小限制',
|
|
24122
|
+
multiFile: '允许上传多个文件',
|
|
24123
|
+
limitImgCount: '图片数量限制',
|
|
24124
|
+
limitImgSize: '图片大小限制',
|
|
24125
|
+
multiImg: '允许上传多张图片'
|
|
24126
|
+
}
|
|
24127
|
+
}
|
|
24128
|
+
},
|
|
24129
|
+
listDesign: {
|
|
24130
|
+
fieldSettingTab: '字段设置',
|
|
24131
|
+
listSettingTab: '列表设置'
|
|
24132
|
+
},
|
|
24133
|
+
/**
|
|
24134
|
+
* 扩展插件
|
|
24135
|
+
*/
|
|
24136
|
+
plugins: {
|
|
24137
|
+
extendCellArea: {
|
|
24138
|
+
area: {
|
|
24139
|
+
mergeErr: '无法对合并单元格进行该操作',
|
|
24140
|
+
multiErr: '无法对多重选择区域进行该操作',
|
|
24141
|
+
extendErr: '如果延伸的区域包含被合并的单元格,所有合并的单元格需大小相同',
|
|
24142
|
+
pasteMultiErr: '无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作',
|
|
24143
|
+
cpInvalidErr: '该操作无法进行,您选择的区域中存在被禁止的列({0})'
|
|
24144
|
+
},
|
|
24145
|
+
fnr: {
|
|
24146
|
+
title: '查找和替换',
|
|
24147
|
+
findLabel: '查找',
|
|
24148
|
+
replaceLabel: '替换',
|
|
24149
|
+
findTitle: '查找内容:',
|
|
24150
|
+
replaceTitle: '替换为:',
|
|
24151
|
+
tabs: {
|
|
24152
|
+
find: '查找',
|
|
24153
|
+
replace: '替换'
|
|
24154
|
+
},
|
|
24155
|
+
filter: {
|
|
24156
|
+
re: '正则表达式',
|
|
24157
|
+
whole: '全词匹配',
|
|
24158
|
+
sensitive: '区分大小写'
|
|
24159
|
+
},
|
|
24160
|
+
btns: {
|
|
24161
|
+
findNext: '查找下一个',
|
|
24162
|
+
findAll: '查找全部',
|
|
24163
|
+
replace: '替换',
|
|
24164
|
+
replaceAll: '替换全部',
|
|
24165
|
+
cancel: '取消'
|
|
24166
|
+
},
|
|
24167
|
+
header: {
|
|
24168
|
+
seq: '#',
|
|
24169
|
+
cell: '单元格',
|
|
24170
|
+
value: '值'
|
|
24171
|
+
},
|
|
24172
|
+
empty: '(空值)',
|
|
24173
|
+
reError: '无效的正则表达式',
|
|
24174
|
+
recordCount: '已找到 {0} 个单元格',
|
|
24175
|
+
notCell: '找不到匹配的单元格',
|
|
24176
|
+
replaceSuccess: '成功替换 {0} 个单元格'
|
|
24177
|
+
}
|
|
24178
|
+
},
|
|
24179
|
+
filterComplexInput: {
|
|
24180
|
+
menus: {
|
|
24181
|
+
fixedColumn: '冻结列',
|
|
24182
|
+
fixedGroup: '冻结分组',
|
|
24183
|
+
cancelFixed: '取消冻结',
|
|
24184
|
+
fixedLeft: '冻结左侧',
|
|
24185
|
+
fixedRight: '冻结右侧'
|
|
24186
|
+
},
|
|
24187
|
+
cases: {
|
|
24188
|
+
equal: '等于',
|
|
24189
|
+
gt: '大于',
|
|
24190
|
+
lt: '小于',
|
|
24191
|
+
begin: '开头是',
|
|
24192
|
+
endin: '结尾是',
|
|
24193
|
+
include: '包含',
|
|
24194
|
+
isSensitive: '区分大小写'
|
|
24195
|
+
}
|
|
24196
|
+
},
|
|
24197
|
+
filterCombination: {
|
|
24198
|
+
menus: {
|
|
24199
|
+
clearSort: '清除排序',
|
|
24200
|
+
sortAsc: '升序',
|
|
24201
|
+
sortDesc: '降序',
|
|
24202
|
+
fixedColumn: '冻结列',
|
|
24203
|
+
fixedGroup: '冻结分组',
|
|
24204
|
+
cancelFixed: '取消冻结',
|
|
24205
|
+
fixedLeft: '冻结左侧',
|
|
24206
|
+
fixedRight: '冻结右侧',
|
|
24207
|
+
clearFilter: '清除筛选',
|
|
24208
|
+
textOption: '文本筛选',
|
|
24209
|
+
numberOption: '数值筛选'
|
|
24210
|
+
},
|
|
24211
|
+
popup: {
|
|
24212
|
+
title: '自定义筛选的方式',
|
|
24213
|
+
currColumnTitle: '当前列:',
|
|
24214
|
+
and: '与',
|
|
24215
|
+
or: '或',
|
|
24216
|
+
describeHtml: '可用 ? 代表单个字符<br/>用 * 代表任意多个字符'
|
|
24217
|
+
},
|
|
24218
|
+
cases: {
|
|
24219
|
+
equal: '等于',
|
|
24220
|
+
unequal: '不等于',
|
|
24221
|
+
gt: '大于',
|
|
24222
|
+
ge: '大于或等于',
|
|
24223
|
+
lt: '小于',
|
|
24224
|
+
le: '小于或等于',
|
|
24225
|
+
begin: '开头是',
|
|
24226
|
+
notbegin: '开头不是',
|
|
24227
|
+
endin: '结尾是',
|
|
24228
|
+
notendin: '结尾不是',
|
|
24229
|
+
include: '包含',
|
|
24230
|
+
exclude: '不包含',
|
|
24231
|
+
between: '介于',
|
|
24232
|
+
custom: '自定义筛选',
|
|
24233
|
+
insensitive: '不区分大小写',
|
|
24234
|
+
isSensitive: '区分大小写'
|
|
24235
|
+
},
|
|
24236
|
+
empty: '(空白)',
|
|
24237
|
+
notData: '无匹配项'
|
|
24238
|
+
}
|
|
24239
|
+
},
|
|
24240
|
+
/**
|
|
24241
|
+
* 以下废弃
|
|
24242
|
+
* @deprecated
|
|
24243
|
+
*/
|
|
24244
|
+
pro: {
|
|
24245
|
+
area: {
|
|
24246
|
+
mergeErr: '无法对合并单元格进行该操作',
|
|
24247
|
+
multiErr: '无法对多重选择区域进行该操作',
|
|
24248
|
+
extendErr: '如果延伸的区域包含被合并的单元格,所有合并的单元格需大小相同',
|
|
24249
|
+
pasteMultiErr: '无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作'
|
|
24250
|
+
},
|
|
24251
|
+
fnr: {
|
|
24252
|
+
title: '查找和替换',
|
|
24253
|
+
findLabel: '查找',
|
|
24254
|
+
replaceLabel: '替换',
|
|
24255
|
+
findTitle: '查找内容:',
|
|
24256
|
+
replaceTitle: '替换为:',
|
|
24257
|
+
tabs: {
|
|
24258
|
+
find: '查找',
|
|
24259
|
+
replace: '替换'
|
|
24260
|
+
},
|
|
24261
|
+
filter: {
|
|
24262
|
+
re: '正则表达式',
|
|
24263
|
+
whole: '全词匹配',
|
|
24264
|
+
sensitive: '区分大小写'
|
|
24265
|
+
},
|
|
24266
|
+
btns: {
|
|
24267
|
+
findNext: '查找下一个',
|
|
24268
|
+
findAll: '查找全部',
|
|
24269
|
+
replace: '替换',
|
|
24270
|
+
replaceAll: '替换全部',
|
|
24271
|
+
cancel: '取消'
|
|
24272
|
+
},
|
|
24273
|
+
header: {
|
|
24274
|
+
seq: '#',
|
|
24275
|
+
cell: '单元格',
|
|
24276
|
+
value: '值'
|
|
24277
|
+
},
|
|
24278
|
+
empty: '(空值)',
|
|
24279
|
+
reError: '无效的正则表达式',
|
|
24280
|
+
recordCount: '已找到 {0} 个单元格',
|
|
24281
|
+
notCell: '找不到匹配的单元格',
|
|
24282
|
+
replaceSuccess: '成功替换 {0} 个单元格'
|
|
24283
|
+
}
|
|
24284
|
+
},
|
|
24285
|
+
renderer: {
|
|
24286
|
+
search: '搜索',
|
|
24287
|
+
cases: {
|
|
24288
|
+
equal: '等于',
|
|
24289
|
+
unequal: '不等于',
|
|
24290
|
+
gt: '大于',
|
|
24291
|
+
ge: '大于或等于',
|
|
24292
|
+
lt: '小于',
|
|
24293
|
+
le: '小于或等于',
|
|
24294
|
+
begin: '开头是',
|
|
24295
|
+
notbegin: '开头不是',
|
|
24296
|
+
endin: '结尾是',
|
|
24297
|
+
notendin: '结尾不是',
|
|
24298
|
+
include: '包含',
|
|
24299
|
+
exclude: '不包含',
|
|
24300
|
+
between: '介于',
|
|
24301
|
+
custom: '自定义筛选',
|
|
24302
|
+
insensitive: '不区分大小写',
|
|
24303
|
+
isSensitive: '区分大小写'
|
|
24304
|
+
},
|
|
24305
|
+
combination: {
|
|
24306
|
+
menus: {
|
|
24307
|
+
clearSort: '清除排序',
|
|
24308
|
+
sortAsc: '升序',
|
|
24309
|
+
sortDesc: '降序',
|
|
24310
|
+
fixedColumn: '锁定列',
|
|
24311
|
+
fixedGroup: '锁定组',
|
|
24312
|
+
cancelFixed: '取消锁定',
|
|
24313
|
+
fixedLeft: '锁定左侧',
|
|
24314
|
+
fixedRight: '锁定右侧',
|
|
24315
|
+
clearFilter: '清除筛选',
|
|
24316
|
+
textOption: '文本筛选',
|
|
24317
|
+
numberOption: '数值筛选'
|
|
24318
|
+
},
|
|
24319
|
+
popup: {
|
|
24320
|
+
title: '自定义筛选的方式',
|
|
24321
|
+
currColumnTitle: '当前列:',
|
|
24322
|
+
and: '与',
|
|
24323
|
+
or: '或',
|
|
24324
|
+
describeHtml: '可用 ? 代表单个字符<br/>用 * 代表任意多个字符'
|
|
24325
|
+
},
|
|
24326
|
+
empty: '(空白)',
|
|
24327
|
+
notData: '无匹配项'
|
|
24328
|
+
}
|
|
24329
|
+
}
|
|
24330
|
+
}
|
|
24331
|
+
});
|
|
23641
24332
|
;// CONCATENATED MODULE: ./packages/components.ts
|
|
23642
24333
|
|
|
23643
24334
|
|
|
@@ -23645,14 +24336,18 @@ const Grid = VxeGrid;
|
|
|
23645
24336
|
|
|
23646
24337
|
|
|
23647
24338
|
|
|
24339
|
+
|
|
23648
24340
|
const components = [VxeColumn, VxeColgroup, VxeGrid, VxeTable, VxeToolbar];
|
|
23649
24341
|
// 默认安装
|
|
23650
24342
|
function install(app, options) {
|
|
23651
24343
|
core_.VxeUI.setConfig(options);
|
|
23652
24344
|
components.forEach(component => component.install(app));
|
|
23653
24345
|
}
|
|
23654
|
-
|
|
23655
|
-
const
|
|
24346
|
+
// 保留兼容老版本
|
|
24347
|
+
const defaultLanguage = 'zh-CN';
|
|
24348
|
+
core_.VxeUI.setI18n(defaultLanguage, zh_CN);
|
|
24349
|
+
core_.VxeUI.setLanguage(defaultLanguage);
|
|
24350
|
+
core_.VxeUI.setTheme('light');
|
|
23656
24351
|
|
|
23657
24352
|
// Components
|
|
23658
24353
|
|