vxe-table 4.23.18 → 4.23.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/dist/all.esm.js +301 -274
- package/dist/all.esm.min.js +3 -3
- package/dist/style.css +4 -1
- package/dist/style.mini.css +1 -1
- package/es/components.d.ts +1 -3
- package/es/components.js +1 -2
- package/es/esm.index.d.ts +7 -0
- package/es/esm.index.js +8 -0
- package/es/style.css +4 -1
- package/es/style.mini.css +1 -1
- 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/table/style.css +4 -1
- package/es/table/style.mini.css +1 -1
- package/es/ui/abandon.d.ts +82 -0
- package/es/ui/abandon.js +90 -0
- package/es/ui/index.d.ts +1 -82
- package/es/ui/index.js +2 -88
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +4 -1
- package/es/vxe-table/style.mini.css +1 -1
- package/lib/components.d.ts +1 -3
- package/lib/components.js +1 -2
- package/lib/esm.index.d.ts +7 -0
- package/lib/esm.index.js +39 -0
- package/lib/index.umd.js +266 -270
- package/lib/index.umd.min.js +3 -3
- package/lib/style.css +4 -1
- package/lib/style.mini.css +1 -1
- 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/table/style/style.css +4 -1
- package/lib/table/style/style.mini.css +1 -1
- package/lib/ui/abandon.d.ts +82 -0
- package/lib/ui/abandon.js +110 -0
- package/lib/ui/index.d.ts +1 -82
- package/lib/ui/index.js +3 -88
- package/lib/ui/src/log.js +1 -1
- package/lib/vxe-table/style/style.css +4 -1
- package/lib/vxe-table/style/style.mini.css +1 -1
- package/package.json +2 -2
- package/packages/colgroup/index.ts +22 -22
- package/packages/column/index.ts +22 -22
- package/packages/components.ts +42 -45
- package/packages/esm.index.ts +10 -0
- package/packages/grid/index.ts +18 -18
- package/packages/grid/src/emits.ts +5 -5
- package/packages/grid/src/grid.ts +2220 -2220
- package/packages/grid/src/props.ts +22 -22
- package/packages/index.ts +13 -13
- package/packages/locale/lang/ar-EG.ts +914 -914
- package/packages/locale/lang/de-DE.ts +914 -914
- package/packages/locale/lang/en-US.ts +914 -914
- package/packages/locale/lang/es-ES.ts +914 -914
- package/packages/locale/lang/fr-FR.ts +914 -914
- package/packages/locale/lang/hu-HU.ts +914 -914
- package/packages/locale/lang/hy-AM.ts +914 -914
- package/packages/locale/lang/id-ID.ts +914 -914
- package/packages/locale/lang/it-IT.ts +914 -914
- package/packages/locale/lang/ja-JP.ts +914 -914
- package/packages/locale/lang/ko-KR.ts +914 -914
- package/packages/locale/lang/ms-MY.ts +914 -914
- package/packages/locale/lang/nb-NO.ts +914 -914
- package/packages/locale/lang/pt-BR.ts +914 -914
- package/packages/locale/lang/ru-RU.ts +914 -914
- package/packages/locale/lang/th-TH.ts +914 -914
- package/packages/locale/lang/ug-CN.ts +914 -914
- package/packages/locale/lang/uk-UA.ts +914 -914
- package/packages/locale/lang/uz-UZ.ts +914 -914
- package/packages/locale/lang/vi-VN.ts +914 -914
- package/packages/locale/lang/zh-CHT.ts +914 -914
- package/packages/locale/lang/zh-CN.ts +914 -914
- package/packages/locale/lang/zh-HK.ts +914 -914
- package/packages/locale/lang/zh-MO.ts +914 -914
- package/packages/locale/lang/zh-TC.ts +914 -914
- package/packages/locale/lang/zh-TW.ts +914 -914
- package/packages/table/index.ts +26 -26
- package/packages/table/module/custom/hook.ts +510 -510
- package/packages/table/module/custom/panel.ts +2002 -2002
- package/packages/table/module/edit/hook.ts +1232 -1235
- package/packages/table/module/export/export-panel.ts +697 -697
- package/packages/table/module/export/hook.ts +2158 -2160
- package/packages/table/module/export/import-panel.ts +319 -319
- package/packages/table/module/export/util.ts +25 -25
- package/packages/table/module/filter/hook.ts +505 -505
- package/packages/table/module/filter/panel.ts +368 -368
- package/packages/table/module/keyboard/hook.ts +498 -498
- package/packages/table/module/menu/hook.ts +330 -330
- package/packages/table/module/menu/panel.ts +272 -272
- package/packages/table/module/validator/hook.ts +653 -653
- package/packages/table/render/index.ts +1819 -1819
- package/packages/table/src/body.ts +1078 -1078
- package/packages/table/src/cell.ts +1524 -1524
- package/packages/table/src/column.ts +192 -192
- package/packages/table/src/columnInfo.ts +232 -232
- package/packages/table/src/emits.ts +134 -134
- package/packages/table/src/footer.ts +425 -425
- package/packages/table/src/group.ts +67 -67
- package/packages/table/src/header.ts +661 -661
- package/packages/table/src/props.ts +336 -336
- package/packages/table/src/store.ts +14 -14
- package/packages/table/src/table.ts +0 -1
- package/packages/table/src/use/cell-view.ts +41 -41
- package/packages/table/src/use/index.ts +1 -1
- package/packages/table/src/util.ts +1206 -1206
- package/packages/toolbar/index.ts +18 -18
- package/packages/toolbar/src/toolbar.ts +768 -768
- package/packages/ui/abandon.ts +136 -0
- package/packages/ui/index.ts +404 -520
- package/packages/ui/src/anime.ts +51 -51
- package/packages/ui/src/comp.ts +3 -3
- package/packages/ui/src/dom.ts +466 -466
- package/packages/ui/src/log.ts +19 -19
- package/packages/ui/src/utils.ts +66 -66
- package/packages/ui/src/vn.ts +55 -55
- package/packages/v-x-e-table/index.d.ts +3 -3
- package/packages/v-x-e-table/index.ts +3 -3
- package/styles/components/table.scss +2 -1
- package/types/all.d.ts +76 -76
- package/types/index.d.ts +4 -4
- /package/dist/{iconfont.1794366305845.ttf → iconfont.1794633824975.ttf} +0 -0
- /package/dist/{iconfont.1794366305845.woff → iconfont.1794633824975.woff} +0 -0
- /package/dist/{iconfont.1794366305845.woff2 → iconfont.1794633824975.woff2} +0 -0
- /package/es/{iconfont.1794366305845.ttf → iconfont.1794633824975.ttf} +0 -0
- /package/es/{iconfont.1794366305845.woff → iconfont.1794633824975.woff} +0 -0
- /package/es/{iconfont.1794366305845.woff2 → iconfont.1794633824975.woff2} +0 -0
- /package/lib/{iconfont.1794366305845.ttf → iconfont.1794633824975.ttf} +0 -0
- /package/lib/{iconfont.1794366305845.woff → iconfont.1794633824975.woff} +0 -0
- /package/lib/{iconfont.1794366305845.woff2 → iconfont.1794633824975.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
|
@@ -4035,7 +4035,10 @@
|
|
|
4035
4035
|
.vxe-table--render-default .vxe-cell--wrapper {
|
|
4036
4036
|
margin: auto 0;
|
|
4037
4037
|
}
|
|
4038
|
-
.vxe-table--render-default .vxe-body--row .vxe-table--column .vxe-cell .vxe-cell--wrapper > div > .vxe-reusekeep-control, .vxe-table--render-default .vxe-body--row .vxe-table--column .vxe-cell .vxe-cell--wrapper > span > .vxe-reusekeep-control, .vxe-table--render-default .vxe-body--row .vxe-table--column .vxe-cell .vxe-cell--wrapper > .vxe-reusekeep-control
|
|
4038
|
+
.vxe-table--render-default .vxe-body--row .vxe-table--column .vxe-cell .vxe-cell--wrapper > div > .vxe-reusekeep-control, .vxe-table--render-default .vxe-body--row .vxe-table--column .vxe-cell .vxe-cell--wrapper > span > .vxe-reusekeep-control, .vxe-table--render-default .vxe-body--row .vxe-table--column .vxe-cell .vxe-cell--wrapper > .vxe-reusekeep-control,
|
|
4039
|
+
.vxe-table--render-default .vxe-body--row .vxe-table--column .vxe-cell .vxe-tree-cell > div > .vxe-reusekeep-control,
|
|
4040
|
+
.vxe-table--render-default .vxe-body--row .vxe-table--column .vxe-cell .vxe-tree-cell > span > .vxe-reusekeep-control,
|
|
4041
|
+
.vxe-table--render-default .vxe-body--row .vxe-table--column .vxe-cell .vxe-tree-cell > .vxe-reusekeep-control {
|
|
4039
4042
|
position: absolute;
|
|
4040
4043
|
width: 0;
|
|
4041
4044
|
height: 0;
|