vxe-table 4.23.6 → 4.23.8
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 +176 -267
- package/es/colgroup/index.js +1 -1
- package/es/column/index.js +1 -1
- package/es/components.d.ts +3 -1
- package/es/components.js +3 -2
- package/es/grid/index.js +1 -1
- package/es/grid/src/grid.js +1 -1
- package/es/grid/src/props.js +1 -1
- package/es/index.esm.js +5 -0
- package/es/index.js +5 -0
- package/es/style.css +4501 -0
- package/es/style.mini.css +1 -0
- package/es/table/index.js +1 -1
- package/es/table/module/custom/hook.js +1 -1
- package/es/table/module/custom/panel.js +1 -1
- package/es/table/module/edit/hook.js +1 -1
- package/es/table/module/export/export-panel.js +1 -1
- package/es/table/module/export/hook.js +1 -1
- package/es/table/module/export/import-panel.js +1 -1
- package/es/table/module/filter/hook.js +1 -1
- package/es/table/module/filter/panel.js +1 -1
- package/es/table/module/keyboard/hook.js +1 -1
- package/es/table/module/menu/hook.js +1 -1
- package/es/table/module/menu/panel.js +1 -1
- package/es/table/module/validator/hook.js +1 -1
- package/es/table/render/index.js +1 -1
- package/es/table/src/body.js +1 -1
- package/es/table/src/cell.js +1 -1
- package/es/table/src/columnInfo.js +1 -1
- package/es/table/src/footer.js +1 -1
- package/es/table/src/header.js +1 -1
- package/es/table/src/props.js +1 -1
- package/es/table/src/table.js +1 -1
- package/es/toolbar/index.js +1 -1
- package/es/toolbar/src/toolbar.js +1 -1
- package/es/ui/index.d.ts +0 -1
- package/es/ui/index.js +1 -2
- package/es/ui/src/log.js +1 -1
- package/es/v-x-e-table/index.d.ts +0 -1
- package/es/v-x-e-table/index.js +0 -1
- package/lib/colgroup/index.js +5 -5
- package/lib/column/index.js +5 -5
- package/lib/components.js +7 -6
- package/lib/grid/index.js +4 -4
- package/lib/grid/src/grid.js +22 -22
- package/lib/grid/src/props.js +2 -2
- package/lib/index.common.js +5 -0
- package/lib/index.js +5 -0
- package/lib/index.umd.js +176 -228
- package/lib/index.umd.min.js +3 -3
- package/lib/table/index.js +5 -5
- package/lib/table/module/custom/hook.js +2 -2
- package/lib/table/module/custom/panel.js +13 -13
- package/lib/table/module/edit/hook.js +2 -2
- package/lib/table/module/export/export-panel.js +7 -7
- package/lib/table/module/export/hook.js +24 -24
- package/lib/table/module/export/import-panel.js +5 -5
- package/lib/table/module/filter/hook.js +2 -2
- package/lib/table/module/filter/panel.js +3 -3
- package/lib/table/module/keyboard/hook.js +2 -2
- package/lib/table/module/menu/hook.js +2 -2
- package/lib/table/module/menu/panel.js +2 -2
- package/lib/table/module/validator/hook.js +2 -2
- package/lib/table/render/index.js +2 -2
- package/lib/table/src/body.js +2 -2
- package/lib/table/src/cell.js +2 -2
- package/lib/table/src/columnInfo.js +2 -2
- package/lib/table/src/footer.js +2 -2
- package/lib/table/src/header.js +2 -2
- package/lib/table/src/props.js +2 -2
- package/lib/table/src/table.js +17 -17
- package/lib/toolbar/index.js +4 -4
- package/lib/toolbar/src/toolbar.js +3 -3
- package/lib/ui/index.js +1 -3
- package/lib/ui/src/log.js +1 -1
- package/lib/v-x-e-table/index.js +0 -2
- package/package.json +8 -3
- package/packages/colgroup/index.ts +1 -1
- package/packages/column/index.ts +1 -1
- package/packages/components.ts +3 -2
- package/packages/grid/index.ts +1 -1
- package/packages/grid/src/grid.ts +1 -1
- package/packages/grid/src/props.ts +1 -1
- package/packages/index.ts +7 -0
- package/packages/table/index.ts +1 -1
- package/packages/table/module/custom/hook.ts +1 -1
- package/packages/table/module/custom/panel.ts +1 -1
- package/packages/table/module/edit/hook.ts +1 -1
- package/packages/table/module/export/export-panel.ts +1 -1
- package/packages/table/module/export/hook.ts +1 -1
- package/packages/table/module/export/import-panel.ts +1 -1
- package/packages/table/module/filter/hook.ts +1 -1
- package/packages/table/module/filter/panel.ts +1 -1
- package/packages/table/module/keyboard/hook.ts +1 -1
- package/packages/table/module/menu/hook.ts +1 -1
- package/packages/table/module/menu/panel.ts +1 -1
- package/packages/table/module/validator/hook.ts +1 -1
- package/packages/table/render/index.ts +1 -1
- package/packages/table/src/body.ts +1 -1
- package/packages/table/src/cell.ts +1 -1
- package/packages/table/src/columnInfo.ts +1 -1
- package/packages/table/src/footer.ts +1 -1
- package/packages/table/src/header.ts +1 -1
- package/packages/table/src/props.ts +1 -1
- package/packages/table/src/table.ts +1 -1
- package/packages/toolbar/index.ts +1 -1
- package/packages/toolbar/src/toolbar.ts +1 -1
- package/packages/ui/index.ts +0 -1
- package/packages/v-x-e-table/index.d.ts +0 -1
- package/packages/v-x-e-table/index.ts +0 -1
- /package/dist/{iconfont.1792977622800.ttf → iconfont.1793007753347.ttf} +0 -0
- /package/dist/{iconfont.1792977622800.woff → iconfont.1793007753347.woff} +0 -0
- /package/dist/{iconfont.1792977622800.woff2 → iconfont.1793007753347.woff2} +0 -0
- /package/es/{iconfont.1792977622800.ttf → iconfont.1793007753347.ttf} +0 -0
- /package/es/{iconfont.1792977622800.woff → iconfont.1793007753347.woff} +0 -0
- /package/es/{iconfont.1792977622800.woff2 → iconfont.1793007753347.woff2} +0 -0
- /package/lib/{iconfont.1792977622800.ttf → iconfont.1793007753347.ttf} +0 -0
- /package/lib/{iconfont.1792977622800.woff → iconfont.1793007753347.woff} +0 -0
- /package/lib/{iconfont.1792977622800.woff2 → iconfont.1793007753347.woff2} +0 -0
package/lib/table/src/table.js
CHANGED
|
@@ -34,9 +34,9 @@ module.exports = __toCommonJS(table_exports);
|
|
|
34
34
|
var import_vue = require("vue");
|
|
35
35
|
var import_comp = require("../../ui/src/comp");
|
|
36
36
|
var import_xe_utils = __toESM(require("xe-utils"));
|
|
37
|
+
var import_core = require("@vxe-ui/core");
|
|
37
38
|
var import_dom = require("../../ui/src/dom");
|
|
38
39
|
var import_utils = require("../../ui/src/utils");
|
|
39
|
-
var import_ui = require("../../ui");
|
|
40
40
|
var import_util = require("./util");
|
|
41
41
|
var import_vn = require("../../ui/src/vn");
|
|
42
42
|
var import_anime = require("../../ui/src/anime");
|
|
@@ -62,7 +62,7 @@ var import_hook6 = require("../module/validator/hook");
|
|
|
62
62
|
var import_hook7 = require("../module/custom/hook");
|
|
63
63
|
var import_render = require("../render");
|
|
64
64
|
const { warnLog, errLog } = (0, import_log.createComponentLog)("table");
|
|
65
|
-
const { getConfig, getIcon, getI18n, renderer, formats, createEvent, globalResize, interceptor, hooks, domUtils, globalEvents, GLOBAL_EVENT_KEYS, useFns, renderEmptyElement } =
|
|
65
|
+
const { getConfig, getIcon, getI18n, renderer, formats, createEvent, globalResize, interceptor, hooks, domUtils, globalEvents, GLOBAL_EVENT_KEYS, useFns, renderEmptyElement } = import_core.VxeUI;
|
|
66
66
|
const supportMaxRow = 5e6;
|
|
67
67
|
const customStorageKey = "VXE_CUSTOM_STORE";
|
|
68
68
|
const maxYHeight = 5e6;
|
|
@@ -78,8 +78,8 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
78
78
|
const xID = import_xe_utils.default.uniqueId();
|
|
79
79
|
const browseObj = import_xe_utils.default.browse();
|
|
80
80
|
const scrollDefaultConf = Object.assign({}, getConfig().scrollbar);
|
|
81
|
-
const VxeUILoadingComponent =
|
|
82
|
-
const VxeUITooltipComponent =
|
|
81
|
+
const VxeUILoadingComponent = import_core.VxeUI.getComponent("VxeLoading");
|
|
82
|
+
const VxeUITooltipComponent = import_core.VxeUI.getComponent("VxeTooltip");
|
|
83
83
|
const $xeModal = (0, import_vue.inject)("$xeModal", null);
|
|
84
84
|
const $xeTabs = (0, import_vue.inject)("$xeTabs", null);
|
|
85
85
|
const $xeParentTable = (0, import_vue.inject)("$xeTable", null);
|
|
@@ -5771,8 +5771,8 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
5771
5771
|
const targetColumn = (0, import_util.getRootColumn)($xeTable, column);
|
|
5772
5772
|
if (targetColumn && targetColumn.fixed !== fixed) {
|
|
5773
5773
|
if (!targetColumn.fixed && isMaxFixedColumn) {
|
|
5774
|
-
if (
|
|
5775
|
-
|
|
5774
|
+
if (import_core.VxeUI.modal) {
|
|
5775
|
+
import_core.VxeUI.modal.message({
|
|
5776
5776
|
status: "error",
|
|
5777
5777
|
content: getI18n("vxe.table.maxFixedCol", [columnOpts.maxFixedSize])
|
|
5778
5778
|
});
|
|
@@ -6957,8 +6957,8 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
6957
6957
|
}
|
|
6958
6958
|
const confList = fieldOrColumns ? import_xe_utils.default.isArray(fieldOrColumns) ? fieldOrColumns : [fieldOrColumns] : [];
|
|
6959
6959
|
if (maxGroupSize && confList.length > maxGroupSize) {
|
|
6960
|
-
if (
|
|
6961
|
-
|
|
6960
|
+
if (import_core.VxeUI.modal) {
|
|
6961
|
+
import_core.VxeUI.modal.message({
|
|
6962
6962
|
status: "error",
|
|
6963
6963
|
content: getI18n("vxe.table.maxGroupCol", [maxGroupSize])
|
|
6964
6964
|
});
|
|
@@ -10915,8 +10915,8 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
10915
10915
|
if (oldAllMaps[newRowid]) {
|
|
10916
10916
|
isSelfToChildStatus = true;
|
|
10917
10917
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
10918
|
-
if (
|
|
10919
|
-
|
|
10918
|
+
if (import_core.VxeUI.modal) {
|
|
10919
|
+
import_core.VxeUI.modal.message({
|
|
10920
10920
|
status: "error",
|
|
10921
10921
|
content: getI18n("vxe.error.treeDragChild")
|
|
10922
10922
|
});
|
|
@@ -10939,8 +10939,8 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
10939
10939
|
if (oldAllMaps[newRowid]) {
|
|
10940
10940
|
isSelfToChildStatus = true;
|
|
10941
10941
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
10942
|
-
if (
|
|
10943
|
-
|
|
10942
|
+
if (import_core.VxeUI.modal) {
|
|
10943
|
+
import_core.VxeUI.modal.message({
|
|
10944
10944
|
status: "error",
|
|
10945
10945
|
content: getI18n("vxe.error.treeDragChild")
|
|
10946
10946
|
});
|
|
@@ -11580,8 +11580,8 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
11580
11580
|
if (oldAllMaps[newColumn.id]) {
|
|
11581
11581
|
isSelfToChildStatus = true;
|
|
11582
11582
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
11583
|
-
if (
|
|
11584
|
-
|
|
11583
|
+
if (import_core.VxeUI.modal) {
|
|
11584
|
+
import_core.VxeUI.modal.message({
|
|
11585
11585
|
status: "error",
|
|
11586
11586
|
content: getI18n("vxe.error.treeDragChild")
|
|
11587
11587
|
});
|
|
@@ -11604,8 +11604,8 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
11604
11604
|
if (oldAllMaps[newColumn.id]) {
|
|
11605
11605
|
isSelfToChildStatus = true;
|
|
11606
11606
|
if (!(isCrossDrag && isSelfToChildDrag)) {
|
|
11607
|
-
if (
|
|
11608
|
-
|
|
11607
|
+
if (import_core.VxeUI.modal) {
|
|
11608
|
+
import_core.VxeUI.modal.message({
|
|
11609
11609
|
status: "error",
|
|
11610
11610
|
content: getI18n("vxe.error.treeDragChild")
|
|
11611
11611
|
});
|
|
@@ -13663,7 +13663,7 @@ var table_default = (0, import_comp.defineVxeComponent)({
|
|
|
13663
13663
|
(0, import_vue.watch)(() => props.maxHeight, () => {
|
|
13664
13664
|
reLayoutFlag.value++;
|
|
13665
13665
|
});
|
|
13666
|
-
(0, import_vue.watch)(() =>
|
|
13666
|
+
(0, import_vue.watch)(() => import_core.VxeUI.getLanguage(), () => {
|
|
13667
13667
|
reLayoutFlag.value++;
|
|
13668
13668
|
});
|
|
13669
13669
|
(0, import_vue.watch)(computeIsVScrollbar, () => {
|
package/lib/toolbar/index.js
CHANGED
|
@@ -33,16 +33,16 @@ __export(toolbar_exports, {
|
|
|
33
33
|
default: () => toolbar_default
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(toolbar_exports);
|
|
36
|
-
var
|
|
36
|
+
var import_core = require("@vxe-ui/core");
|
|
37
37
|
var import_toolbar = __toESM(require("./src/toolbar"));
|
|
38
38
|
const VxeToolbar = Object.assign({}, import_toolbar.default, {
|
|
39
39
|
install(app) {
|
|
40
40
|
app.component(import_toolbar.default.name, import_toolbar.default);
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
|
-
if (
|
|
44
|
-
|
|
43
|
+
if (import_core.VxeUI.dynamicApp) {
|
|
44
|
+
import_core.VxeUI.dynamicApp.component(import_toolbar.default.name, import_toolbar.default);
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
import_core.VxeUI.component(import_toolbar.default);
|
|
47
47
|
const Toolbar = VxeToolbar;
|
|
48
48
|
var toolbar_default = VxeToolbar;
|
|
@@ -34,11 +34,11 @@ module.exports = __toCommonJS(toolbar_exports);
|
|
|
34
34
|
var import_vue = require("vue");
|
|
35
35
|
var import_comp = require("../../ui/src/comp");
|
|
36
36
|
var import_xe_utils = __toESM(require("xe-utils"));
|
|
37
|
-
var
|
|
37
|
+
var import_core = require("@vxe-ui/core");
|
|
38
38
|
var import_vn = require("../../ui/src/vn");
|
|
39
39
|
var import_log = require("../../ui/src/log");
|
|
40
40
|
const { warnLog, errLog } = (0, import_log.createComponentLog)("toolbar");
|
|
41
|
-
const { getConfig, getIcon, getI18n, renderer, commands, createEvent, useFns } =
|
|
41
|
+
const { getConfig, getIcon, getI18n, renderer, commands, createEvent, useFns } = import_core.VxeUI;
|
|
42
42
|
function createReactData() {
|
|
43
43
|
return {
|
|
44
44
|
isRefresh: false,
|
|
@@ -92,7 +92,7 @@ var toolbar_default = (0, import_comp.defineVxeComponent)({
|
|
|
92
92
|
setup(props, context) {
|
|
93
93
|
const { slots, emit } = context;
|
|
94
94
|
const xID = import_xe_utils.default.uniqueId();
|
|
95
|
-
const VxeUIButtonComponent =
|
|
95
|
+
const VxeUIButtonComponent = import_core.VxeUI.getComponent("VxeButton");
|
|
96
96
|
const $xeGrid = (0, import_vue.inject)("$xeGrid", null);
|
|
97
97
|
const $xeGantt = (0, import_vue.inject)("$xeGantt", null);
|
|
98
98
|
const $xeGGWrapper = $xeGrid || $xeGantt;
|
package/lib/ui/index.js
CHANGED
|
@@ -15,7 +15,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
}
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
19
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
19
|
var ui_exports = {};
|
|
21
20
|
__export(ui_exports, {
|
|
@@ -34,8 +33,7 @@ __export(ui_exports, {
|
|
|
34
33
|
module.exports = __toCommonJS(ui_exports);
|
|
35
34
|
var import_core = require("@vxe-ui/core");
|
|
36
35
|
var import_utils = require("./src/utils");
|
|
37
|
-
|
|
38
|
-
const version = "4.23.6";
|
|
36
|
+
const version = "4.23.8";
|
|
39
37
|
import_core.VxeUI.version = version;
|
|
40
38
|
import_core.VxeUI.tableVersion = version;
|
|
41
39
|
import_core.VxeUI.setConfig({
|
package/lib/ui/src/log.js
CHANGED
|
@@ -25,7 +25,7 @@ __export(log_exports, {
|
|
|
25
25
|
module.exports = __toCommonJS(log_exports);
|
|
26
26
|
var import_core = require("@vxe-ui/core");
|
|
27
27
|
const { log } = import_core.VxeUI;
|
|
28
|
-
const tableVersion = `table v${"4.23.
|
|
28
|
+
const tableVersion = `table v${"4.23.8"}`;
|
|
29
29
|
function createComponentLog(name) {
|
|
30
30
|
const uiVersion = import_core.VxeUI.uiVersion ? `ui v${import_core.VxeUI.uiVersion}` : "";
|
|
31
31
|
const ganttVersion = import_core.VxeUI.ganttVersion ? `gantt v${import_core.VxeUI.ganttVersion}` : "";
|
package/lib/v-x-e-table/index.js
CHANGED
|
@@ -17,7 +17,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
}
|
|
18
18
|
return to;
|
|
19
19
|
};
|
|
20
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
21
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
21
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
22
|
// file that has been converted to a CommonJS file using a Babel-
|
|
@@ -33,5 +32,4 @@ __export(v_x_e_table_exports, {
|
|
|
33
32
|
});
|
|
34
33
|
module.exports = __toCommonJS(v_x_e_table_exports);
|
|
35
34
|
var import_ui = __toESM(require("../ui"));
|
|
36
|
-
__reExport(v_x_e_table_exports, require("../ui"), module.exports);
|
|
37
35
|
var v_x_e_table_default = import_ui.default;
|
package/package.json
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vxe-table",
|
|
3
|
-
"version": "4.23.
|
|
3
|
+
"version": "4.23.8",
|
|
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",
|
|
7
7
|
"serve": "vue-cli-service serve",
|
|
8
|
-
"lint": "vue-cli-service lint",
|
|
9
8
|
"build": "vue-cli-service build",
|
|
9
|
+
"lint": "vue-cli-service lint",
|
|
10
|
+
"lint:es": "eslint packages/** types/**",
|
|
11
|
+
"lint:ox": "oxfmt --check packages/** types/**",
|
|
12
|
+
"esfix": "eslint --fix packages/** types/**",
|
|
13
|
+
"oxfix": "oxfmt packages/** types/** --write",
|
|
10
14
|
"lib:pack": "vue-cli-service build --target lib --name index --dest lib_temp index.ts",
|
|
11
15
|
"lib:modules": "gulp build",
|
|
12
16
|
"lib:old": "npm run lib:pack && npm run lib:modules",
|
|
@@ -62,6 +66,7 @@
|
|
|
62
66
|
"gulp-sourcemaps": "^3.0.0",
|
|
63
67
|
"gulp-typescript": "^5.0.1",
|
|
64
68
|
"gulp-uglify": "^3.0.2",
|
|
69
|
+
"oxfmt": "~0.51.0",
|
|
65
70
|
"postcss": "^8.4.38",
|
|
66
71
|
"rollup": "^4.53.3",
|
|
67
72
|
"sass": "~1.101.7",
|
|
@@ -70,7 +75,7 @@
|
|
|
70
75
|
"typescript": "~5.9.3",
|
|
71
76
|
"vue": "3.4.27",
|
|
72
77
|
"vue-router": "~4.5.1",
|
|
73
|
-
"vxe-pc-ui": "4.20.
|
|
78
|
+
"vxe-pc-ui": "4.20.26"
|
|
74
79
|
},
|
|
75
80
|
"vetur": {
|
|
76
81
|
"tags": "helper/vetur/tags.json",
|
package/packages/column/index.ts
CHANGED
package/packages/components.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { App } from 'vue'
|
|
2
|
-
import { VxeUI } from '
|
|
2
|
+
import { VxeUI } from '@vxe-ui/core'
|
|
3
|
+
import './ui'
|
|
3
4
|
|
|
4
5
|
import { VxeColumn } from './column'
|
|
5
6
|
import { VxeColgroup } from './colgroup'
|
|
@@ -33,7 +34,7 @@ if (!VxeUI.hasLanguage('zh-CN')) {
|
|
|
33
34
|
}
|
|
34
35
|
VxeUI.setTheme('light')
|
|
35
36
|
|
|
36
|
-
export
|
|
37
|
+
export { VxeUI }
|
|
37
38
|
|
|
38
39
|
// Components
|
|
39
40
|
export * from './table'
|
package/packages/grid/index.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { h, ref, computed, provide, reactive, onBeforeUnmount, watch, nextTick, VNode, onMounted } from 'vue'
|
|
2
|
+
import { VxeUI } from '@vxe-ui/core'
|
|
2
3
|
import { defineVxeComponent } from '../../ui/src/comp'
|
|
3
4
|
import XEUtils from 'xe-utils'
|
|
4
5
|
import { getLastZIndex, nextZIndex, isEnableConf } from '../../ui/src/utils'
|
|
5
6
|
import { getOffsetHeight, getPaddingTopBottomSize, getDomNode, toCssUnit, hasClass } from '../../ui/src/dom'
|
|
6
|
-
import { VxeUI } from '../../ui'
|
|
7
7
|
import { gridProps } from './props'
|
|
8
8
|
import { gridEmits } from './emits'
|
|
9
9
|
import { getSlotVNs } from '../../ui/src/vn'
|
package/packages/index.ts
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import * as VxeUITableExport from './components'
|
|
2
2
|
|
|
3
|
+
if (typeof window !== 'undefined' && (window as any).Vue) {
|
|
4
|
+
// 兼容旧版本
|
|
5
|
+
if (!(window as any).VXETable) {
|
|
6
|
+
(window as any).VXETable = VxeUITableExport
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
3
10
|
export * from './components'
|
|
4
11
|
export default VxeUITableExport
|
package/packages/table/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, inject, ref, Ref, provide, VNode, PropType, nextTick, TransitionGroup, reactive, onUnmounted } from 'vue'
|
|
2
2
|
import { defineVxeComponent } from '../../../ui/src/comp'
|
|
3
|
-
import { VxeUI } from '
|
|
3
|
+
import { VxeUI } from '@vxe-ui/core'
|
|
4
4
|
import { formatText, hasEnableConf } from '../../../ui/src/utils'
|
|
5
5
|
import { getTpImg, addClass, removeClass, hasControlKey } from '../../../ui/src/dom'
|
|
6
6
|
import { createComponentLog } from '../../../ui/src/log'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { reactive, nextTick } from 'vue'
|
|
2
2
|
import XEUtils from 'xe-utils'
|
|
3
|
-
import { VxeUI } from '
|
|
3
|
+
import { VxeUI } from '@vxe-ui/core'
|
|
4
4
|
import { hasEnableConf, isEnableConf } from '../../../ui/src/utils'
|
|
5
5
|
import { getCellValue, setCellValue, getRowid } from '../../src/util'
|
|
6
6
|
import { removeClass, addClass } from '../../../ui/src/dom'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, ref, Ref, computed, reactive, inject, nextTick, VNode, PropType } from 'vue'
|
|
2
2
|
import { defineVxeComponent } from '../../../ui/src/comp'
|
|
3
|
-
import { VxeUI } from '
|
|
3
|
+
import { VxeUI } from '@vxe-ui/core'
|
|
4
4
|
import XEUtils from 'xe-utils'
|
|
5
5
|
import { formatText, getDefaultConfig } from '../../../ui/src/utils'
|
|
6
6
|
import { createComponentLog } from '../../../ui/src/log'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { nextTick } from 'vue'
|
|
2
2
|
import XEUtils from 'xe-utils'
|
|
3
|
-
import { VxeUI } from '
|
|
3
|
+
import { VxeUI } from '@vxe-ui/core'
|
|
4
4
|
import { isColumnInfo, getCellValue, createHandleGetRowId } from '../../src/util'
|
|
5
5
|
import { parseFile, formatText, eqEmptyValue, hasEnableConf } from '../../../ui/src/utils'
|
|
6
6
|
import { hasClass, toCssUnit } from '../../../ui/src/dom'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, ref, Ref, computed, inject, reactive, nextTick, PropType } from 'vue'
|
|
2
2
|
import { defineVxeComponent } from '../../../ui/src/comp'
|
|
3
|
-
import { VxeUI } from '
|
|
3
|
+
import { VxeUI } from '@vxe-ui/core'
|
|
4
4
|
import XEUtils from 'xe-utils'
|
|
5
5
|
import { getDefaultConfig, parseFile } from '../../../ui/src/utils'
|
|
6
6
|
import { createComponentLog } from '../../../ui/src/log'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { nextTick } from 'vue'
|
|
2
2
|
import XEUtils from 'xe-utils'
|
|
3
|
-
import { VxeUI } from '
|
|
3
|
+
import { VxeUI } from '@vxe-ui/core'
|
|
4
4
|
import { toFilters, handleFieldOrColumn, getRefElem } from '../../src/util'
|
|
5
5
|
import { toCssUnit, triggerEvent, updatePanelPlacement } from '../../../ui/src/dom'
|
|
6
6
|
import { hasEnableConf, isEnableConf } from '../../../ui/src/utils'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, ref, computed, inject, Teleport, PropType } from 'vue'
|
|
2
2
|
import { defineVxeComponent } from '../../../ui/src/comp'
|
|
3
|
-
import { VxeUI } from '
|
|
3
|
+
import { VxeUI } from '@vxe-ui/core'
|
|
4
4
|
import { formatText, isEnableConf } from '../../../ui/src/utils'
|
|
5
5
|
import { getPropClass } from '../../../ui/src/dom'
|
|
6
6
|
import { getSlotVNs } from '../../../ui/src/vn'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import XEUtils from 'xe-utils'
|
|
2
|
-
import { VxeUI } from '
|
|
2
|
+
import { VxeUI } from '@vxe-ui/core'
|
|
3
3
|
import { getRefElem } from '../../src/util'
|
|
4
4
|
import { getAbsolutePos, addClass, removeClass, hasControlKey } from '../../../ui/src/dom'
|
|
5
5
|
import { hasEnableConf } from '../../../ui/src/utils'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { nextTick } from 'vue'
|
|
2
2
|
import XEUtils from 'xe-utils'
|
|
3
|
-
import { VxeUI } from '
|
|
3
|
+
import { VxeUI } from '@vxe-ui/core'
|
|
4
4
|
import { getDomNode, getAbsolutePos, getEventTargetNode, toCssUnit } from '../../../ui/src/dom'
|
|
5
5
|
import { isEnableConf, hasChildrenList, hasEnableConf } from '../../../ui/src/utils'
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, Teleport, inject, ref, Ref } from 'vue'
|
|
2
2
|
import { defineVxeComponent } from '../../../ui/src/comp'
|
|
3
3
|
import XEUtils from 'xe-utils'
|
|
4
|
-
import { VxeUI } from '
|
|
4
|
+
import { VxeUI } from '@vxe-ui/core'
|
|
5
5
|
import { getFuncText } from '../../../ui/src/utils'
|
|
6
6
|
import { getSlotVNs } from '../../../ui/src/vn'
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { nextTick } from 'vue'
|
|
2
2
|
import XEUtils from 'xe-utils'
|
|
3
|
-
import { VxeUI } from '
|
|
3
|
+
import { VxeUI } from '@vxe-ui/core'
|
|
4
4
|
import { eqEmptyValue, getFuncText } from '../../../ui/src/utils'
|
|
5
5
|
import { scrollToView } from '../../../ui/src/dom'
|
|
6
6
|
import { handleFieldOrColumn, getRowid } from '../../src/util'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, VNode, resolveComponent, ComponentOptions } from 'vue'
|
|
2
2
|
import XEUtils from 'xe-utils'
|
|
3
|
-
import { VxeUI } from '
|
|
3
|
+
import { VxeUI } from '@vxe-ui/core'
|
|
4
4
|
import { getCellValue, setCellValue } from '../../table/src/util'
|
|
5
5
|
import { getFuncText, formatText, isEmptyValue, hasEnableConf } from '../../ui/src/utils'
|
|
6
6
|
import { getOnName, getModelEvent, getChangeEvent, hasInputType } from '../../ui/src/vn'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, ref, Ref, PropType, inject, nextTick, onMounted, onUnmounted } from 'vue'
|
|
2
2
|
import { defineVxeComponent } from '../../ui/src/comp'
|
|
3
3
|
import XEUtils from 'xe-utils'
|
|
4
|
-
import { VxeUI } from '
|
|
4
|
+
import { VxeUI } from '@vxe-ui/core'
|
|
5
5
|
import { getRowid, createHandleGetRowId, getCellRestHeight } from './util'
|
|
6
6
|
import { updateCellTitle, getPropClass } from '../../ui/src/dom'
|
|
7
7
|
import { isEnableConf, getDefaultConfig, hasEnableConf } from '../../ui/src/utils'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, VNode } from 'vue'
|
|
2
2
|
import XEUtils from 'xe-utils'
|
|
3
|
-
import { VxeUI } from '
|
|
3
|
+
import { VxeUI } from '@vxe-ui/core'
|
|
4
4
|
import { getFuncText, isEnableConf, formatText, eqEmptyValue } from '../../ui/src/utils'
|
|
5
5
|
import { updateCellTitle } from '../../ui/src/dom'
|
|
6
6
|
import { createColumn, getRowid } from './util'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, ref, Ref, PropType, inject, nextTick, onMounted, onUnmounted } from 'vue'
|
|
2
2
|
import { defineVxeComponent } from '../../ui/src/comp'
|
|
3
3
|
import XEUtils from 'xe-utils'
|
|
4
|
-
import { VxeUI } from '
|
|
4
|
+
import { VxeUI } from '@vxe-ui/core'
|
|
5
5
|
import { updateCellTitle, getPropClass } from '../../ui/src/dom'
|
|
6
6
|
import { getCalcHeight } from './util'
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, ref, Ref, PropType, inject, nextTick, watch, onMounted, onUnmounted } from 'vue'
|
|
2
2
|
import { defineVxeComponent } from '../../ui/src/comp'
|
|
3
3
|
import XEUtils from 'xe-utils'
|
|
4
|
-
import { VxeUI } from '
|
|
4
|
+
import { VxeUI } from '@vxe-ui/core'
|
|
5
5
|
import { getDefaultConfig, hasEnableConf, isEnableConf } from '../../ui/src/utils'
|
|
6
6
|
import { getCalcHeight, convertHeaderColumnToRows, convertHeaderToGridRows } from './util'
|
|
7
7
|
import { getSlotVNs } from '../../ui/src/vn'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { h, ComponentPublicInstance, reactive, ref, Ref, provide, inject, nextTick, Teleport, onActivated, onDeactivated, onBeforeUnmount, onUnmounted, watch, computed, onMounted } from 'vue'
|
|
2
2
|
import { defineVxeComponent } from '../../ui/src/comp'
|
|
3
3
|
import XEUtils from 'xe-utils'
|
|
4
|
+
import { VxeUI } from '@vxe-ui/core'
|
|
4
5
|
import { initTpImg, getTpImg, isPx, isScale, hasClass, addClass, removeClass, wheelScrollTopTo, wheelScrollLeftTo, getEventTargetNode, getPaddingTopBottomSize, setScrollTop, setScrollLeft, toCssUnit, hasControlKey, checkTargetElement, hasAxternalInputTarget } from '../../ui/src/dom'
|
|
5
6
|
import { getLastZIndex, nextZIndex, hasChildrenList, getFuncText, isEnableConf, formatText, eqEmptyValue, hasEnableConf, getDefaultConfig } from '../../ui/src/utils'
|
|
6
|
-
import { VxeUI } from '../../ui'
|
|
7
7
|
import { createReactData, createInternalData, getRowUniqueId, createRowId, clearTableAllStatus, getColumnList, toFilters, hasDeepKey, getRowkey, getRowid, rowToVisible, colToVisible, getCellValue, setCellValue, handleRowidOrRow, handleFieldOrColumn, toTreePathSeq, restoreScrollLocation, getRootColumn, getRefElem, getColReMinWidth, getColReMaxWidth, createHandleUpdateRowId, createHandleGetRowId, getCalcHeight, getCellRestHeight, getLastChildColumn, getRowMaxHeight, handleCustomStoreConfig, encodeRowid } from './util'
|
|
8
8
|
import { getSlotVNs } from '../../ui/src/vn'
|
|
9
9
|
import { moveRowAnimateToTb, clearRowAnimate, moveColAnimateToLr, clearColAnimate } from '../../ui/src/anime'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, ref, computed, inject, createCommentVNode, VNode, reactive, nextTick, PropType, onBeforeUnmount } from 'vue'
|
|
2
2
|
import { defineVxeComponent } from '../../ui/src/comp'
|
|
3
3
|
import XEUtils from 'xe-utils'
|
|
4
|
-
import { VxeUI } from '
|
|
4
|
+
import { VxeUI } from '@vxe-ui/core'
|
|
5
5
|
import { getSlotVNs } from '../../ui/src/vn'
|
|
6
6
|
import { createComponentLog } from '../../ui/src/log'
|
|
7
7
|
|
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
|