@dazhicheng/ui 1.5.202 → 1.5.204

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 (149) hide show
  1. package/dist/_virtual/___vite-browser-external.js +6 -0
  2. package/dist/_virtual/__vite-browser-external.js +4 -0
  3. package/dist/_virtual/_commonjs-dynamic-modules.js +6 -0
  4. package/dist/_virtual/_commonjsHelpers.js +24 -0
  5. package/dist/_virtual/aes.js +4 -0
  6. package/dist/_virtual/cipher-core.js +4 -0
  7. package/dist/_virtual/core.js +4 -0
  8. package/dist/_virtual/enc-base64.js +4 -0
  9. package/dist/_virtual/enc-utf8.js +4 -0
  10. package/dist/_virtual/evpkdf.js +4 -0
  11. package/dist/_virtual/hmac.js +4 -0
  12. package/dist/_virtual/md5.js +4 -0
  13. package/dist/_virtual/mode-ecb.js +4 -0
  14. package/dist/_virtual/pad-pkcs7.js +4 -0
  15. package/dist/_virtual/sha1.js +4 -0
  16. package/dist/components/tt-api-component/index.js +17 -4
  17. package/dist/components/tt-api-component/index.vue2.js +24 -13
  18. package/dist/components/tt-area/TtArea.vue3.js +24 -13
  19. package/dist/components/tt-button/index.js +18 -5
  20. package/dist/components/tt-button/index.vue2.js +27 -16
  21. package/dist/components/tt-checkbox/index.js +17 -4
  22. package/dist/components/tt-checkbox/index.vue.js +38 -28
  23. package/dist/components/tt-drawer/index.js +17 -7
  24. package/dist/components/tt-drawer/src/RenderDrawer.vue.js +48 -36
  25. package/dist/components/tt-drawer/src/components/DrawerFooter.vue.js +39 -26
  26. package/dist/components/tt-drawer/src/components/DrawerHeader.vue2.js +23 -10
  27. package/dist/components/tt-drawer/src/props.js +22 -9
  28. package/dist/components/tt-drawer/src/utils/drawer-api.js +42 -33
  29. package/dist/components/tt-empty/index.js +28 -18
  30. package/dist/components/tt-form/index.js +22 -14
  31. package/dist/components/tt-form/src/components/ExpandableArrow.vue2.js +23 -14
  32. package/dist/components/tt-form/src/components/FormActions.vue2.js +42 -32
  33. package/dist/components/tt-form/src/form/FormDescription.vue.js +19 -10
  34. package/dist/components/tt-form/src/form/FormItem.vue.js +18 -9
  35. package/dist/components/tt-form/src/form/FormLabel.vue.js +18 -9
  36. package/dist/components/tt-form/src/form/RenderContent.vue.js +25 -13
  37. package/dist/components/tt-form/src/form-render/FormField.vue2.js +62 -55
  38. package/dist/components/tt-form/src/form-render/FormLabel.vue2.js +36 -28
  39. package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.js +64 -56
  40. package/dist/components/tt-form/src/form-render/array-register/utils.js +18 -8
  41. package/dist/components/tt-form/src/form-render/dependencies.js +36 -24
  42. package/dist/components/tt-form/src/form-render/form.vue2.js +17 -7
  43. package/dist/components/tt-form/src/form-render/helper.js +29 -16
  44. package/dist/components/tt-form/src/form-render/rootWrapperClass.js +17 -7
  45. package/dist/components/tt-form/src/formApi.js +59 -48
  46. package/dist/components/tt-form/src/group-form/GroupForm.vue2.js +17 -4
  47. package/dist/components/tt-form/src/group-form/GroupSection.vue2.js +67 -57
  48. package/dist/components/tt-form/src/group-form/LazyFormField.vue.js +55 -46
  49. package/dist/components/tt-form/src/group-form/groupFormApi.js +21 -10
  50. package/dist/components/tt-form/src/hooks/useForwardPriorityValues.js +27 -17
  51. package/dist/components/tt-form/src/hooks/useSelectCollapse.js +32 -23
  52. package/dist/components/tt-form/src/index.vue2.js +53 -45
  53. package/dist/components/tt-form/src/useFormContext.js +74 -62
  54. package/dist/components/tt-form-item-error-tooltip/index.js +18 -5
  55. package/dist/components/tt-form-item-error-tooltip/index.vue.js +32 -21
  56. package/dist/components/tt-icon/index.js +20 -7
  57. package/dist/components/tt-image/index.js +19 -6
  58. package/dist/components/tt-image/src/components/ImageViewer.js +27 -17
  59. package/dist/components/tt-loading/index.js +16 -4
  60. package/dist/components/tt-loading/src/directive.js +34 -22
  61. package/dist/components/tt-log/index.js +17 -4
  62. package/dist/components/tt-log/index.vue.js +21 -8
  63. package/dist/components/tt-modal/index.js +16 -5
  64. package/dist/components/tt-modal/src/RenderModal.vue.js +163 -151
  65. package/dist/components/tt-modal/src/components/ModalFooter.vue2.js +38 -28
  66. package/dist/components/tt-modal/src/components/ModalHeader.vue2.js +24 -11
  67. package/dist/components/tt-modal/src/components/ModalWrapper.vue.js +36 -23
  68. package/dist/components/tt-modal/src/props.js +22 -9
  69. package/dist/components/tt-modal/src/utils/modal-api.js +39 -29
  70. package/dist/components/tt-modal-form/index.vue.js +44 -36
  71. package/dist/components/tt-nav-anchor/index.js +17 -4
  72. package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue.js +69 -57
  73. package/dist/components/tt-panel-select/index.js +17 -4
  74. package/dist/components/tt-panel-select/src/hooks/usePanelData.js +51 -40
  75. package/dist/components/tt-panel-select/src/index.vue.js +35 -24
  76. package/dist/components/tt-select/index.js +17 -4
  77. package/dist/components/tt-select/src/Select.vue.js +79 -68
  78. package/dist/components/tt-select/src/components/SelectTable.vue.js +41 -30
  79. package/dist/components/tt-select/src/components/Table.vue.js +86 -76
  80. package/dist/components/tt-select/src/hooks/useDataSource.js +59 -49
  81. package/dist/components/tt-select/src/hooks/useSelect.js +46 -38
  82. package/dist/components/tt-select/src/hooks/useSelectTableEvent.js +123 -112
  83. package/dist/components/tt-table/index.js +19 -12
  84. package/dist/components/tt-table/src/Table.vue.js +82 -71
  85. package/dist/components/tt-table/src/TableForm.vue.js +77 -65
  86. package/dist/components/tt-table/src/components/TableAction.vue.js +49 -39
  87. package/dist/components/tt-table/src/components/TableButtons.js +73 -60
  88. package/dist/components/tt-table/src/components/TableColumnModal.vue2.js +14 -3
  89. package/dist/components/tt-table/src/components/TableToobalTools.vue.js +36 -25
  90. package/dist/components/tt-table/src/hooks/useColumns.js +72 -65
  91. package/dist/components/tt-table/src/hooks/useCustomColumns.js +43 -31
  92. package/dist/components/tt-table/src/hooks/useDataSource.js +50 -42
  93. package/dist/components/tt-table/src/hooks/usePagination.js +36 -25
  94. package/dist/components/tt-table/src/props.js +55 -42
  95. package/dist/components/tt-table/src/utils/table-api.js +33 -22
  96. package/dist/components/tt-table/src/utils/table-form-api.js +35 -24
  97. package/dist/components/tt-text/index.js +17 -4
  98. package/dist/components/tt-upload/index.js +19 -6
  99. package/dist/components/tt-upload/src/TtUpload.vue.js +77 -66
  100. package/dist/directives/disabled-tip/index.js +37 -26
  101. package/dist/hooks/useFormSchemasLink.js +90 -79
  102. package/dist/hooks/useScreenshotOss.js +49 -35
  103. package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +17 -0
  104. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js +64 -0
  105. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/cipher-core.js +545 -0
  106. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/core.js +508 -0
  107. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64.js +81 -0
  108. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js +10 -0
  109. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/evpkdf.js +71 -0
  110. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/hmac.js +84 -0
  111. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/md5.js +72 -0
  112. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js +22 -0
  113. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js +11 -0
  114. package/dist/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha1.js +50 -0
  115. package/dist/node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js +1024 -0
  116. package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.js +32 -0
  117. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/apply-style.js +11 -0
  118. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/clone-node.js +92 -0
  119. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/clone-pseudos.js +34 -0
  120. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/dataurl.js +52 -0
  121. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/embed-images.js +43 -0
  122. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/embed-resources.js +47 -0
  123. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/embed-webfonts.js +122 -0
  124. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/index.js +30 -0
  125. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/mimes.js +24 -0
  126. package/dist/node_modules/.pnpm/html-to-image@1.11.13/node_modules/html-to-image/es/util.js +106 -0
  127. package/dist/node_modules/.pnpm/is-plain-object@5.0.0/node_modules/is-plain-object/dist/is-plain-object.js +16 -0
  128. package/dist/node_modules/.pnpm/klona@2.0.6/node_modules/klona/full/index.js +21 -0
  129. package/dist/node_modules/.pnpm/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.js +2922 -0
  130. package/dist/node_modules/.pnpm/vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js +93 -0
  131. package/dist/packages/hooks/src/propTypes.js +17 -0
  132. package/dist/packages/hooks/src/tools.js +6 -0
  133. package/dist/packages/hooks/src/useDebounce.js +32 -0
  134. package/dist/packages/hooks/src/useDesign.js +12 -0
  135. package/dist/packages/hooks/src/useElementScreenshot.js +136 -0
  136. package/dist/packages/hooks/src/useIsScroll.js +12 -0
  137. package/dist/packages/hooks/src/usePriorityValue.js +45 -0
  138. package/dist/packages/utils/src/calc.js +14 -0
  139. package/dist/packages/utils/src/check.js +10 -0
  140. package/dist/packages/utils/src/install.js +11 -0
  141. package/dist/packages/utils/src/is.js +64 -0
  142. package/dist/packages/utils/src/merge.js +13 -0
  143. package/dist/packages/utils/src/stateHandler.js +33 -0
  144. package/dist/packages/utils/src/string.js +6 -0
  145. package/dist/packages/utils/src/testid-helper.js +14 -0
  146. package/dist/packages/utils/src/tool.js +181 -0
  147. package/dist/plugins/default/renderCellContent.js +39 -28
  148. package/dist/plugins/vxeTable/switchStatus.js +37 -26
  149. package/package.json +3 -3
@@ -1,23 +1,34 @@
1
- import { defineComponent as Ne, useAttrs as Re, ref as g, useSlots as Ae, computed as i, unref as l, watch as Be, createElementBlock as ae, openBlock as x, mergeProps as h, createBlock as We, createCommentVNode as Ke, resolveDynamicComponent as ze, createSlots as I, withCtx as c, renderSlot as p, normalizeProps as P, guardReactiveProps as y, createElementVNode as He, normalizeClass as ne, toDisplayString as _e, renderList as O, createVNode as u, toHandlers as ie, withModifiers as Ge, withDirectives as Ue, resolveComponent as qe, toValue as Je, isRef as Qe, isReactive as Xe } from "vue";
1
+ import { defineComponent as Ne, useAttrs as Re, ref as g, useSlots as Ae, computed as a, unref as l, watch as Be, createElementBlock as ie, openBlock as x, mergeProps as h, createBlock as We, createCommentVNode as Ke, resolveDynamicComponent as ze, createSlots as I, withCtx as c, renderSlot as p, normalizeProps as P, guardReactiveProps as y, createElementVNode as He, normalizeClass as re, toDisplayString as _e, renderList as O, createVNode as u, toHandlers as ae, withModifiers as Ge, withDirectives as Ue, resolveComponent as qe, toValue as Je, isRef as Qe, isReactive as Xe } from "vue";
2
2
  import Ye from "./components/Table.vue.js";
3
3
  /* empty css */
4
- import { useDesign as Ze } from "@dazhicheng/hooks";
5
- import { useLoading as et } from "../../../hooks/useLoading.js";
6
- import { isArray as re, isObject as tt, isEmpty as ot } from "@dazhicheng/utils";
7
- import { CopyDocument as lt } from "@element-plus/icons-vue";
8
- import { ElIcon as st, ElSelect as at } from "element-plus";
9
- import nt from "../../../directives/disabled-tip/index.js";
10
- import { useTableSlot as it } from "../../../hooks/useTable.js";
11
- import { useResizeObserver as rt } from "@vueuse/core";
12
- import { omit as ct, pick as dt, cloneDeep as j, isEqual as pt } from "lodash-es";
4
+ import "../../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js";
5
+ import { useDesign as Ze } from "../../../packages/hooks/src/useDesign.js";
6
+ import "axios";
7
+ import { ElIcon as et, ElSelect as tt } from "element-plus";
8
+ import { isArray as ne, isObject as ot, isEmpty as lt } from "../../../packages/utils/src/is.js";
9
+ import "xe-utils";
10
+ import "dayjs";
11
+ import "dayjs/plugin/utc";
12
+ import "dayjs/plugin/timezone";
13
+ import "../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
14
+ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
15
+ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
16
+ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
17
+ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
18
+ import { omit as st, pick as it, cloneDeep as j, isEqual as rt } from "lodash-es";
19
+ import { useLoading as at } from "../../../hooks/useLoading.js";
20
+ import { CopyDocument as nt } from "@element-plus/icons-vue";
21
+ import ct from "../../../directives/disabled-tip/index.js";
22
+ import { useTableSlot as dt } from "../../../hooks/useTable.js";
23
+ import { useResizeObserver as pt } from "@vueuse/core";
13
24
  import ut from "./components/SelectTable.vue.js";
14
25
  /* empty css */
15
- import { useDataSource as ft } from "./hooks/useDataSource.js";
16
- import { usePagination as mt } from "./hooks/usePagination.js";
26
+ import { useDataSource as mt } from "./hooks/useDataSource.js";
27
+ import { usePagination as ft } from "./hooks/usePagination.js";
17
28
  import { useSelect as gt } from "./hooks/useSelect.js";
18
29
  import { useSelectTableEvent as vt } from "./hooks/useSelectTableEvent.js";
19
30
  import { selectProps as bt, configDefault as ht } from "./props.js";
20
- const Pt = ["title"], At = /* @__PURE__ */ Ne({
31
+ const Pt = ["title"], Qt = /* @__PURE__ */ Ne({
21
32
  name: "TtSelect",
22
33
  inheritAttrs: !1,
23
34
  __name: "Select",
@@ -28,26 +39,26 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
28
39
  emit: pe
29
40
  }) {
30
41
  var X, Y, Z, ee;
31
- const t = ce, f = pe, S = Re(), m = g(null), v = g(), r = g((X = t.selectProps) != null && X.multiple ? [] : void 0), a = g(void 0), C = g(!1), {
42
+ const t = ce, m = pe, S = Re(), f = g(null), v = g(), n = g((X = t.selectProps) != null && X.multiple ? [] : void 0), i = g(void 0), C = g(!1), {
32
43
  prefixCls: w
33
44
  } = Ze("select-v2"), ue = Ae(), {
34
45
  getTableSlotKeys: M,
35
46
  replaceTableSlotKey: N
36
- } = it(ue), {
47
+ } = dt(ue), {
37
48
  getLoading: V,
38
- setLoading: fe
39
- } = et(i(() => t.loading || !1)), R = i(() => {
49
+ setLoading: me
50
+ } = at(a(() => t.loading || !1)), R = a(() => {
40
51
  var e;
41
52
  return (((e = t.gridProps) == null ? void 0 : e.columns) || []).map((o) => o.field || "");
42
53
  }), {
43
- setShowPager: me,
54
+ setShowPager: fe,
44
55
  showPager: k,
45
56
  getPaginationInfo: A,
46
57
  setPagination: b,
47
58
  getPagination: E,
48
59
  hasNextPage: B,
49
60
  setHasNextPage: ge
50
- } = mt(), {
61
+ } = ft(), {
51
62
  options: $,
52
63
  reload: W,
53
64
  isLoaded: ve,
@@ -61,13 +72,13 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
61
72
  searchValue: Ce,
62
73
  getImmediate: we,
63
74
  updateOptionsDisabled: Ve
64
- } = ft(i(() => ({
75
+ } = mt(a(() => ({
65
76
  ...ht,
66
77
  ...t.configProps
67
78
  })), {
68
- setLoading: fe,
79
+ setLoading: me,
69
80
  getPaginationInfo: A,
70
- setShowPager: me,
81
+ setShowPager: fe,
71
82
  setPagination: b,
72
83
  getPagination: E,
73
84
  setSelectValue: q,
@@ -76,17 +87,17 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
76
87
  columnsFields: l(R),
77
88
  setHasNextPage: ge,
78
89
  getSelectEvent: () => D,
79
- extra: i(() => t.extra),
80
- selectValue: r,
90
+ extra: a(() => t.extra),
91
+ selectValue: n,
81
92
  renderType: t.renderType,
82
- multipleLimit: i(() => t.selectProps.multipleLimit)
83
- }, f), ke = i(() => {
93
+ multipleLimit: a(() => t.selectProps.multipleLimit)
94
+ }, m), ke = a(() => {
84
95
  if (S.disabled !== void 0)
85
96
  return !!S.disabled;
86
97
  if (t.disabled || t.configProps.disabled)
87
98
  return !0;
88
99
  const e = t.disabledTip;
89
- return re(e) && e.length > 0 ? e.some((o) => !!(o != null && o.condition)) : tt(e) ? !!e.condition : !1;
100
+ return ne(e) && e.length > 0 ? e.some((o) => !!(o != null && o.condition)) : ot(e) ? !!e.condition : !1;
90
101
  }), {
91
102
  getOtherSelectProps: Ee,
92
103
  calcMaxCollapseTags: H,
@@ -95,10 +106,10 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
95
106
  showPopup: De,
96
107
  setShowPopup: Fe,
97
108
  getSelectWidth: Te
98
- } = gt(i(() => t.selectProps), {
109
+ } = gt(a(() => t.selectProps), {
99
110
  collapse: t.configProps.collapse,
100
- selectOption: a,
101
- selectRef: m,
111
+ selectOption: i,
112
+ selectRef: f,
102
113
  disabled: ke,
103
114
  autoSelectWidth: t.configProps.autoSelectWidth,
104
115
  showPager: k,
@@ -117,12 +128,12 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
117
128
  selectEvent: D,
118
129
  keyboardEvent: U,
119
130
  defaultDataSelect: Le
120
- } = vt(i(() => t), {
131
+ } = vt(a(() => t), {
121
132
  tableRef: v,
122
- selectRef: m,
133
+ selectRef: f,
123
134
  options: $,
124
- selectValue: r,
125
- selectOption: a,
135
+ selectValue: n,
136
+ selectOption: i,
126
137
  setSelectValue: q,
127
138
  multiple: ((Z = t.selectProps) == null ? void 0 : Z.multiple) || !1,
128
139
  reload: W,
@@ -147,16 +158,16 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
147
158
  persistent: ((ee = t.selectProps) == null ? void 0 : ee.persistent) || !1,
148
159
  updateOptionsDisabled: Ve,
149
160
  getIsSelectFirstOption: ye
150
- }, f), F = i(() => ({
161
+ }, m), F = a(() => ({
151
162
  popperClass: `${w}-popper vxe-table--ignore-clear`,
152
163
  valueKey: "value",
153
164
  placement: "bottom-end",
154
165
  clearable: !0,
155
166
  persistent: !1,
156
- ...ct(t.selectProps, ["allowCreate"]),
167
+ ...st(t.selectProps, ["allowCreate"]),
157
168
  ...l(Ee),
158
169
  loading: l(V)
159
- })), T = i(() => {
170
+ })), T = a(() => {
160
171
  var o;
161
172
  return {
162
173
  grid: t.gridProps ?? {},
@@ -166,7 +177,7 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
166
177
  pagination: l(A),
167
178
  multiple: t.selectProps.multiple,
168
179
  disableFn: t.configProps.disableFn,
169
- selectValue: l(r),
180
+ selectValue: l(n),
170
181
  selectWidth: l(_),
171
182
  deleteField: t.configProps.deleteField,
172
183
  hasNextPage: l(B),
@@ -178,8 +189,8 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
178
189
  };
179
190
  });
180
191
  function q(e, o, s = !0) {
181
- const n = j(r.value);
182
- a.value = o, r.value = j(e), !(pt(j(e), n) || !s) && (f("update:modelValue", r.value), f("change", r.value, a.value), f("select-change", r.value, a.value), Ie());
192
+ const r = j(n.value);
193
+ i.value = o, n.value = j(e), !(rt(j(e), r) || !s) && (m("update:modelValue", n.value), m("change", n.value, i.value), m("select-change", n.value, i.value), Ie());
183
194
  }
184
195
  function xe() {
185
196
  return Object.keys(D).reduce((e, o) => (e[`on${o.charAt(0).toUpperCase()}${o.slice(1)}`] = D[o], e), {});
@@ -187,25 +198,25 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
187
198
  function Ie() {
188
199
  var e;
189
200
  if (t.configProps.bindFields && t.configProps.model) {
190
- const o = (e = t.configProps.bindFields) == null ? void 0 : e.reduce((n, te) => {
201
+ const o = (e = t.configProps.bindFields) == null ? void 0 : e.reduce((r, te) => {
191
202
  var oe;
192
203
  if (te) {
193
- const [L, le] = te.split("|"), d = Je(a);
194
- n[L || ""] = t.selectProps.multiple ? d == null ? void 0 : d.map((Me) => {
204
+ const [L, le] = te.split("|"), d = Je(i);
205
+ r[L || ""] = t.selectProps.multiple ? d == null ? void 0 : d.map((Me) => {
195
206
  var se;
196
207
  return (se = Me.item) == null ? void 0 : se[le || L || ""];
197
208
  }) : (oe = d == null ? void 0 : d.item) == null ? void 0 : oe[le || L || ""];
198
209
  }
199
- return n;
210
+ return r;
200
211
  }, {}), s = t.configProps.model;
201
212
  Qe(s) ? Object.assign(s.value, o) : (Xe(s), Object.assign(s, o));
202
213
  }
203
214
  }
204
215
  function Oe() {
205
- return Ue(u(at, h({
206
- ref: m,
207
- modelValue: a.value,
208
- "onUpdate:modelValue": (e) => a.value = e,
216
+ return Ue(u(tt, h({
217
+ ref: f,
218
+ modelValue: i.value,
219
+ "onUpdate:modelValue": (e) => i.value = e,
209
220
  class: {
210
221
  "is-not-border": !t.border
211
222
  },
@@ -214,13 +225,13 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
214
225
  }
215
226
  }, l(F), xe()), {
216
227
  default: () => [u(qe("slot"), null, null)]
217
- }), [[nt, t.disabledTip]]);
228
+ }), [[ct, t.disabledTip]]);
218
229
  }
219
- Be(() => a.value, () => {
230
+ Be(() => i.value, () => {
220
231
  H();
221
232
  }, {
222
233
  deep: !0
223
- }), rt(m, () => {
234
+ }), pt(f, () => {
224
235
  H(), _.value = Te();
225
236
  });
226
237
  function J(e) {
@@ -236,9 +247,9 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
236
247
  }) : J(e);
237
248
  }
238
249
  function je() {
239
- if (!ot(a.value)) {
240
- const e = a.value;
241
- if (re(e)) {
250
+ if (!lt(i.value)) {
251
+ const e = i.value;
252
+ if (ne(e)) {
242
253
  const o = e.map((s) => s.label).join(",");
243
254
  Q(o);
244
255
  } else
@@ -246,7 +257,7 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
246
257
  }
247
258
  }
248
259
  return de({
249
- getSelectInstance: () => m.value,
260
+ getSelectInstance: () => f.value,
250
261
  getTableInstance: () => {
251
262
  var e;
252
263
  return ((e = l(v)) == null ? void 0 : e.getGridInstance()) ?? void 0;
@@ -255,15 +266,15 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
255
266
  getGridProps: T,
256
267
  setModelValue: Le,
257
268
  setPagination: b,
258
- getSelectOption: () => a.value
259
- }), (e, o) => (x(), ae("div", h(l(dt)(l(S), ["data-component-config", "data-testid", "data-validation-rules"]), {
269
+ getSelectOption: () => i.value
270
+ }), (e, o) => (x(), ie("div", h(l(it)(l(S), ["data-component-config", "data-testid", "data-validation-rules"]), {
260
271
  class: [[l(w), e.$attrs.class], "w-full line-height-normal"],
261
272
  onMouseenter: o[1] || (o[1] = (s) => C.value = !0),
262
273
  onMouseleave: o[2] || (o[2] = (s) => C.value = !1)
263
274
  }), [(x(), We(ze(Oe()), null, I({
264
275
  label: c((s) => [p(e.$slots, "label", P(y(s)), () => [He("span", {
265
276
  title: s.label,
266
- class: ne({
277
+ class: re({
267
278
  "line-through": s.value.isDelete
268
279
  })
269
280
  }, _e(s.label), 11, Pt)])]),
@@ -273,11 +284,11 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
273
284
  fn: c(() => [p(e.$slots, "empty", {}, () => [u(ut, h({
274
285
  ref_key: "tableRef",
275
286
  ref: v
276
- }, T.value, ie(l(G))), I({
287
+ }, T.value, ae(l(G))), I({
277
288
  _: 2
278
289
  }, [O(l(M), (s) => ({
279
290
  name: l(N)(s),
280
- fn: c((n) => [p(e.$slots, s, P(y(n || {})))])
291
+ fn: c((r) => [p(e.$slots, s, P(y(r || {})))])
281
292
  }))]), 1040)])]),
282
293
  key: "0"
283
294
  } : e.renderType === "table" ? {
@@ -287,29 +298,29 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
287
298
  ref: v
288
299
  }, T.value, {
289
300
  "config-props": e.configProps
290
- }, ie(l(G))), I({
301
+ }, ae(l(G))), I({
291
302
  _: 2
292
303
  }, [O(l(M), (s) => ({
293
304
  name: l(N)(s),
294
- fn: c((n) => [p(e.$slots, s, P(y(n || {})))])
305
+ fn: c((r) => [p(e.$slots, s, P(y(r || {})))])
295
306
  }))]), 1040, ["config-props"])])]),
296
307
  key: "1"
297
308
  } : void 0, O(Object.keys(e.$slots), (s) => ({
298
309
  name: s,
299
- fn: c((n) => [p(e.$slots, s, P(y(n || {})))])
300
- }))]), 1024)), t.configProps.isCopy && a.value ? (x(), ae("div", {
310
+ fn: c((r) => [p(e.$slots, s, P(y(r || {})))])
311
+ }))]), 1024)), t.configProps.isCopy && i.value ? (x(), ie("div", {
301
312
  key: 0,
302
- class: ne([`${l(w)}__copy`, C.value ? "is-show" : "is-hidden"]),
313
+ class: re([`${l(w)}__copy`, C.value ? "is-show" : "is-hidden"]),
303
314
  title: "复制",
304
315
  onMousedown: o[0] || (o[0] = Ge(() => {
305
316
  }, ["stop"])),
306
317
  onClick: je
307
- }, [u(l(st), null, {
308
- default: c(() => [u(l(lt))]),
318
+ }, [u(l(et), null, {
319
+ default: c(() => [u(l(nt))]),
309
320
  _: 1
310
321
  })], 34)) : Ke("", !0)], 16));
311
322
  }
312
323
  });
313
324
  export {
314
- At as default
325
+ Qt as default
315
326
  };
@@ -1,22 +1,33 @@
1
- import { defineComponent as C, useSlots as y, computed as s, unref as r, withDirectives as I, createElementBlock as b, openBlock as P, normalizeClass as R, createVNode as a, mergeProps as S, toHandlers as T, createSlots as k, withCtx as c, createElementVNode as D, renderList as V, renderSlot as z, normalizeProps as N, guardReactiveProps as O } from "vue";
2
- import { useDesign as j } from "@dazhicheng/hooks";
3
- import { TtEmpty as B } from "../../../tt-empty/index.js";
4
- import { vLoading as L } from "element-plus";
5
- import { VxeGrid as M } from "vxe-table";
6
- import { tableEmits as d } from "vxe-table/es/table/src/emits";
7
- import X from "xe-utils";
1
+ import { defineComponent as C, useSlots as y, computed as i, unref as r, withDirectives as I, createElementBlock as b, openBlock as P, normalizeClass as R, createVNode as p, mergeProps as S, toHandlers as T, createSlots as k, withCtx as a, createElementVNode as D, renderList as V, renderSlot as z, normalizeProps as N, guardReactiveProps as O } from "vue";
2
+ import "../../../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js";
3
+ import { useDesign as j } from "../../../../packages/hooks/src/useDesign.js";
4
+ import "axios";
5
+ import { vLoading as B } from "element-plus";
6
+ import "dayjs";
7
+ import L from "xe-utils";
8
+ import "dayjs/plugin/utc";
9
+ import "dayjs/plugin/timezone";
10
+ import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
11
+ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
12
+ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
13
+ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
14
+ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
15
+ import "lodash-es";
16
+ import { TtEmpty as M } from "../../../tt-empty/index.js";
17
+ import { VxeGrid as X } from "vxe-table";
18
+ import { tableEmits as c } from "vxe-table/es/table/src/emits";
8
19
  import { GRID_MIN_HEIGHT as A, GRID_MAX_HEIGHT as U } from "../const.js";
9
20
  import { useGrid as Y } from "../hooks/useGrid.js";
10
21
  import { selectTableProps as $ } from "../props.js";
11
- const q = { class: "flex flex-col items-center justify-center" }, se = /* @__PURE__ */ C({
22
+ const q = { class: "flex flex-col items-center justify-center" }, ge = /* @__PURE__ */ C({
12
23
  __name: "SelectTable",
13
24
  props: $,
14
- emits: d,
15
- setup(p, { expose: f, emit: u }) {
16
- const e = p, g = u, h = y(), i = {}, { prefixCls: v } = j("select-v2-grid"), { getColumns: w, rowStyle: _, gridRef: n, getOtherGridConfig: x } = Y(
17
- s(() => e.grid),
18
- s(() => e)
19
- ), l = s(() => {
25
+ emits: c,
26
+ setup(d, { expose: f, emit: u }) {
27
+ const e = d, g = u, h = y(), s = {}, { prefixCls: v } = j("select-v2-grid"), { getColumns: w, rowStyle: _, gridRef: m, getOtherGridConfig: x } = Y(
28
+ i(() => e.grid),
29
+ i(() => e)
30
+ ), n = i(() => {
20
31
  const t = x();
21
32
  return {
22
33
  maxHeight: U,
@@ -39,48 +50,48 @@ const q = { class: "flex flex-col items-center justify-center" }, se = /* @__PUR
39
50
  // autoResize: false,
40
51
  };
41
52
  });
42
- d.forEach((t) => {
43
- const m = X.camelCase(t);
44
- i[m] = (...o) => g(t, ...o);
53
+ c.forEach((t) => {
54
+ const l = L.camelCase(t);
55
+ s[l] = (...o) => g(t, ...o);
45
56
  });
46
- const G = s(() => ({
47
- ...i
57
+ const G = i(() => ({
58
+ ...s
48
59
  }));
49
60
  function H() {
50
- return r(n);
61
+ return r(m);
51
62
  }
52
63
  return f({
53
64
  getGridInstance: H
54
- }), (t, m) => I((P(), b("div", {
65
+ }), (t, l) => I((P(), b("div", {
55
66
  class: R(["w-full", {
56
67
  [r(v)]: !0,
57
- "pt-5px": !l.value.showHeader
68
+ "pt-5px": !n.value.showHeader
58
69
  }])
59
70
  }, [
60
- a(r(M), S({
71
+ p(r(X), S({
61
72
  ref_key: "gridRef",
62
- ref: n,
73
+ ref: m,
63
74
  class: "max-w-1000px min-w-100%"
64
- }, l.value, T(G.value)), k({
65
- empty: c(() => [
75
+ }, n.value, T(G.value)), k({
76
+ empty: a(() => [
66
77
  D("div", q, [
67
- a(r(B))
78
+ p(r(M))
68
79
  ])
69
80
  ]),
70
81
  _: 2
71
82
  }, [
72
83
  V(Object.keys(r(h)), (o) => ({
73
84
  name: o,
74
- fn: c((E) => [
85
+ fn: a((E) => [
75
86
  z(t.$slots, o, N(O(E)))
76
87
  ])
77
88
  }))
78
89
  ]), 1040)
79
90
  ], 2)), [
80
- [r(L), t.loading]
91
+ [r(B), t.loading]
81
92
  ]);
82
93
  }
83
94
  });
84
95
  export {
85
- se as default
96
+ ge as default
86
97
  };