@dazhicheng/ui 1.6.71 → 1.6.73

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 (142) hide show
  1. package/dist/assets/svg/download.svg.js +1 -1
  2. package/dist/components/tt-api-component/index.js +4 -3
  3. package/dist/components/tt-api-component/index.vue2.js +3 -2
  4. package/dist/components/tt-area/TtArea.vue.js +1 -1
  5. package/dist/components/tt-area/TtArea.vue3.js +3 -2
  6. package/dist/components/tt-button/index.d.ts +28 -28
  7. package/dist/components/tt-button/index.js +5 -4
  8. package/dist/components/tt-button/index.vue.d.ts +16 -16
  9. package/dist/components/tt-button/index.vue2.js +18 -17
  10. package/dist/components/tt-checkbox/index.js +4 -3
  11. package/dist/components/tt-checkbox/index.vue.js +9 -8
  12. package/dist/components/tt-config-provider/index.js +4 -3
  13. package/dist/components/tt-custom-export-modal/index.js +4 -3
  14. package/dist/components/tt-custom-export-modal/src/assets/search.svg.js +5 -5
  15. package/dist/components/tt-custom-export-modal/src/assets/star.svg.js +3 -3
  16. package/dist/components/tt-custom-export-modal/src/assets/trash.svg.js +7 -7
  17. package/dist/components/tt-custom-export-modal/src/components/FieldGridSection.vue.js +1 -1
  18. package/dist/components/tt-custom-export-modal/src/components/FieldGridSection.vue2.js +3 -2
  19. package/dist/components/tt-custom-export-panel/index.js +4 -3
  20. package/dist/components/tt-custom-export-panel/src/TtCustomExportPanel.vue.js +3 -2
  21. package/dist/components/tt-drawer/index.d.ts +109 -109
  22. package/dist/components/tt-drawer/index.js +4 -3
  23. package/dist/components/tt-drawer/src/RenderDrawer.vue.d.ts +60 -60
  24. package/dist/components/tt-drawer/src/RenderDrawer.vue.js +3 -2
  25. package/dist/components/tt-drawer/src/components/DrawerFooter.vue.js +3 -2
  26. package/dist/components/tt-drawer/src/components/DrawerHeader.vue.js +2 -2
  27. package/dist/components/tt-drawer/src/components/DrawerHeader.vue2.js +7 -6
  28. package/dist/components/tt-drawer/src/props.js +3 -2
  29. package/dist/components/tt-drawer/src/utils/drawer-api.js +3 -2
  30. package/dist/components/tt-empty/index.d.ts +4 -4
  31. package/dist/components/tt-empty/index.js +4 -3
  32. package/dist/components/tt-form/index.js +9 -8
  33. package/dist/components/tt-form/src/components/ExpandableArrow.vue2.js +8 -7
  34. package/dist/components/tt-form/src/components/FormActions.vue2.js +33 -32
  35. package/dist/components/tt-form/src/components/FormElInput.vue.d.ts +10 -10
  36. package/dist/components/tt-form/src/form/FormDescription.vue.js +3 -2
  37. package/dist/components/tt-form/src/form/FormItem.vue.js +3 -2
  38. package/dist/components/tt-form/src/form/FormLabel.vue.js +6 -5
  39. package/dist/components/tt-form/src/form/RenderContent.vue.js +7 -6
  40. package/dist/components/tt-form/src/form-render/FormField.vue2.js +3 -2
  41. package/dist/components/tt-form/src/form-render/FormLabel.vue2.js +3 -2
  42. package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.js +1 -0
  43. package/dist/components/tt-form/src/form-render/array-register/utils.js +3 -2
  44. package/dist/components/tt-form/src/form-render/dependencies.js +30 -29
  45. package/dist/components/tt-form/src/form-render/form.vue2.js +3 -2
  46. package/dist/components/tt-form/src/form-render/helper.js +3 -2
  47. package/dist/components/tt-form/src/form-render/rootWrapperClass.js +3 -2
  48. package/dist/components/tt-form/src/group-form/GroupForm.vue2.js +3 -2
  49. package/dist/components/tt-form/src/group-form/GroupSection.vue2.js +1 -0
  50. package/dist/components/tt-form/src/group-form/LazyFormField.vue.js +3 -2
  51. package/dist/components/tt-form/src/group-form/groupFormApi.js +3 -2
  52. package/dist/components/tt-form/src/hooks/useForwardPriorityValues.js +13 -12
  53. package/dist/components/tt-form/src/hooks/useSelectCollapse.js +3 -2
  54. package/dist/components/tt-form/src/index.vue2.js +3 -2
  55. package/dist/components/tt-form/src/useFormContext.js +10 -9
  56. package/dist/components/tt-form-item-error-tooltip/index.js +5 -4
  57. package/dist/components/tt-form-item-error-tooltip/index.vue.js +3 -2
  58. package/dist/components/tt-icon/index.js +6 -5
  59. package/dist/components/tt-icon/index.vue.js +2 -2
  60. package/dist/components/tt-image/index.d.ts +29 -29
  61. package/dist/components/tt-image/index.js +6 -5
  62. package/dist/components/tt-image/src/components/ImageViewer.d.ts +20 -20
  63. package/dist/components/tt-image/src/components/ImageViewer.js +8 -7
  64. package/dist/components/tt-image/tt-image.d.ts +29 -29
  65. package/dist/components/tt-input-textarea/index.js +4 -3
  66. package/dist/components/tt-input-textarea/index.vue.d.ts +40 -40
  67. package/dist/components/tt-input-textarea/index.vue.js +3 -2
  68. package/dist/components/tt-loading/index.js +4 -3
  69. package/dist/components/tt-loading/src/directive.js +4 -3
  70. package/dist/components/tt-loading/src/loading.vue.js +2 -2
  71. package/dist/components/tt-log/index.js +4 -3
  72. package/dist/components/tt-log/index.vue.js +5 -4
  73. package/dist/components/tt-modal/index.d.ts +150 -150
  74. package/dist/components/tt-modal/index.js +8 -7
  75. package/dist/components/tt-modal/src/RenderModal.vue.d.ts +42 -42
  76. package/dist/components/tt-modal/src/RenderModal.vue.js +3 -2
  77. package/dist/components/tt-modal/src/components/ModalFooter.vue2.js +3 -2
  78. package/dist/components/tt-modal/src/components/ModalHeader.vue2.js +3 -2
  79. package/dist/components/tt-modal/src/components/ModalWrapper.vue.js +3 -2
  80. package/dist/components/tt-modal/src/hooks/useModalRender.d.ts +17 -17
  81. package/dist/components/tt-modal/src/props.js +3 -2
  82. package/dist/components/tt-modal/src/utils/modal-api.js +9 -8
  83. package/dist/components/tt-modal-form/index.vue.js +3 -2
  84. package/dist/components/tt-nav-anchor/index.js +4 -3
  85. package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue.js +3 -2
  86. package/dist/components/tt-panel-select/index.js +4 -3
  87. package/dist/components/tt-panel-select/src/common.js +5 -4
  88. package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.d.ts +5 -5
  89. package/dist/components/tt-panel-select/src/hooks/usePanelData.js +3 -2
  90. package/dist/components/tt-panel-select/src/index.vue.d.ts +5 -5
  91. package/dist/components/tt-panel-select/src/index.vue.js +3 -2
  92. package/dist/components/tt-radio-group/index.js +4 -3
  93. package/dist/components/tt-radio-group/index.vue.js +18 -17
  94. package/dist/components/tt-select/index.js +4 -3
  95. package/dist/components/tt-select/src/Select.vue.js +3 -2
  96. package/dist/components/tt-select/src/components/SelectTable.vue.js +3 -2
  97. package/dist/components/tt-select/src/components/Table.vue.js +3 -2
  98. package/dist/components/tt-select/src/hooks/useDataSource.js +3 -2
  99. package/dist/components/tt-select/src/hooks/useSelect.js +18 -17
  100. package/dist/components/tt-select/src/hooks/useSelectTableEvent.js +3 -2
  101. package/dist/components/tt-table/index.js +6 -5
  102. package/dist/components/tt-table/src/Table.vue.js +3 -2
  103. package/dist/components/tt-table/src/TableForm.vue.js +3 -2
  104. package/dist/components/tt-table/src/components/TableAction.vue.js +8 -7
  105. package/dist/components/tt-table/src/components/TableButtons.js +3 -2
  106. package/dist/components/tt-table/src/components/TableColumnModal.vue2.js +3 -2
  107. package/dist/components/tt-table/src/components/TableToolbarTools.vue.js +3 -2
  108. package/dist/components/tt-table/src/hooks/useColumnPersistence.js +17 -16
  109. package/dist/components/tt-table/src/hooks/useColumns.js +3 -2
  110. package/dist/components/tt-table/src/hooks/useKeyboardNav.js +18 -17
  111. package/dist/components/tt-table/src/hooks/usePagination.js +20 -19
  112. package/dist/components/tt-table/src/hooks/useQuery.js +9 -8
  113. package/dist/components/tt-table/src/hooks/useRowIdentity.js +3 -2
  114. package/dist/components/tt-table/src/hooks/useRowSelection.js +25 -24
  115. package/dist/components/tt-table/src/hooks/useSideSlot.js +9 -8
  116. package/dist/components/tt-table/src/hooks/useSyncProps.js +11 -10
  117. package/dist/components/tt-table/src/hooks/useTableData.js +5 -4
  118. package/dist/components/tt-table/src/hooks/useTableFooter.js +13 -12
  119. package/dist/components/tt-table/src/hooks/useTableForm.js +20 -19
  120. package/dist/components/tt-table/src/props.js +7 -6
  121. package/dist/components/tt-table/src/table-mutation-events.js +12 -11
  122. package/dist/components/tt-table/src/utils/action-tab-index.js +5 -4
  123. package/dist/components/tt-table/src/utils/context.js +9 -8
  124. package/dist/components/tt-text/index.js +4 -3
  125. package/dist/components/tt-upload/index.d.ts +60 -60
  126. package/dist/components/tt-upload/index.js +6 -5
  127. package/dist/components/tt-upload/src/TtUpload.vue.d.ts +37 -37
  128. package/dist/components/tt-upload/src/TtUpload.vue.js +3 -2
  129. package/dist/components/tt-upload/src/typing.d.ts +17 -17
  130. package/dist/directives/disabled-tip/index.js +3 -2
  131. package/dist/hooks/useFormSchemasLink.js +3 -2
  132. package/dist/hooks/useFormat.js +3 -2
  133. package/dist/hooks/usePanelSelectSchemas.js +3 -2
  134. package/dist/hooks/useScreenshotOss.js +3 -2
  135. package/dist/packages/hooks/src/useDebounce.js +3 -2
  136. package/dist/packages/hooks/src/useElementScreenshot.js +3 -2
  137. package/dist/packages/hooks/src/usePriorityValue.js +9 -8
  138. package/dist/packages/utils/src/stateHandler.js +15 -9
  139. package/dist/plugins/default/renderCellContent.js +12 -11
  140. package/dist/plugins/vxeTable/switchStatus.js +13 -12
  141. package/dist/style.css +1 -1
  142. package/package.json +3 -3
@@ -1,37 +1,38 @@
1
- import { kebabToCamelCase as a } from "../../../../packages/utils/src/string.js";
1
+ import { kebabToCamelCase as s } from "../../../../packages/utils/src/string.js";
2
2
  import "axios";
3
3
  import "element-plus";
4
4
  import { isObject as h, isArray as b } from "../../../../packages/utils/src/is.js";
5
- import { getCurrentInstance as P, watch as p, toValue as g } from "vue";
5
+ import { getCurrentInstance as P, watch as a, toValue as g } from "vue";
6
6
  import "dayjs";
7
7
  import "numeral";
8
8
  import "xe-utils";
9
9
  import "dayjs/plugin/utc";
10
10
  import "dayjs/plugin/timezone";
11
11
  import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
12
+ import "../../../../packages/utils/src/stateHandler.js";
12
13
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
13
14
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
14
15
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
15
16
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
16
17
  import "lodash-es";
17
18
  const f = ["data"], j = ["columns"];
18
- function D(t, m, l = []) {
19
+ function F(t, m, l = []) {
19
20
  var c;
20
21
  const i = P();
21
22
  function u(o) {
22
- var s;
23
- const r = ((s = i == null ? void 0 : i.vnode) == null ? void 0 : s.props) || {};
24
- return Object.keys(r).some((d) => a(d) === o);
23
+ var p;
24
+ const r = ((p = i == null ? void 0 : i.vnode) == null ? void 0 : p.props) || {};
25
+ return Object.keys(r).some((d) => s(d) === o);
25
26
  }
26
27
  const e = Array.from(
27
28
  new Set(
28
- Object.keys(((c = i == null ? void 0 : i.vnode) == null ? void 0 : c.props) || {}).map(a).filter((o) => !o.startsWith("on") && o in t).filter((o) => !l.includes(o) && !f.includes(o))
29
+ Object.keys(((c = i == null ? void 0 : i.vnode) == null ? void 0 : c.props) || {}).map(s).filter((o) => !o.startsWith("on") && o in t).filter((o) => !l.includes(o) && !f.includes(o))
29
30
  )
30
31
  ), n = {};
31
32
  e.forEach((o) => {
32
33
  n[o] = t[o];
33
34
  }), Object.keys(n).length && m(n), e.forEach((o) => {
34
- p(
35
+ a(
35
36
  () => t[o],
36
37
  (r) => m({ [o]: r }),
37
38
  // 逐 key 写入是「内部改动不被父组件覆盖」的必要条件,不能合并成一个 deep watcher:
@@ -39,7 +40,7 @@ function D(t, m, l = []) {
39
40
  { deep: !j.includes(o) && (h(t[o]) || b(t[o])) }
40
41
  );
41
42
  }), f.forEach((o) => {
42
- p(
43
+ a(
43
44
  [() => t[o], () => {
44
45
  var r;
45
46
  return (r = g(t[o])) == null ? void 0 : r.length;
@@ -52,5 +53,5 @@ function D(t, m, l = []) {
52
53
  });
53
54
  }
54
55
  export {
55
- D as useSyncProps
56
+ F as useSyncProps
56
57
  };
@@ -8,6 +8,7 @@ import "xe-utils";
8
8
  import "dayjs/plugin/utc";
9
9
  import "dayjs/plugin/timezone";
10
10
  import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
11
+ import "../../../../packages/utils/src/stateHandler.js";
11
12
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
12
13
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
13
14
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
@@ -60,11 +61,11 @@ function X(l) {
60
61
  function x(l) {
61
62
  return !l || l();
62
63
  }
63
- async function ke(l, f, C, g = () => !0) {
64
+ async function je(l, f, C, g = () => !0) {
64
65
  const i = (l == null ? void 0 : l.getTreeExpandRecords()) || [], R = await C();
65
66
  return f && i.length && g() && await (l == null ? void 0 : l.setTreeExpand(i, !0)), R;
66
67
  }
67
- function je(l, f, C, g, i) {
68
+ function ze(l, f, C, g, i) {
68
69
  const R = he(), b = J([]), D = J();
69
70
  let A = !1, u = !1, M = 0, h;
70
71
  const q = Symbol("tt-table-emitted-rows-event");
@@ -306,6 +307,6 @@ function je(l, f, C, g, i) {
306
307
  }
307
308
  export {
308
309
  X as getExternalRowsValue,
309
- je as useTableData,
310
- ke as withTreeExpand
310
+ ze as useTableData,
311
+ je as withTreeExpand
311
312
  };
@@ -8,40 +8,41 @@ import "xe-utils";
8
8
  import "dayjs/plugin/utc";
9
9
  import "dayjs/plugin/timezone";
10
10
  import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
11
+ import "../../../../packages/utils/src/stateHandler.js";
11
12
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
12
13
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
13
14
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
14
15
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
15
16
  import { get as l } from "lodash-es";
16
17
  const c = "合计";
17
- function h(i, m, f) {
18
- const r = f.map((t) => l(t, m.field));
19
- if (s(i)) return i({ values: r, rows: f, column: m });
18
+ function h(i, n, f) {
19
+ const r = f.map((t) => l(t, n.field));
20
+ if (s(i)) return i({ values: r, rows: f, column: n });
20
21
  if (i === "count") return f.length;
21
- const e = r.filter(d), o = e.reduce((t, n) => t + n, 0);
22
+ const e = r.filter(d), o = e.reduce((t, m) => t + m, 0);
22
23
  return i === "avg" ? e.length ? o / e.length : 0 : o;
23
24
  }
24
- function z(i) {
25
- const m = u(() => {
25
+ function C(i) {
26
+ const n = u(() => {
26
27
  const r = /* @__PURE__ */ new Map(), e = (o) => {
27
28
  o.forEach((t) => {
28
- var n;
29
- t.field && t.summary && r.set(t.field, t.summary), (n = t.children) != null && n.length && e(t.children);
29
+ var m;
30
+ t.field && t.summary && r.set(t.field, t.summary), (m = t.children) != null && m.length && e(t.children);
30
31
  });
31
32
  };
32
33
  return e(a(i)), r;
33
34
  });
34
35
  return { footerSummaryMethod: u(() => {
35
- const r = a(m);
36
+ const r = a(n);
36
37
  if (r.size)
37
38
  return ({ columns: e, data: o }) => [
38
- e.map((t, n) => {
39
+ e.map((t, m) => {
39
40
  const p = t.field ? r.get(t.field) : void 0;
40
- return p ? h(p, t, o) : n === 0 ? c : "";
41
+ return p ? h(p, t, o) : m === 0 ? c : "";
41
42
  })
42
43
  ];
43
44
  }) };
44
45
  }
45
46
  export {
46
- z as useTableFooter
47
+ C as useTableFooter
47
48
  };
@@ -1,23 +1,24 @@
1
1
  import "axios";
2
2
  import "element-plus";
3
3
  import { isFunction as m } from "../../../../packages/utils/src/is.js";
4
- import { computed as i, unref as s, toValue as a } from "vue";
4
+ import { computed as s, unref as i, toValue as a } from "vue";
5
5
  import "dayjs";
6
6
  import "numeral";
7
7
  import "xe-utils";
8
8
  import "dayjs/plugin/utc";
9
9
  import "dayjs/plugin/timezone";
10
10
  import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
11
+ import "../../../../packages/utils/src/stateHandler.js";
11
12
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
12
13
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
13
14
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
14
15
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
15
16
  import { omit as u } from "lodash-es";
16
- function q(n, p, h, l) {
17
- const f = i(() => {
18
- const { form: t } = s(n), o = {
17
+ function v(n, p, h, l) {
18
+ const f = s(() => {
19
+ const { form: t } = i(n), o = {
19
20
  ...t == null ? void 0 : t.submitButtonOptions,
20
- loading: s(h)
21
+ loading: i(h)
21
22
  };
22
23
  return {
23
24
  // 搜索区默认使用 6px 紧凑间距,校验错误由紧凑模式的提示气泡展示。
@@ -27,34 +28,34 @@ function q(n, p, h, l) {
27
28
  };
28
29
  });
29
30
  async function b(t) {
30
- const o = l(), r = { currentPage: 1, pageSize: o == null ? void 0 : o.pageSize };
31
- await p({ tablePage: r, searchInfo: t });
31
+ const o = l(), e = { currentPage: 1, pageSize: o == null ? void 0 : o.pageSize };
32
+ await p({ tablePage: e, searchInfo: t });
32
33
  }
33
34
  async function d(t) {
34
- const { handleSearchInfoFn: o, table: r } = a(n);
35
- let e = t;
36
- return m(o) && (e = await o(e) || e), m(r == null ? void 0 : r.beforeFetch) && (e = await r.beforeFetch(e) || e), e;
35
+ const { handleSearchInfoFn: o, table: e } = a(n);
36
+ let r = t;
37
+ return m(o) && (r = await o(r) || r), m(e == null ? void 0 : e.beforeFetch) && (r = await e.beforeFetch(r) || r), r;
37
38
  }
38
- const c = i(() => {
39
- const { columnsKey: t, showSetting: o, showSetColumn: r, showRefresh: e, showExport: w, showCustomExport: F } = s(n).table || {}, { toolConfig: S } = s(n);
39
+ const c = s(() => {
40
+ const { columnsKey: t, showSetting: o, showSetColumn: e, showRefresh: r, showExport: w, showCustomExport: F } = i(n).table || {}, { toolConfig: S } = i(n);
40
41
  return {
41
42
  columnsKey: t,
42
43
  showSetting: o,
43
- showRefresh: e,
44
- showSetColumn: r,
44
+ showRefresh: r,
45
+ showSetColumn: e,
45
46
  showExport: w,
46
47
  showCustomExport: F,
47
48
  ...S
48
49
  };
49
- }), g = i(() => {
50
- const { table: t = {}, useSearchForm: o, testId: r } = a(n), e = u(s(c), ["tableRowId"]);
50
+ }), g = s(() => {
51
+ const { table: t = {}, useSearchForm: o, testId: e } = a(n), r = u(i(c), ["tableRowId"]);
51
52
  return {
52
53
  useSearchForm: o || !1,
53
54
  // 数据由 TableForm 单独绑定,不进入表格配置。
54
55
  ...u(t, ["data"]),
55
- ...e,
56
+ ...r,
56
57
  // 继承外层的 testId,如果 table.testId 未设置则使用外层的 testId
57
- testId: (t == null ? void 0 : t.testId) || r,
58
+ testId: (t == null ? void 0 : t.testId) || e,
58
59
  beforeFetch: d
59
60
  };
60
61
  });
@@ -66,5 +67,5 @@ function q(n, p, h, l) {
66
67
  };
67
68
  }
68
69
  export {
69
- q as useTableForm
70
+ v as useTableForm
70
71
  };
@@ -8,6 +8,7 @@ import "xe-utils";
8
8
  import "dayjs/plugin/utc";
9
9
  import "dayjs/plugin/timezone";
10
10
  import "../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
11
+ import "../../../packages/utils/src/stateHandler.js";
11
12
  import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
12
13
  import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
13
14
  import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
@@ -146,7 +147,7 @@ const a = {
146
147
  },
147
148
  /** 是否显示表格上方 alert */
148
149
  showTableAlert: { type: Boolean, default: () => e("showTableAlert") }
149
- }, x = {
150
+ }, T = {
150
151
  /** 公共导出弹框配置,复用弹框的业务编码与异步导出回调。 */
151
152
  customExportConfig: {
152
153
  type: Object
@@ -244,7 +245,7 @@ const a = {
244
245
  type: Object,
245
246
  default: () => e("radioConfig")
246
247
  }
247
- }, T = {
248
+ }, j = {
248
249
  /**
249
250
  * table参数
250
251
  *
@@ -294,7 +295,7 @@ const a = {
294
295
  tableFormApi: {
295
296
  type: Object
296
297
  }
297
- }, j = {
298
+ }, A = {
298
299
  /** 列配置 */
299
300
  columns: {
300
301
  type: Array,
@@ -354,7 +355,7 @@ const a = {
354
355
  ...i
355
356
  };
356
357
  export {
357
- T as tableFormProps,
358
- j as tableOtherProps,
359
- x as tableProps
358
+ j as tableFormProps,
359
+ A as tableOtherProps,
360
+ T as tableProps
360
361
  };
@@ -8,13 +8,14 @@ import u from "xe-utils";
8
8
  import "dayjs/plugin/utc";
9
9
  import "dayjs/plugin/timezone";
10
10
  import "../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
11
+ import "../../../packages/utils/src/stateHandler.js";
11
12
  import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
12
13
  import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
13
14
  import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
14
15
  import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
15
16
  import "lodash-es";
16
- import { basicTableEmits as d } from "./emits.js";
17
- const p = /* @__PURE__ */ new Set([
17
+ import { basicTableEmits as p } from "./emits.js";
18
+ const d = /* @__PURE__ */ new Set([
18
19
  "update:data",
19
20
  "cell-delete-value",
20
21
  "cell-backspace-value",
@@ -40,7 +41,7 @@ const p = /* @__PURE__ */ new Set([
40
41
  "filter-change",
41
42
  "clear-filter",
42
43
  "clear-all-filter"
43
- ]), m = /* @__PURE__ */ new Set(["insert", "insert_edit", "insert_actived", "remove"]), w = /* @__PURE__ */ new Set(["undo", "redo"]), $ = d.map((t) => [t, u.camelCase(t)]);
44
+ ]), m = /* @__PURE__ */ new Set(["insert", "insert_edit", "insert_actived", "remove"]), w = /* @__PURE__ */ new Set(["undo", "redo"]), B = p.map((t) => [t, u.camelCase(t)]);
44
45
  function b(t) {
45
46
  var r, o;
46
47
  const e = t[0];
@@ -54,18 +55,18 @@ function g(t, e) {
54
55
  const a = e();
55
56
  return (c(a) ? !a.length : !a) ? !1 : !((l = (n = (i = r == null ? void 0 : r.$grid) == null ? void 0 : i.getCheckboxRecords) == null ? void 0 : n.call(i)) != null && l.length);
56
57
  }
57
- function B(t, e, r) {
58
- return p.has(t) ? !0 : t === "edit-activated" ? b(e) : t === "toolbar-button-click" ? g(e, r) : !1;
58
+ function U(t, e, r) {
59
+ return d.has(t) ? !0 : t === "edit-activated" ? b(e) : t === "toolbar-button-click" ? g(e, r) : !1;
59
60
  }
60
- function U(t) {
61
+ function X(t) {
61
62
  return f.has(t);
62
63
  }
63
- function X(t) {
64
+ function j(t) {
64
65
  return w.has(t) ? "visible" : "full";
65
66
  }
66
67
  export {
67
- $ as forwardedEventEntries,
68
- X as getMutationCommitSource,
69
- U as isDisplayOnlyEvent,
70
- B as isRowDataMutationEvent
68
+ B as forwardedEventEntries,
69
+ j as getMutationCommitSource,
70
+ X as isDisplayOnlyEvent,
71
+ U as isRowDataMutationEvent
71
72
  };
@@ -8,6 +8,7 @@ import "xe-utils";
8
8
  import "dayjs/plugin/utc";
9
9
  import "dayjs/plugin/timezone";
10
10
  import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
11
+ import "../../../../packages/utils/src/stateHandler.js";
11
12
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
12
13
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
13
14
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
@@ -24,8 +25,8 @@ function p() {
24
25
  }), r.forEach((n) => {
25
26
  n.forEach((e) => {
26
27
  const s = e.sort((t, o) => {
27
- const i = t.closest(".vxe-table"), c = o.closest(".vxe-table"), l = i != null && i.classList.contains("is--fixed-right") ? 1 : 0, m = c != null && c.classList.contains("is--fixed-right") ? 1 : 0;
28
- return l !== m ? m - l : o.getBoundingClientRect().left - t.getBoundingClientRect().left;
28
+ const i = t.closest(".vxe-table"), c = o.closest(".vxe-table"), m = i != null && i.classList.contains("is--fixed-right") ? 1 : 0, l = c != null && c.classList.contains("is--fixed-right") ? 1 : 0;
29
+ return m !== l ? l - m : o.getBoundingClientRect().left - t.getBoundingClientRect().left;
29
30
  })[0];
30
31
  e.forEach((t) => {
31
32
  t.querySelectorAll("[data-table-action-button]").forEach((o) => {
@@ -35,7 +36,7 @@ function p() {
35
36
  });
36
37
  });
37
38
  }
38
- function I() {
39
+ function M() {
39
40
  if (d(a)) {
40
41
  if (f || !window.requestAnimationFrame) {
41
42
  p();
@@ -47,5 +48,5 @@ function I() {
47
48
  }
48
49
  }
49
50
  export {
50
- I as scheduleNormalizeActionTabIndex
51
+ M as scheduleNormalizeActionTabIndex
51
52
  };
@@ -8,24 +8,25 @@ import "xe-utils";
8
8
  import "dayjs/plugin/utc";
9
9
  import "dayjs/plugin/timezone";
10
10
  import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
11
+ import "../../../../packages/utils/src/stateHandler.js";
11
12
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
12
13
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
13
14
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
14
15
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
15
16
  import "lodash-es";
16
- function f(t, r) {
17
- const e = m(t) && !r ? `${t}Context` : r, n = Symbol(e);
17
+ function f(t, n) {
18
+ const e = m(t) && !n ? `${t}Context` : n, r = Symbol(e);
18
19
  return [(o) => {
19
- const i = s(n, o);
20
+ const i = s(r, o);
20
21
  if (i || i === null) return i;
21
22
  throw new Error(
22
- `Injection \`${n.toString()}\` not found. Component must be used within ${p(t) ? `one of the following components: ${t.join(", ")}` : `\`${t}\``}`
23
+ `Injection \`${r.toString()}\` not found. Component must be used within ${p(t) ? `one of the following components: ${t.join(", ")}` : `\`${t}\``}`
23
24
  );
24
- }, (o) => (c(n, o), o)];
25
+ }, (o) => (c(r, o), o)];
25
26
  }
26
- const [D, E] = f("FormActionTestIds");
27
+ const [E, K] = f("FormActionTestIds");
27
28
  export {
28
29
  f as createContext,
29
- D as injectFormActionTestIds,
30
- E as provideFormActionTestIds
30
+ E as injectFormActionTestIds,
31
+ K as provideFormActionTestIds
31
32
  };
@@ -8,14 +8,15 @@ import "xe-utils";
8
8
  import "dayjs/plugin/utc";
9
9
  import "dayjs/plugin/timezone";
10
10
  import "../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
11
+ import "../../packages/utils/src/stateHandler.js";
11
12
  import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
12
13
  import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
13
14
  import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
14
15
  import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
15
16
  import "lodash-es";
16
17
  import o from "./index.vue.js";
17
- const w = t(o);
18
+ const C = t(o);
18
19
  export {
19
- w as TtText,
20
- w as default
20
+ C as TtText,
21
+ C as default
21
22
  };