vxe-table 4.23.18 → 4.23.19
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/dist/all.esm.js +20 -25
- package/dist/all.esm.min.js +3 -3
- package/es/table/module/edit/hook.js +2 -4
- package/es/table/module/export/export-panel.js +5 -5
- package/es/table/module/export/hook.js +8 -10
- package/es/table/module/export/import-panel.js +5 -5
- package/es/table/src/table.js +0 -1
- package/es/ui/index.d.ts +1 -0
- package/es/ui/index.js +1 -0
- package/lib/index.umd.js +20 -25
- package/lib/index.umd.min.js +3 -3
- package/lib/table/module/edit/hook.js +2 -4
- package/lib/table/module/export/export-panel.js +5 -5
- package/lib/table/module/export/hook.js +8 -10
- package/lib/table/module/export/import-panel.js +5 -5
- package/lib/table/src/table.js +0 -1
- package/lib/ui/index.d.ts +1 -0
- package/lib/ui/index.js +1 -0
- package/package.json +2 -2
- package/packages/table/module/edit/hook.ts +2 -5
- package/packages/table/module/export/export-panel.ts +5 -5
- package/packages/table/module/export/hook.ts +8 -10
- package/packages/table/module/export/import-panel.ts +5 -5
- package/packages/table/src/table.ts +0 -1
- package/packages/ui/index.ts +4 -0
- /package/dist/{iconfont.1794366305845.ttf → iconfont.1794474448348.ttf} +0 -0
- /package/dist/{iconfont.1794366305845.woff → iconfont.1794474448348.woff} +0 -0
- /package/dist/{iconfont.1794366305845.woff2 → iconfont.1794474448348.woff2} +0 -0
- /package/es/{iconfont.1794366305845.ttf → iconfont.1794474448348.ttf} +0 -0
- /package/es/{iconfont.1794366305845.woff → iconfont.1794474448348.woff} +0 -0
- /package/es/{iconfont.1794366305845.woff2 → iconfont.1794474448348.woff2} +0 -0
- /package/lib/{iconfont.1794366305845.ttf → iconfont.1794474448348.ttf} +0 -0
- /package/lib/{iconfont.1794366305845.woff → iconfont.1794474448348.woff} +0 -0
- /package/lib/{iconfont.1794366305845.woff2 → iconfont.1794474448348.woff2} +0 -0
|
@@ -66,8 +66,6 @@ hooks.add("tableEditModule", {
|
|
|
66
66
|
const { refElem } = $xeTable.getRefMaps();
|
|
67
67
|
const { computeMouseOpts, computeEditOpts, computeCheckboxOpts, computeTreeOpts, computeValidOpts, computeRendererOpts } = $xeTable.getComputeMaps();
|
|
68
68
|
const browseObj = import_xe_utils.default.browse();
|
|
69
|
-
let editMethods = {};
|
|
70
|
-
let editPrivateMethods = {};
|
|
71
69
|
const getEditColumnModel = (row, column) => {
|
|
72
70
|
const { model, editRender } = column;
|
|
73
71
|
if (editRender) {
|
|
@@ -565,7 +563,7 @@ hooks.add("tableEditModule", {
|
|
|
565
563
|
}
|
|
566
564
|
return (0, import_vue.nextTick)();
|
|
567
565
|
};
|
|
568
|
-
editMethods = {
|
|
566
|
+
const editMethods = {
|
|
569
567
|
/**
|
|
570
568
|
* 往表格中插入临时数据
|
|
571
569
|
*
|
|
@@ -1013,7 +1011,7 @@ hooks.add("tableEditModule", {
|
|
|
1013
1011
|
}
|
|
1014
1012
|
return null;
|
|
1015
1013
|
};
|
|
1016
|
-
editPrivateMethods = {
|
|
1014
|
+
const editPrivateMethods = {
|
|
1017
1015
|
/**
|
|
1018
1016
|
* 处理激活编辑
|
|
1019
1017
|
*/
|
|
@@ -259,17 +259,17 @@ var export_panel_default = (
|
|
|
259
259
|
{
|
|
260
260
|
id: "VXE_EXPORT_MODAL",
|
|
261
261
|
modelValue: storeData.visible,
|
|
262
|
-
title: modelOptions.title
|
|
263
|
-
className: "vxe-table-export-popup-wrapper",
|
|
262
|
+
title: (0, import_utils.getDefaultConfig)(modelOptions.title, getI18n(isPrint ? "vxe.export.printTitle" : "vxe.export.expTitle")),
|
|
263
|
+
className: "vxe-table-export-popup-wrapper" + (modelOptions.className ? ` ${modelOptions.className}` : ""),
|
|
264
264
|
width: modelOptions.width || 660,
|
|
265
265
|
height: modelOptions.height,
|
|
266
266
|
minWidth: modelOptions.minWidth || 500,
|
|
267
267
|
minHeight: modelOptions.minHeight || 400,
|
|
268
268
|
mask: (0, import_utils.getDefaultConfig)(modelOptions.mask, true),
|
|
269
269
|
lockView: (0, import_utils.getDefaultConfig)(modelOptions.lockView, true),
|
|
270
|
-
showFooter: true,
|
|
271
|
-
escClosable: true,
|
|
272
|
-
maskClosable: true,
|
|
270
|
+
showFooter: (0, import_utils.getDefaultConfig)(modelOptions.showFooter, true),
|
|
271
|
+
escClosable: (0, import_utils.getDefaultConfig)(modelOptions.escClosable, true),
|
|
272
|
+
maskClosable: (0, import_utils.getDefaultConfig)(modelOptions.maskClosable, true),
|
|
273
273
|
position: modelOptions.position,
|
|
274
274
|
fullscreen: modelOptions.fullscreen,
|
|
275
275
|
remember: modelOptions.remember,
|
|
@@ -1095,9 +1095,11 @@ hooks.add("tableExportModule", {
|
|
|
1095
1095
|
}
|
|
1096
1096
|
});
|
|
1097
1097
|
});
|
|
1098
|
-
} else
|
|
1099
|
-
if (
|
|
1100
|
-
import_core.VxeUI.modal
|
|
1098
|
+
} else {
|
|
1099
|
+
if (opts.message !== false) {
|
|
1100
|
+
if (import_core.VxeUI.modal) {
|
|
1101
|
+
import_core.VxeUI.modal.message({ content: getI18n("vxe.error.impFields"), status: "error" });
|
|
1102
|
+
}
|
|
1101
1103
|
}
|
|
1102
1104
|
if (_importReject) {
|
|
1103
1105
|
_importReject({ status: false, msg: "field mismatching" });
|
|
@@ -1314,13 +1316,9 @@ hooks.add("tableExportModule", {
|
|
|
1314
1316
|
exportStore.isPrint = !!isPrint;
|
|
1315
1317
|
exportStore.hasColgroup = isGroup;
|
|
1316
1318
|
exportStore.visible = true;
|
|
1317
|
-
Object.assign(
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
mode: selectRecords.length ? "selected" : "current"
|
|
1321
|
-
},
|
|
1322
|
-
defOpts
|
|
1323
|
-
);
|
|
1319
|
+
Object.assign(exportParams, {
|
|
1320
|
+
mode: selectRecords.length ? "selected" : "current"
|
|
1321
|
+
}, defOpts);
|
|
1324
1322
|
const { filename, sheetName, mode, type } = exportParams;
|
|
1325
1323
|
if (filename) {
|
|
1326
1324
|
if (import_xe_utils.default.isFunction(filename)) {
|
|
@@ -139,17 +139,17 @@ var import_panel_default = (
|
|
|
139
139
|
{
|
|
140
140
|
id: "VXE_IMPORT_MODAL",
|
|
141
141
|
modelValue: storeData.visible,
|
|
142
|
-
title: modelOptions.title
|
|
143
|
-
className: "vxe-table-
|
|
142
|
+
title: (0, import_utils.getDefaultConfig)(modelOptions.title, getI18n("vxe.import.impTitle")),
|
|
143
|
+
className: "vxe-table-import-popup-wrapper" + (modelOptions.className ? ` ${modelOptions.className}` : ""),
|
|
144
144
|
width: modelOptions.width || 540,
|
|
145
145
|
height: modelOptions.height,
|
|
146
146
|
minWidth: modelOptions.minWidth || 360,
|
|
147
147
|
minHeight: modelOptions.minHeight || 240,
|
|
148
148
|
mask: (0, import_utils.getDefaultConfig)(modelOptions.mask, true),
|
|
149
149
|
lockView: (0, import_utils.getDefaultConfig)(modelOptions.lockView, true),
|
|
150
|
-
showFooter: true,
|
|
151
|
-
escClosable: true,
|
|
152
|
-
maskClosable: true,
|
|
150
|
+
showFooter: (0, import_utils.getDefaultConfig)(modelOptions.showFooter, true),
|
|
151
|
+
escClosable: (0, import_utils.getDefaultConfig)(modelOptions.escClosable, true),
|
|
152
|
+
maskClosable: (0, import_utils.getDefaultConfig)(modelOptions.maskClosable, true),
|
|
153
153
|
position: modelOptions.position,
|
|
154
154
|
fullscreen: modelOptions.fullscreen,
|
|
155
155
|
remember: modelOptions.remember,
|
package/lib/table/src/table.js
CHANGED
package/lib/ui/index.d.ts
CHANGED
package/lib/ui/index.js
CHANGED
|
@@ -19,6 +19,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
19
|
var ui_exports = {};
|
|
20
20
|
__export(ui_exports, {
|
|
21
21
|
VXETable: () => VXETable,
|
|
22
|
+
VxeUI: () => import_core.VxeUI,
|
|
22
23
|
_t: () => _t,
|
|
23
24
|
config: () => config,
|
|
24
25
|
default: () => ui_default,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vxe-table",
|
|
3
|
-
"version": "4.23.
|
|
3
|
+
"version": "4.23.19",
|
|
4
4
|
"description": "A PC-end table component based on Vxe UI, supporting copy-paste, data pivot table, and high-performance virtual list table solution.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"update": "npm install --legacy-peer-deps",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"typescript": "~5.9.3",
|
|
76
76
|
"vue": "3.4.27",
|
|
77
77
|
"vue-router": "~4.5.1",
|
|
78
|
-
"vxe-pc-ui": "4.20.
|
|
78
|
+
"vxe-pc-ui": "4.20.42"
|
|
79
79
|
},
|
|
80
80
|
"allowScripts": {
|
|
81
81
|
"esbuild": true,
|
|
@@ -51,9 +51,6 @@ hooks.add('tableEditModule', {
|
|
|
51
51
|
|
|
52
52
|
const browseObj = XEUtils.browse()
|
|
53
53
|
|
|
54
|
-
let editMethods = {} as TableEditMethods
|
|
55
|
-
let editPrivateMethods = {} as TableEditPrivateMethods
|
|
56
|
-
|
|
57
54
|
const getEditColumnModel = (row: any, column: VxeTableDefines.ColumnInfo) => {
|
|
58
55
|
const { model, editRender } = column
|
|
59
56
|
if (editRender) {
|
|
@@ -625,7 +622,7 @@ hooks.add('tableEditModule', {
|
|
|
625
622
|
return nextTick()
|
|
626
623
|
}
|
|
627
624
|
|
|
628
|
-
editMethods = {
|
|
625
|
+
const editMethods: TableEditMethods = {
|
|
629
626
|
/**
|
|
630
627
|
* 往表格中插入临时数据
|
|
631
628
|
*
|
|
@@ -1100,7 +1097,7 @@ hooks.add('tableEditModule', {
|
|
|
1100
1097
|
return null
|
|
1101
1098
|
}
|
|
1102
1099
|
|
|
1103
|
-
editPrivateMethods = {
|
|
1100
|
+
const editPrivateMethods: TableEditPrivateMethods = {
|
|
1104
1101
|
/**
|
|
1105
1102
|
* 处理激活编辑
|
|
1106
1103
|
*/
|
|
@@ -263,17 +263,17 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
263
263
|
{
|
|
264
264
|
id: 'VXE_EXPORT_MODAL',
|
|
265
265
|
modelValue: storeData.visible,
|
|
266
|
-
title: modelOptions.title
|
|
267
|
-
className: 'vxe-table-export-popup-wrapper',
|
|
266
|
+
title: getDefaultConfig(modelOptions.title, getI18n(isPrint ? 'vxe.export.printTitle' : 'vxe.export.expTitle')),
|
|
267
|
+
className: 'vxe-table-export-popup-wrapper' + (modelOptions.className ? ` ${modelOptions.className}` : ''),
|
|
268
268
|
width: modelOptions.width || 660,
|
|
269
269
|
height: modelOptions.height,
|
|
270
270
|
minWidth: modelOptions.minWidth || 500,
|
|
271
271
|
minHeight: modelOptions.minHeight || 400,
|
|
272
272
|
mask: getDefaultConfig(modelOptions.mask, true),
|
|
273
273
|
lockView: getDefaultConfig(modelOptions.lockView, true),
|
|
274
|
-
showFooter: true,
|
|
275
|
-
escClosable: true,
|
|
276
|
-
maskClosable: true,
|
|
274
|
+
showFooter: getDefaultConfig(modelOptions.showFooter, true),
|
|
275
|
+
escClosable: getDefaultConfig(modelOptions.escClosable, true),
|
|
276
|
+
maskClosable: getDefaultConfig(modelOptions.maskClosable, true),
|
|
277
277
|
position: modelOptions.position,
|
|
278
278
|
fullscreen: modelOptions.fullscreen,
|
|
279
279
|
remember: modelOptions.remember,
|
|
@@ -1194,9 +1194,11 @@ hooks.add('tableExportModule', {
|
|
|
1194
1194
|
}
|
|
1195
1195
|
})
|
|
1196
1196
|
})
|
|
1197
|
-
} else
|
|
1198
|
-
if (
|
|
1199
|
-
VxeUI.modal
|
|
1197
|
+
} else {
|
|
1198
|
+
if (opts.message !== false) {
|
|
1199
|
+
if (VxeUI.modal) {
|
|
1200
|
+
VxeUI.modal.message({ content: getI18n('vxe.error.impFields'), status: 'error' })
|
|
1201
|
+
}
|
|
1200
1202
|
}
|
|
1201
1203
|
if (_importReject) {
|
|
1202
1204
|
_importReject({ status: false, msg: 'field mismatching' })
|
|
@@ -1437,13 +1439,9 @@ hooks.add('tableExportModule', {
|
|
|
1437
1439
|
exportStore.hasColgroup = isGroup
|
|
1438
1440
|
exportStore.visible = true
|
|
1439
1441
|
// 默认参数
|
|
1440
|
-
Object.assign(
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
mode: selectRecords.length ? 'selected' : 'current'
|
|
1444
|
-
},
|
|
1445
|
-
defOpts
|
|
1446
|
-
)
|
|
1442
|
+
Object.assign(exportParams, {
|
|
1443
|
+
mode: selectRecords.length ? 'selected' : 'current'
|
|
1444
|
+
}, defOpts)
|
|
1447
1445
|
const { filename, sheetName, mode, type } = exportParams
|
|
1448
1446
|
if (filename) {
|
|
1449
1447
|
if (XEUtils.isFunction(filename)) {
|
|
@@ -128,17 +128,17 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
128
128
|
{
|
|
129
129
|
id: 'VXE_IMPORT_MODAL',
|
|
130
130
|
modelValue: storeData.visible,
|
|
131
|
-
title: modelOptions.title
|
|
132
|
-
className: 'vxe-table-
|
|
131
|
+
title: getDefaultConfig(modelOptions.title, getI18n('vxe.import.impTitle')),
|
|
132
|
+
className: 'vxe-table-import-popup-wrapper' + (modelOptions.className ? ` ${modelOptions.className}` : ''),
|
|
133
133
|
width: modelOptions.width || 540,
|
|
134
134
|
height: modelOptions.height,
|
|
135
135
|
minWidth: modelOptions.minWidth || 360,
|
|
136
136
|
minHeight: modelOptions.minHeight || 240,
|
|
137
137
|
mask: getDefaultConfig(modelOptions.mask, true),
|
|
138
138
|
lockView: getDefaultConfig(modelOptions.lockView, true),
|
|
139
|
-
showFooter: true,
|
|
140
|
-
escClosable: true,
|
|
141
|
-
maskClosable: true,
|
|
139
|
+
showFooter: getDefaultConfig(modelOptions.showFooter, true),
|
|
140
|
+
escClosable: getDefaultConfig(modelOptions.escClosable, true),
|
|
141
|
+
maskClosable: getDefaultConfig(modelOptions.maskClosable, true),
|
|
142
142
|
position: modelOptions.position,
|
|
143
143
|
fullscreen: modelOptions.fullscreen,
|
|
144
144
|
remember: modelOptions.remember,
|
|
@@ -10285,7 +10285,6 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
10285
10285
|
rowExpandedMaps[rowid] = row
|
|
10286
10286
|
}
|
|
10287
10287
|
|
|
10288
|
-
rowNum++
|
|
10289
10288
|
idMaps[rowid] = true
|
|
10290
10289
|
fullDataRowIdMaps[rowid] = rowRest
|
|
10291
10290
|
fullAllDataRowIdMaps[rowid] = rowRest
|
package/packages/ui/index.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|