vxe-table 4.23.7 → 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/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.1792979665397.ttf → iconfont.1793007753347.ttf} +0 -0
- /package/dist/{iconfont.1792979665397.woff → iconfont.1793007753347.woff} +0 -0
- /package/dist/{iconfont.1792979665397.woff2 → iconfont.1793007753347.woff2} +0 -0
- /package/es/{iconfont.1792979665397.ttf → iconfont.1793007753347.ttf} +0 -0
- /package/es/{iconfont.1792979665397.woff → iconfont.1793007753347.woff} +0 -0
- /package/es/{iconfont.1792979665397.woff2 → iconfont.1793007753347.woff2} +0 -0
- /package/lib/{iconfont.1792979665397.ttf → iconfont.1793007753347.ttf} +0 -0
- /package/lib/{iconfont.1792979665397.woff → iconfont.1793007753347.woff} +0 -0
- /package/lib/{iconfont.1792979665397.woff2 → iconfont.1793007753347.woff2} +0 -0
package/es/colgroup/index.js
CHANGED
package/es/column/index.js
CHANGED
package/es/components.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
+
import { VxeUI } from '@vxe-ui/core';
|
|
3
|
+
import './ui';
|
|
2
4
|
import type { VxeGlobalConfig } from '../types';
|
|
3
5
|
export declare function install(app: App, options?: VxeGlobalConfig): void;
|
|
4
|
-
export
|
|
6
|
+
export { VxeUI };
|
|
5
7
|
export * from './table';
|
|
6
8
|
export * from './column';
|
|
7
9
|
export * from './colgroup';
|
package/es/components.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { VxeUI } from "
|
|
1
|
+
import { VxeUI } from "@vxe-ui/core";
|
|
2
|
+
import "./ui";
|
|
2
3
|
import { VxeColumn } from "./column";
|
|
3
4
|
import { VxeColgroup } from "./colgroup";
|
|
4
5
|
import { VxeGrid } from "./grid";
|
|
@@ -22,12 +23,12 @@ if (!VxeUI.hasLanguage("zh-CN")) {
|
|
|
22
23
|
VxeUI.setLanguage(defaultLanguage);
|
|
23
24
|
}
|
|
24
25
|
VxeUI.setTheme("light");
|
|
25
|
-
export * from "./ui";
|
|
26
26
|
export * from "./table";
|
|
27
27
|
export * from "./column";
|
|
28
28
|
export * from "./colgroup";
|
|
29
29
|
export * from "./grid";
|
|
30
30
|
export * from "./toolbar";
|
|
31
31
|
export {
|
|
32
|
+
VxeUI,
|
|
32
33
|
install
|
|
33
34
|
};
|
package/es/grid/index.js
CHANGED
package/es/grid/src/grid.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { h, ref, computed, provide, reactive, onBeforeUnmount, watch, nextTick, 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/es/grid/src/props.js
CHANGED
package/es/index.esm.js
CHANGED
package/es/index.js
CHANGED
package/es/table/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, inject, ref, provide, 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, computed, reactive, inject, nextTick } 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, computed, inject, reactive, nextTick } 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 } 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
|
const { menus, hooks, globalEvents, GLOBAL_EVENT_KEYS } = VxeUI;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, Teleport, inject, 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
|
const { getIcon, getI18n, renderEmptyElement } = VxeUI;
|
|
@@ -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";
|
package/es/table/render/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, resolveComponent } 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";
|
package/es/table/src/body.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, ref, 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";
|
package/es/table/src/cell.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } 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";
|
package/es/table/src/footer.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, ref, 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
|
import { getDefaultConfig } from "../../ui/src/utils";
|
package/es/table/src/header.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, ref, 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";
|
package/es/table/src/props.js
CHANGED
package/es/table/src/table.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { h, reactive, 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";
|
package/es/toolbar/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, ref, computed, inject, createCommentVNode, reactive, nextTick, 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
|
const { warnLog, errLog } = createComponentLog("toolbar");
|
package/es/ui/index.d.ts
CHANGED
package/es/ui/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VxeUI } from "@vxe-ui/core";
|
|
2
2
|
import { getFuncText } from "./src/utils";
|
|
3
|
-
const version = "4.23.
|
|
3
|
+
const version = "4.23.8";
|
|
4
4
|
VxeUI.version = version;
|
|
5
5
|
VxeUI.tableVersion = version;
|
|
6
6
|
VxeUI.setConfig({
|
|
@@ -466,7 +466,6 @@ const modal = {
|
|
|
466
466
|
return VxeUI.modal.notification(content, title, options);
|
|
467
467
|
}
|
|
468
468
|
};
|
|
469
|
-
export * from "@vxe-ui/core";
|
|
470
469
|
var ui_default = VxeUI;
|
|
471
470
|
export {
|
|
472
471
|
VXETable,
|
package/es/ui/src/log.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VxeUI } from "@vxe-ui/core";
|
|
2
2
|
const { log } = VxeUI;
|
|
3
|
-
const tableVersion = `table v${"4.23.
|
|
3
|
+
const tableVersion = `table v${"4.23.8"}`;
|
|
4
4
|
function createComponentLog(name) {
|
|
5
5
|
const uiVersion = VxeUI.uiVersion ? `ui v${VxeUI.uiVersion}` : "";
|
|
6
6
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : "";
|
package/es/v-x-e-table/index.js
CHANGED
package/lib/colgroup/index.js
CHANGED
|
@@ -33,7 +33,7 @@ __export(colgroup_exports, {
|
|
|
33
33
|
default: () => colgroup_default
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(colgroup_exports);
|
|
36
|
-
var
|
|
36
|
+
var import_core = require("@vxe-ui/core");
|
|
37
37
|
var import_group = __toESM(require("../table/src/group"));
|
|
38
38
|
const VxeColgroup = Object.assign({}, import_group.default, {
|
|
39
39
|
install(app) {
|
|
@@ -41,10 +41,10 @@ const VxeColgroup = Object.assign({}, import_group.default, {
|
|
|
41
41
|
app.component("VxeTableColgroup", import_group.default);
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
|
-
if (
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
if (import_core.VxeUI.dynamicApp) {
|
|
45
|
+
import_core.VxeUI.dynamicApp.component(import_group.default.name, import_group.default);
|
|
46
|
+
import_core.VxeUI.dynamicApp.component("VxeTableColgroup", import_group.default);
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
import_core.VxeUI.component(import_group.default);
|
|
49
49
|
const Colgroup = VxeColgroup;
|
|
50
50
|
var colgroup_default = VxeColgroup;
|
package/lib/column/index.js
CHANGED
|
@@ -33,7 +33,7 @@ __export(column_exports, {
|
|
|
33
33
|
default: () => column_default
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(column_exports);
|
|
36
|
-
var
|
|
36
|
+
var import_core = require("@vxe-ui/core");
|
|
37
37
|
var import_column = __toESM(require("../table/src/column"));
|
|
38
38
|
const VxeColumn = Object.assign({}, import_column.default, {
|
|
39
39
|
install(app) {
|
|
@@ -41,10 +41,10 @@ const VxeColumn = Object.assign({}, import_column.default, {
|
|
|
41
41
|
app.component("VxeTableColumn", import_column.default);
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
|
-
if (
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
if (import_core.VxeUI.dynamicApp) {
|
|
45
|
+
import_core.VxeUI.dynamicApp.component(import_column.default.name, import_column.default);
|
|
46
|
+
import_core.VxeUI.dynamicApp.component("VxeTableColumn", import_column.default);
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
import_core.VxeUI.component(import_column.default);
|
|
49
49
|
const Column = VxeColumn;
|
|
50
50
|
var column_default = VxeColumn;
|
package/lib/components.js
CHANGED
|
@@ -29,9 +29,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
29
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
30
|
var components_exports = {};
|
|
31
31
|
__export(components_exports, {
|
|
32
|
+
VxeUI: () => import_core.VxeUI,
|
|
32
33
|
install: () => install
|
|
33
34
|
});
|
|
34
35
|
module.exports = __toCommonJS(components_exports);
|
|
36
|
+
var import_core = require("@vxe-ui/core");
|
|
35
37
|
var import_ui = require("./ui");
|
|
36
38
|
var import_column = require("./column");
|
|
37
39
|
var import_colgroup = require("./colgroup");
|
|
@@ -39,7 +41,6 @@ var import_grid = require("./grid");
|
|
|
39
41
|
var import_table = require("./table");
|
|
40
42
|
var import_toolbar = require("./toolbar");
|
|
41
43
|
var import_zh_CN = __toESM(require("./locale/lang/zh-CN"));
|
|
42
|
-
__reExport(components_exports, require("./ui"), module.exports);
|
|
43
44
|
__reExport(components_exports, require("./table"), module.exports);
|
|
44
45
|
__reExport(components_exports, require("./column"), module.exports);
|
|
45
46
|
__reExport(components_exports, require("./colgroup"), module.exports);
|
|
@@ -53,12 +54,12 @@ const components = [
|
|
|
53
54
|
import_toolbar.VxeToolbar
|
|
54
55
|
];
|
|
55
56
|
function install(app, options) {
|
|
56
|
-
|
|
57
|
+
import_core.VxeUI.setConfig(options);
|
|
57
58
|
components.forEach((component) => component.install(app));
|
|
58
59
|
}
|
|
59
|
-
if (!
|
|
60
|
+
if (!import_core.VxeUI.hasLanguage("zh-CN")) {
|
|
60
61
|
const defaultLanguage = "zh-CN";
|
|
61
|
-
|
|
62
|
-
|
|
62
|
+
import_core.VxeUI.setI18n(defaultLanguage, import_zh_CN.default);
|
|
63
|
+
import_core.VxeUI.setLanguage(defaultLanguage);
|
|
63
64
|
}
|
|
64
|
-
|
|
65
|
+
import_core.VxeUI.setTheme("light");
|
package/lib/grid/index.js
CHANGED
|
@@ -33,16 +33,16 @@ __export(grid_exports, {
|
|
|
33
33
|
default: () => grid_default
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(grid_exports);
|
|
36
|
-
var
|
|
36
|
+
var import_core = require("@vxe-ui/core");
|
|
37
37
|
var import_grid = __toESM(require("./src/grid"));
|
|
38
38
|
const VxeGrid = Object.assign({}, import_grid.default, {
|
|
39
39
|
install(app) {
|
|
40
40
|
app.component(import_grid.default.name, import_grid.default);
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
|
-
if (
|
|
44
|
-
|
|
43
|
+
if (import_core.VxeUI.dynamicApp) {
|
|
44
|
+
import_core.VxeUI.dynamicApp.component(import_grid.default.name, import_grid.default);
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
import_core.VxeUI.component(import_grid.default);
|
|
47
47
|
const Grid = VxeGrid;
|
|
48
48
|
var grid_default = VxeGrid;
|
package/lib/grid/src/grid.js
CHANGED
|
@@ -32,11 +32,11 @@ __export(grid_exports, {
|
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(grid_exports);
|
|
34
34
|
var import_vue = require("vue");
|
|
35
|
+
var import_core = require("@vxe-ui/core");
|
|
35
36
|
var import_comp = require("../../ui/src/comp");
|
|
36
37
|
var import_xe_utils = __toESM(require("xe-utils"));
|
|
37
38
|
var import_utils = require("../../ui/src/utils");
|
|
38
39
|
var import_dom = require("../../ui/src/dom");
|
|
39
|
-
var import_ui = require("../../ui");
|
|
40
40
|
var import_props = require("./props");
|
|
41
41
|
var import_emits = require("./emits");
|
|
42
42
|
var import_vn = require("../../ui/src/vn");
|
|
@@ -46,7 +46,7 @@ var import_props2 = require("../../table/src/props");
|
|
|
46
46
|
var import_table = __toESM(require("../../table"));
|
|
47
47
|
var import_toolbar = __toESM(require("../../toolbar"));
|
|
48
48
|
const { warnLog, errLog } = (0, import_log.createComponentLog)("grid");
|
|
49
|
-
const { getConfig, getI18n, commands, hooks, useFns, createEvent, globalEvents, GLOBAL_EVENT_KEYS, renderEmptyElement } =
|
|
49
|
+
const { getConfig, getI18n, commands, hooks, useFns, createEvent, globalEvents, GLOBAL_EVENT_KEYS, renderEmptyElement } = import_core.VxeUI;
|
|
50
50
|
const tableComponentPropKeys = Object.keys(import_props2.tableProps);
|
|
51
51
|
const tableComponentMethodKeys = ["clearAll", "syncData", "updateData", "loadData", "reloadData", "reloadRow", "loadColumn", "reloadColumn", "getRowNode", "getColumnNode", "getRowIndex", "getVTRowIndex", "getVMRowIndex", "getColumnIndex", "getVTColumnIndex", "getVMColumnIndex", "setRow", "createData", "createRow", "revertData", "clearData", "isRemoveByRow", "isInsertByRow", "isUpdateByRow", "getColumns", "getColumnById", "getColumnByField", "getTableColumn", "getFullColumns", "getData", "getCheckboxRecords", "getParentRow", "getTreeRowChildren", "getTreeRowLevel", "getTreeParentRow", "getRowSeq", "getRowById", "getRowid", "getTableData", "getFullData", "setColumnFixed", "clearColumnFixed", "setColumnWidth", "getColumnWidth", "recalcRowHeight", "setRowHeightConf", "getRowHeightConf", "setRowHeight", "getRowHeight", "hideColumn", "showColumn", "resetColumn", "refreshColumn", "refreshScroll", "recalculate", "closeTooltip", "isAllCheckboxChecked", "isAllCheckboxIndeterminate", "getCheckboxIndeterminateRecords", "setCheckboxRow", "setCheckboxRowKey", "isCheckedByCheckboxRow", "isCheckedByCheckboxRowKey", "isIndeterminateByCheckboxRow", "isIndeterminateByCheckboxRowKey", "toggleCheckboxRow", "setAllCheckboxRow", "getRadioReserveRecord", "clearRadioReserve", "getCheckboxReserveRecords", "clearCheckboxReserve", "toggleAllCheckboxRow", "clearCheckboxRow", "setCurrentRow", "isCheckedByRadioRow", "isCheckedByRadioRowKey", "setRadioRow", "setRadioRowKey", "clearCurrentRow", "clearRadioRow", "getCurrentRecord", "getRadioRecord", "getCurrentColumn", "setCurrentColumn", "clearCurrentColumn", "setPendingRow", "togglePendingRow", "hasPendingByRow", "isPendingByRow", "getPendingRecords", "clearPendingRow", "setFilterByEvent", "sort", "setSort", "setSortByEvent", "clearSort", "clearSortByEvent", "isSort", "getSortColumns", "closeFilter", "isFilter", "clearFilterByEvent", "isActiveFilterByColumn", "isRowExpandLoaded", "clearRowExpandLoaded", "reloadRowExpand", "reloadRowExpand", "toggleRowExpand", "setAllRowExpand", "setRowExpand", "isExpandByRow", "isRowExpandByRow", "clearRowExpand", "clearRowExpandReserve", "getRowExpandRecords", "getTreeExpandRecords", "isTreeExpandLoaded", "clearTreeExpandLoaded", "reloadTreeExpand", "reloadTreeChilds", "toggleTreeExpand", "setAllTreeExpand", "setTreeExpand", "isTreeExpandByRow", "clearTreeExpand", "clearTreeExpandReserve", "getScroll", "getScrollData", "scrollTo", "scrollToStartRow", "scrollToEndRow", "scrollToRow", "scrollToStartColumn", "scrollToEndColumn", "scrollToColumn", "clearScroll", "updateFooter", "updateStatus", "setMergeCells", "removeInsertRow", "removeMergeCells", "getMergeCells", "setMergeHeaderCells", "removeMergeHeaderCells", "getMergeHeaderCells", "clearMergeHeaderCells", "clearMergeCells", "setMergeFooterItems", "removeMergeFooterItems", "getMergeFooterItems", "clearMergeFooterItems", "setCustomStoreData", "getCustomStoreData", "setRowGroupExpand", "setRowGroupExpandByField", "setAllRowGroupExpand", "clearRowGroupExpand", "isRowGroupExpandByRow", "isRowGroupRecord", "isAggregateRecord", "isAggregateExpandByRow", "getAggregateContentByRow", "getAggregateRowChildren", "setRowGroups", "clearRowGroups", "openTooltip", "moveColumnTo", "moveRowTo", "getCellLabel", "updateCellLabel", "clearFormatterCache", "getFooterCellLabel", "updateFooterCellLabel", "clearFooterFormatterCache", "getUpdateCells", "undo", "redo", "effectCellData", "getCellElement", "focus", "blur", "connect", "connectToolbar"];
|
|
52
52
|
function createReactData() {
|
|
@@ -80,8 +80,8 @@ var grid_default = (0, import_comp.defineVxeComponent)({
|
|
|
80
80
|
setup(props, context) {
|
|
81
81
|
const { slots, emit } = context;
|
|
82
82
|
const xID = import_xe_utils.default.uniqueId();
|
|
83
|
-
const VxeUIFormComponent =
|
|
84
|
-
const VxeUIPagerComponent =
|
|
83
|
+
const VxeUIFormComponent = import_core.VxeUI.getComponent("VxeForm");
|
|
84
|
+
const VxeUIPagerComponent = import_core.VxeUI.getComponent("VxePager");
|
|
85
85
|
const defaultLayouts = [["Form"], ["Toolbar", "Top", "Table", "Bottom", "Pager"]];
|
|
86
86
|
const { computeSize } = useFns.useSize(props);
|
|
87
87
|
const { computeIsVScrollbar } = useFns.useVScrollbar(props);
|
|
@@ -330,8 +330,8 @@ var grid_default = (0, import_comp.defineVxeComponent)({
|
|
|
330
330
|
$xeGrid.clearCheckboxRow();
|
|
331
331
|
} else {
|
|
332
332
|
if (isActiveMsg) {
|
|
333
|
-
if (
|
|
334
|
-
|
|
333
|
+
if (import_core.VxeUI.modal) {
|
|
334
|
+
import_core.VxeUI.modal.message({ id: code, content: getI18n("vxe.grid.selectOneRecord"), status: "warning" });
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
337
|
}
|
|
@@ -352,16 +352,16 @@ var grid_default = (0, import_comp.defineVxeComponent)({
|
|
|
352
352
|
const selectRecords = $xeGrid.getCheckboxRecords();
|
|
353
353
|
if (isActiveMsg) {
|
|
354
354
|
if (selectRecords.length) {
|
|
355
|
-
if (
|
|
356
|
-
return
|
|
355
|
+
if (import_core.VxeUI.modal) {
|
|
356
|
+
return import_core.VxeUI.modal.confirm({ id: `cfm_${code}`, content: getI18n(alertKey), escClosable: true }).then((type) => {
|
|
357
357
|
if (type === "confirm") {
|
|
358
358
|
return callback();
|
|
359
359
|
}
|
|
360
360
|
});
|
|
361
361
|
}
|
|
362
362
|
} else {
|
|
363
|
-
if (
|
|
364
|
-
|
|
363
|
+
if (import_core.VxeUI.modal) {
|
|
364
|
+
import_core.VxeUI.modal.message({ id: `msg_${code}`, content: getI18n("vxe.grid.selectOneRecord"), status: "warning" });
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
367
|
} else {
|
|
@@ -1233,8 +1233,8 @@ var grid_default = (0, import_comp.defineVxeComponent)({
|
|
|
1233
1233
|
} else {
|
|
1234
1234
|
$xeTable.setPendingRow(removeRecords, false);
|
|
1235
1235
|
if (isRespMsg) {
|
|
1236
|
-
if (
|
|
1237
|
-
|
|
1236
|
+
if (import_core.VxeUI.modal) {
|
|
1237
|
+
import_core.VxeUI.modal.message({ content: getRespMsg(rest, "vxe.grid.delSuccess"), status: "success" });
|
|
1238
1238
|
}
|
|
1239
1239
|
}
|
|
1240
1240
|
if (oldAfterDelete) {
|
|
@@ -1256,8 +1256,8 @@ var grid_default = (0, import_comp.defineVxeComponent)({
|
|
|
1256
1256
|
adMethod({ ...commitParams, response: rest, status: "error" }, ...args);
|
|
1257
1257
|
} else {
|
|
1258
1258
|
if (isRespMsg) {
|
|
1259
|
-
if (
|
|
1260
|
-
|
|
1259
|
+
if (import_core.VxeUI.modal) {
|
|
1260
|
+
import_core.VxeUI.modal.message({ id: code, content: getRespMsg(rest, "vxe.grid.operError"), status: "error" });
|
|
1261
1261
|
}
|
|
1262
1262
|
}
|
|
1263
1263
|
}
|
|
@@ -1278,8 +1278,8 @@ var grid_default = (0, import_comp.defineVxeComponent)({
|
|
|
1278
1278
|
});
|
|
1279
1279
|
} else {
|
|
1280
1280
|
if (isActiveMsg) {
|
|
1281
|
-
if (
|
|
1282
|
-
|
|
1281
|
+
if (import_core.VxeUI.modal) {
|
|
1282
|
+
import_core.VxeUI.modal.message({ id: code, content: getI18n("vxe.grid.selectOneRecord"), status: "warning" });
|
|
1283
1283
|
}
|
|
1284
1284
|
}
|
|
1285
1285
|
}
|
|
@@ -1331,8 +1331,8 @@ var grid_default = (0, import_comp.defineVxeComponent)({
|
|
|
1331
1331
|
} else {
|
|
1332
1332
|
$xeTable.clearPendingRow();
|
|
1333
1333
|
if (isRespMsg) {
|
|
1334
|
-
if (
|
|
1335
|
-
|
|
1334
|
+
if (import_core.VxeUI.modal) {
|
|
1335
|
+
import_core.VxeUI.modal.message({ content: getRespMsg(rest, "vxe.grid.saveSuccess"), status: "success" });
|
|
1336
1336
|
}
|
|
1337
1337
|
}
|
|
1338
1338
|
if (oldAfterSave) {
|
|
@@ -1354,8 +1354,8 @@ var grid_default = (0, import_comp.defineVxeComponent)({
|
|
|
1354
1354
|
aSaveMethod({ ...commitParams, response: rest, status: "error" }, ...args);
|
|
1355
1355
|
} else {
|
|
1356
1356
|
if (isRespMsg) {
|
|
1357
|
-
if (
|
|
1358
|
-
|
|
1357
|
+
if (import_core.VxeUI.modal) {
|
|
1358
|
+
import_core.VxeUI.modal.message({ id: code, content: getRespMsg(rest, "vxe.grid.operError"), status: "error" });
|
|
1359
1359
|
}
|
|
1360
1360
|
}
|
|
1361
1361
|
}
|
|
@@ -1375,8 +1375,8 @@ var grid_default = (0, import_comp.defineVxeComponent)({
|
|
|
1375
1375
|
return handleSave();
|
|
1376
1376
|
} else {
|
|
1377
1377
|
if (isActiveMsg) {
|
|
1378
|
-
if (
|
|
1379
|
-
|
|
1378
|
+
if (import_core.VxeUI.modal) {
|
|
1379
|
+
import_core.VxeUI.modal.message({ id: code, content: getI18n("vxe.grid.dataUnchanged"), status: "info" });
|
|
1380
1380
|
}
|
|
1381
1381
|
}
|
|
1382
1382
|
}
|
package/lib/grid/src/props.js
CHANGED
|
@@ -21,9 +21,9 @@ __export(props_exports, {
|
|
|
21
21
|
gridProps: () => gridProps
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(props_exports);
|
|
24
|
-
var
|
|
24
|
+
var import_core = require("@vxe-ui/core");
|
|
25
25
|
var import_props = require("../../table/src/props");
|
|
26
|
-
const { getConfig } =
|
|
26
|
+
const { getConfig } = import_core.VxeUI;
|
|
27
27
|
const gridProps = {
|
|
28
28
|
...import_props.tableProps,
|
|
29
29
|
layouts: Array,
|