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.
Files changed (119) hide show
  1. package/dist/all.esm.js +176 -267
  2. package/es/colgroup/index.js +1 -1
  3. package/es/column/index.js +1 -1
  4. package/es/components.d.ts +3 -1
  5. package/es/components.js +3 -2
  6. package/es/grid/index.js +1 -1
  7. package/es/grid/src/grid.js +1 -1
  8. package/es/grid/src/props.js +1 -1
  9. package/es/index.esm.js +5 -0
  10. package/es/index.js +5 -0
  11. package/es/style.css +4501 -0
  12. package/es/style.mini.css +1 -0
  13. package/es/table/index.js +1 -1
  14. package/es/table/module/custom/hook.js +1 -1
  15. package/es/table/module/custom/panel.js +1 -1
  16. package/es/table/module/edit/hook.js +1 -1
  17. package/es/table/module/export/export-panel.js +1 -1
  18. package/es/table/module/export/hook.js +1 -1
  19. package/es/table/module/export/import-panel.js +1 -1
  20. package/es/table/module/filter/hook.js +1 -1
  21. package/es/table/module/filter/panel.js +1 -1
  22. package/es/table/module/keyboard/hook.js +1 -1
  23. package/es/table/module/menu/hook.js +1 -1
  24. package/es/table/module/menu/panel.js +1 -1
  25. package/es/table/module/validator/hook.js +1 -1
  26. package/es/table/render/index.js +1 -1
  27. package/es/table/src/body.js +1 -1
  28. package/es/table/src/cell.js +1 -1
  29. package/es/table/src/columnInfo.js +1 -1
  30. package/es/table/src/footer.js +1 -1
  31. package/es/table/src/header.js +1 -1
  32. package/es/table/src/props.js +1 -1
  33. package/es/table/src/table.js +1 -1
  34. package/es/toolbar/index.js +1 -1
  35. package/es/toolbar/src/toolbar.js +1 -1
  36. package/es/ui/index.d.ts +0 -1
  37. package/es/ui/index.js +1 -2
  38. package/es/ui/src/log.js +1 -1
  39. package/es/v-x-e-table/index.d.ts +0 -1
  40. package/es/v-x-e-table/index.js +0 -1
  41. package/lib/colgroup/index.js +5 -5
  42. package/lib/column/index.js +5 -5
  43. package/lib/components.js +7 -6
  44. package/lib/grid/index.js +4 -4
  45. package/lib/grid/src/grid.js +22 -22
  46. package/lib/grid/src/props.js +2 -2
  47. package/lib/index.common.js +5 -0
  48. package/lib/index.js +5 -0
  49. package/lib/index.umd.js +176 -228
  50. package/lib/index.umd.min.js +3 -3
  51. package/lib/table/index.js +5 -5
  52. package/lib/table/module/custom/hook.js +2 -2
  53. package/lib/table/module/custom/panel.js +13 -13
  54. package/lib/table/module/edit/hook.js +2 -2
  55. package/lib/table/module/export/export-panel.js +7 -7
  56. package/lib/table/module/export/hook.js +24 -24
  57. package/lib/table/module/export/import-panel.js +5 -5
  58. package/lib/table/module/filter/hook.js +2 -2
  59. package/lib/table/module/filter/panel.js +3 -3
  60. package/lib/table/module/keyboard/hook.js +2 -2
  61. package/lib/table/module/menu/hook.js +2 -2
  62. package/lib/table/module/menu/panel.js +2 -2
  63. package/lib/table/module/validator/hook.js +2 -2
  64. package/lib/table/render/index.js +2 -2
  65. package/lib/table/src/body.js +2 -2
  66. package/lib/table/src/cell.js +2 -2
  67. package/lib/table/src/columnInfo.js +2 -2
  68. package/lib/table/src/footer.js +2 -2
  69. package/lib/table/src/header.js +2 -2
  70. package/lib/table/src/props.js +2 -2
  71. package/lib/table/src/table.js +17 -17
  72. package/lib/toolbar/index.js +4 -4
  73. package/lib/toolbar/src/toolbar.js +3 -3
  74. package/lib/ui/index.js +1 -3
  75. package/lib/ui/src/log.js +1 -1
  76. package/lib/v-x-e-table/index.js +0 -2
  77. package/package.json +8 -3
  78. package/packages/colgroup/index.ts +1 -1
  79. package/packages/column/index.ts +1 -1
  80. package/packages/components.ts +3 -2
  81. package/packages/grid/index.ts +1 -1
  82. package/packages/grid/src/grid.ts +1 -1
  83. package/packages/grid/src/props.ts +1 -1
  84. package/packages/index.ts +7 -0
  85. package/packages/table/index.ts +1 -1
  86. package/packages/table/module/custom/hook.ts +1 -1
  87. package/packages/table/module/custom/panel.ts +1 -1
  88. package/packages/table/module/edit/hook.ts +1 -1
  89. package/packages/table/module/export/export-panel.ts +1 -1
  90. package/packages/table/module/export/hook.ts +1 -1
  91. package/packages/table/module/export/import-panel.ts +1 -1
  92. package/packages/table/module/filter/hook.ts +1 -1
  93. package/packages/table/module/filter/panel.ts +1 -1
  94. package/packages/table/module/keyboard/hook.ts +1 -1
  95. package/packages/table/module/menu/hook.ts +1 -1
  96. package/packages/table/module/menu/panel.ts +1 -1
  97. package/packages/table/module/validator/hook.ts +1 -1
  98. package/packages/table/render/index.ts +1 -1
  99. package/packages/table/src/body.ts +1 -1
  100. package/packages/table/src/cell.ts +1 -1
  101. package/packages/table/src/columnInfo.ts +1 -1
  102. package/packages/table/src/footer.ts +1 -1
  103. package/packages/table/src/header.ts +1 -1
  104. package/packages/table/src/props.ts +1 -1
  105. package/packages/table/src/table.ts +1 -1
  106. package/packages/toolbar/index.ts +1 -1
  107. package/packages/toolbar/src/toolbar.ts +1 -1
  108. package/packages/ui/index.ts +0 -1
  109. package/packages/v-x-e-table/index.d.ts +0 -1
  110. package/packages/v-x-e-table/index.ts +0 -1
  111. /package/dist/{iconfont.1792977622800.ttf → iconfont.1793007753347.ttf} +0 -0
  112. /package/dist/{iconfont.1792977622800.woff → iconfont.1793007753347.woff} +0 -0
  113. /package/dist/{iconfont.1792977622800.woff2 → iconfont.1793007753347.woff2} +0 -0
  114. /package/es/{iconfont.1792977622800.ttf → iconfont.1793007753347.ttf} +0 -0
  115. /package/es/{iconfont.1792977622800.woff → iconfont.1793007753347.woff} +0 -0
  116. /package/es/{iconfont.1792977622800.woff2 → iconfont.1793007753347.woff2} +0 -0
  117. /package/lib/{iconfont.1792977622800.ttf → iconfont.1793007753347.ttf} +0 -0
  118. /package/lib/{iconfont.1792977622800.woff → iconfont.1793007753347.woff} +0 -0
  119. /package/lib/{iconfont.1792977622800.woff2 → iconfont.1793007753347.woff2} +0 -0
@@ -33,7 +33,7 @@ __export(colgroup_exports, {
33
33
  default: () => colgroup_default
34
34
  });
35
35
  module.exports = __toCommonJS(colgroup_exports);
36
- var import_ui = require("../ui");
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 (import_ui.VxeUI.dynamicApp) {
45
- import_ui.VxeUI.dynamicApp.component(import_group.default.name, import_group.default);
46
- import_ui.VxeUI.dynamicApp.component("VxeTableColgroup", import_group.default);
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
- import_ui.VxeUI.component(import_group.default);
48
+ import_core.VxeUI.component(import_group.default);
49
49
  const Colgroup = VxeColgroup;
50
50
  var colgroup_default = VxeColgroup;
@@ -33,7 +33,7 @@ __export(column_exports, {
33
33
  default: () => column_default
34
34
  });
35
35
  module.exports = __toCommonJS(column_exports);
36
- var import_ui = require("../ui");
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 (import_ui.VxeUI.dynamicApp) {
45
- import_ui.VxeUI.dynamicApp.component(import_column.default.name, import_column.default);
46
- import_ui.VxeUI.dynamicApp.component("VxeTableColumn", import_column.default);
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
- import_ui.VxeUI.component(import_column.default);
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
- import_ui.VxeUI.setConfig(options);
57
+ import_core.VxeUI.setConfig(options);
57
58
  components.forEach((component) => component.install(app));
58
59
  }
59
- if (!import_ui.VxeUI.hasLanguage("zh-CN")) {
60
+ if (!import_core.VxeUI.hasLanguage("zh-CN")) {
60
61
  const defaultLanguage = "zh-CN";
61
- import_ui.VxeUI.setI18n(defaultLanguage, import_zh_CN.default);
62
- import_ui.VxeUI.setLanguage(defaultLanguage);
62
+ import_core.VxeUI.setI18n(defaultLanguage, import_zh_CN.default);
63
+ import_core.VxeUI.setLanguage(defaultLanguage);
63
64
  }
64
- import_ui.VxeUI.setTheme("light");
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 import_ui = require("../ui");
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 (import_ui.VxeUI.dynamicApp) {
44
- import_ui.VxeUI.dynamicApp.component(import_grid.default.name, import_grid.default);
43
+ if (import_core.VxeUI.dynamicApp) {
44
+ import_core.VxeUI.dynamicApp.component(import_grid.default.name, import_grid.default);
45
45
  }
46
- import_ui.VxeUI.component(import_grid.default);
46
+ import_core.VxeUI.component(import_grid.default);
47
47
  const Grid = VxeGrid;
48
48
  var grid_default = VxeGrid;
@@ -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 } = import_ui.VxeUI;
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 = import_ui.VxeUI.getComponent("VxeForm");
84
- const VxeUIPagerComponent = import_ui.VxeUI.getComponent("VxePager");
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 (import_ui.VxeUI.modal) {
334
- import_ui.VxeUI.modal.message({ id: code, content: getI18n("vxe.grid.selectOneRecord"), status: "warning" });
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 (import_ui.VxeUI.modal) {
356
- return import_ui.VxeUI.modal.confirm({ id: `cfm_${code}`, content: getI18n(alertKey), escClosable: true }).then((type) => {
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 (import_ui.VxeUI.modal) {
364
- import_ui.VxeUI.modal.message({ id: `msg_${code}`, content: getI18n("vxe.grid.selectOneRecord"), status: "warning" });
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 (import_ui.VxeUI.modal) {
1237
- import_ui.VxeUI.modal.message({ content: getRespMsg(rest, "vxe.grid.delSuccess"), status: "success" });
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 (import_ui.VxeUI.modal) {
1260
- import_ui.VxeUI.modal.message({ id: code, content: getRespMsg(rest, "vxe.grid.operError"), status: "error" });
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 (import_ui.VxeUI.modal) {
1282
- import_ui.VxeUI.modal.message({ id: code, content: getI18n("vxe.grid.selectOneRecord"), status: "warning" });
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 (import_ui.VxeUI.modal) {
1335
- import_ui.VxeUI.modal.message({ content: getRespMsg(rest, "vxe.grid.saveSuccess"), status: "success" });
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 (import_ui.VxeUI.modal) {
1358
- import_ui.VxeUI.modal.message({ id: code, content: getRespMsg(rest, "vxe.grid.operError"), status: "error" });
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 (import_ui.VxeUI.modal) {
1379
- import_ui.VxeUI.modal.message({ id: code, content: getI18n("vxe.grid.dataUnchanged"), status: "info" });
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
  }
@@ -21,9 +21,9 @@ __export(props_exports, {
21
21
  gridProps: () => gridProps
22
22
  });
23
23
  module.exports = __toCommonJS(props_exports);
24
- var import_ui = require("../../ui");
24
+ var import_core = require("@vxe-ui/core");
25
25
  var import_props = require("../../table/src/props");
26
- const { getConfig } = import_ui.VxeUI;
26
+ const { getConfig } = import_core.VxeUI;
27
27
  const gridProps = {
28
28
  ...import_props.tableProps,
29
29
  layouts: Array,
@@ -34,4 +34,9 @@ __export(index_exports, {
34
34
  module.exports = __toCommonJS(index_exports);
35
35
  var VxeUITableExport = __toESM(require("./components"));
36
36
  __reExport(index_exports, require("./components"), module.exports);
37
+ if (typeof window !== "undefined" && window.Vue) {
38
+ if (!window.VXETable) {
39
+ window.VXETable = VxeUITableExport;
40
+ }
41
+ }
37
42
  var index_default = VxeUITableExport;
package/lib/index.js CHANGED
@@ -34,4 +34,9 @@ __export(index_exports, {
34
34
  module.exports = __toCommonJS(index_exports);
35
35
  var VxeUITableExport = __toESM(require("./components"));
36
36
  __reExport(index_exports, require("./components"), module.exports);
37
+ if (typeof window !== "undefined" && window.Vue) {
38
+ if (!window.VXETable) {
39
+ window.VXETable = VxeUITableExport;
40
+ }
41
+ }
37
42
  var index_default = VxeUITableExport;