@dazhicheng/ui 1.5.261 → 1.5.263

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 (48) hide show
  1. package/dist/components/tt-api-component/index.vue2.js +41 -40
  2. package/dist/components/tt-button/index.vue2.js +10 -9
  3. package/dist/components/tt-drawer/src/RenderDrawer.vue.js +16 -15
  4. package/dist/components/tt-drawer/src/components/DrawerFooter.vue.js +3 -2
  5. package/dist/components/tt-drawer/src/components/DrawerHeader.vue2.js +3 -2
  6. package/dist/components/tt-drawer/src/props.js +3 -2
  7. package/dist/components/tt-form/index.js +7 -6
  8. package/dist/components/tt-form/src/components/FormActions.vue2.js +3 -2
  9. package/dist/components/tt-form/src/form-render/form.vue2.js +3 -2
  10. package/dist/components/tt-form/src/group-form/GroupForm.vue2.js +3 -2
  11. package/dist/components/tt-form/src/group-form/GroupSection.vue2.js +26 -25
  12. package/dist/components/tt-form/src/group-form/LazyFormField.vue.js +3 -2
  13. package/dist/components/tt-form/src/hooks/useSelectCollapse.js +82 -64
  14. package/dist/components/tt-form/src/index.vue2.js +3 -2
  15. package/dist/components/tt-log/index.vue.js +5 -4
  16. package/dist/components/tt-modal/src/RenderModal.vue.js +3 -2
  17. package/dist/components/tt-modal/src/components/ModalHeader.vue2.js +7 -6
  18. package/dist/components/tt-modal/src/components/ModalWrapper.vue.js +3 -2
  19. package/dist/components/tt-modal/src/props.js +3 -2
  20. package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue.js +3 -2
  21. package/dist/components/tt-panel-select/src/components/PanelLeft.vue.js +29 -23
  22. package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.js +89 -81
  23. package/dist/components/tt-panel-select/src/components/PanelRight.vue.js +49 -43
  24. package/dist/components/tt-panel-select/src/hooks/usePanelData.js +56 -49
  25. package/dist/components/tt-panel-select/src/hooks/usePanelSelection.d.ts +3 -0
  26. package/dist/components/tt-panel-select/src/hooks/usePanelSelection.js +94 -61
  27. package/dist/components/tt-panel-select/src/index.vue.d.ts +1 -1
  28. package/dist/components/tt-panel-select/src/index.vue.js +205 -190
  29. package/dist/components/tt-radio-group/index.vue.js +11 -10
  30. package/dist/components/tt-select/src/Select.vue.js +3 -2
  31. package/dist/components/tt-select/src/components/SelectTable.vue.js +3 -2
  32. package/dist/components/tt-select/src/components/Table.vue.js +3 -2
  33. package/dist/components/tt-table/index.js +1 -1
  34. package/dist/components/tt-table/src/Table.vue.js +45 -44
  35. package/dist/components/tt-table/src/TableForm.vue.js +1 -1
  36. package/dist/components/tt-table/src/components/TableAction.vue.js +12 -11
  37. package/dist/components/tt-table/src/components/TableButtons.js +3 -2
  38. package/dist/components/tt-table/src/components/TableColumnModal.vue2.js +34 -33
  39. package/dist/components/tt-table/src/props.js +5 -4
  40. package/dist/components/tt-upload/src/TtUpload.vue.js +15 -14
  41. package/dist/hooks/basicDataCodes.d.ts +4 -1
  42. package/dist/hooks/basicDataCodes.js +35 -33
  43. package/dist/hooks/usePanelSelectSchemas.d.ts +3 -2
  44. package/dist/hooks/usePanelSelectSchemas.js +62 -62
  45. package/dist/hooks/useScreenshotOss.js +3 -2
  46. package/dist/plugins/vxeTable/switchStatus.js +3 -2
  47. package/dist/style.css +1 -1
  48. package/package.json +3 -3
@@ -1,8 +1,8 @@
1
- import { defineComponent as _e, mergeModels as K, useModel as We, computed as u, watch as V, ref as h, useTemplateRef as S, onMounted as De, unref as n, createElementBlock as U, openBlock as w, normalizeClass as z, createVNode as j, mergeProps as Ie, withCtx as Ke, withDirectives as Ue, normalizeStyle as ze, createBlock as q, createCommentVNode as H, nextTick as $ } from "vue";
1
+ import { defineComponent as ze, mergeModels as K, useModel as je, computed as s, watch as S, ref as h, useTemplateRef as V, unref as r, onMounted as qe, createElementBlock as U, openBlock as w, normalizeClass as z, createVNode as j, mergeProps as He, withCtx as Je, withDirectives as Qe, normalizeStyle as Xe, createBlock as q, createCommentVNode as H, nextTick as O } from "vue";
2
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 je } from "../../../packages/hooks/src/useDesign.js";
3
+ import { useDesign as Ye } from "../../../packages/hooks/src/useDesign.js";
4
4
  import "axios";
5
- import { ElSelect as qe, vLoading as He } from "element-plus";
5
+ import { ElSelect as Ze, vLoading as el } from "element-plus";
6
6
  import "dayjs";
7
7
  import "xe-utils";
8
8
  import "dayjs/plugin/utc";
@@ -12,17 +12,18 @@ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.j
12
12
  import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
13
13
  import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
14
14
  import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
15
- import { cloneDeep as J, isEqual as Je } from "lodash-es";
16
- import { useResizeObserver as Qe } from "@vueuse/core";
17
- import { useSelectCollapseOptions as Xe } from "../../tt-form/src/hooks/useSelectCollapse.js";
18
- import { ALL as Ye } from "./common.js";
19
- import Ze from "./components/PanelLeft.vue.js";
20
- import el from "./components/PanelMiddle.vue.js";
21
- import ll from "./components/PanelRight.vue.js";
22
- import { usePanelSelectData as tl } from "./hooks/usePanelData.js";
23
- import { usePanelSelectSelection as al } from "./hooks/usePanelSelection.js";
15
+ import "lodash-es";
16
+ import "vue-router";
17
+ import { useResizeObserver as ll } from "@vueuse/core";
18
+ import { useSelectCollapseOptions as tl } from "../../tt-form/src/hooks/useSelectCollapse.js";
19
+ import { ALL as al } from "./common.js";
20
+ import ol from "./components/PanelLeft.vue.js";
21
+ import nl from "./components/PanelMiddle.vue.js";
22
+ import rl from "./components/PanelRight.vue.js";
23
+ import { usePanelSelectData as il } from "./hooks/usePanelData.js";
24
+ import { usePanelSelectSelection as sl } from "./hooks/usePanelSelection.js";
24
25
  /* empty css */
25
- const p = 4, Fl = /* @__PURE__ */ _e({
26
+ const p = 4, Ll = /* @__PURE__ */ ze({
26
27
  name: "TtPanelSelect",
27
28
  __name: "index",
28
29
  props: /* @__PURE__ */ K({
@@ -49,7 +50,7 @@ const p = 4, Fl = /* @__PURE__ */ _e({
49
50
  pasteSearch: { type: Boolean, default: !1 },
50
51
  alwaysLoad: { type: Boolean, default: !1 },
51
52
  showAll: { type: Boolean, default: !0 },
52
- showAllField: { default: Ye },
53
+ showAllField: { default: al },
53
54
  showPinyinMode: { type: Boolean, default: !1 },
54
55
  showOriginMode: { type: Boolean, default: !0 },
55
56
  leftPlaceholder: { default: "支持模糊搜索" },
@@ -60,46 +61,30 @@ const p = 4, Fl = /* @__PURE__ */ _e({
60
61
  modelModifiers: {}
61
62
  }),
62
63
  emits: /* @__PURE__ */ K(["visible-change", "change"], ["update:modelValue"]),
63
- setup(F, { expose: Q, emit: X }) {
64
- const Y = He, Z = qe, t = F, R = X, { prefixCls: c } = je("panel-select"), {
65
- loading: ee,
64
+ setup(M, { expose: J, emit: Q }) {
65
+ const X = el, Y = Ze, t = M, $ = Q, { prefixCls: c } = Ye("panel-select"), {
66
+ loading: Z,
66
67
  fetchApi: m,
67
- treeOptions: le,
68
- navTreeOptions: N,
69
- navNodes: te,
68
+ treeOptions: ee,
69
+ navTreeOptions: F,
70
+ navNodes: le,
70
71
  leafNodes: f,
71
- isFirstLoaded: ae,
72
- buildOptionGroups: oe
73
- } = tl(t), a = We(F, "modelValue"), P = u(() => t.disabled);
72
+ isFirstLoaded: te,
73
+ buildOptionGroups: ae
74
+ } = il(t), a = je(M, "modelValue");
75
+ let R;
76
+ const B = s(() => t.disabled), oe = s(() => {
77
+ const e = /* @__PURE__ */ new Map();
78
+ return f.value.forEach((l) => e.set(l.value, l.label)), e;
79
+ });
74
80
  function g(e) {
75
- if (e === t.showAllField) return { label: "全部", value: t.showAllField };
76
- const l = f.value.find((o) => o.value === e);
77
- return l ? { label: l.label, value: l.value } : { label: String(e), value: e };
81
+ return e === t.showAllField ? { label: "全部", value: t.showAllField } : { label: oe.value.get(e) ?? String(e), value: e };
78
82
  }
79
- function B(e) {
83
+ function N(e) {
80
84
  if (e != null)
81
85
  return typeof e == "object" && "value" in e ? e.value : e;
82
86
  }
83
- const E = u({
84
- get() {
85
- if (t.multiple)
86
- return (Array.isArray(a.value) ? a.value : a.value === void 0 ? [] : [a.value]).map((l) => g(l));
87
- if (Array.isArray(a.value)) {
88
- const e = a.value.at(-1);
89
- return e === void 0 ? void 0 : g(e);
90
- }
91
- return a.value === void 0 ? void 0 : g(a.value);
92
- },
93
- set(e) {
94
- if (t.multiple) {
95
- const o = Array.isArray(e) ? e : [];
96
- a.value = o.map((i) => B(i)).filter((i) => i !== void 0);
97
- return;
98
- }
99
- const l = B(e);
100
- a.value = l;
101
- }
102
- }), k = u({
87
+ const P = s({
103
88
  get() {
104
89
  return Array.isArray(a.value) ? t.multiple ? a.value : a.value.slice(-1) : a.value === void 0 ? [] : [a.value];
105
90
  },
@@ -107,20 +92,20 @@ const p = 4, Fl = /* @__PURE__ */ _e({
107
92
  a.value = t.multiple ? [...e] : e.at(-1);
108
93
  }
109
94
  });
110
- V([() => t.multiple, () => a.value], ([e, l]) => {
95
+ S([() => t.multiple, () => a.value], ([e, l]) => {
111
96
  if (e) {
112
97
  Array.isArray(l) || (a.value = l === void 0 ? [] : [l]);
113
98
  return;
114
99
  }
115
100
  Array.isArray(l) && (a.value = l.at(-1));
116
101
  });
117
- const C = h(), A = h(""), b = h(""), x = h(), G = S("middleRef"), v = S("selectWrapRef"), M = S("selectRef"), O = h(0);
118
- function T() {
102
+ const k = h(), A = h(""), C = h(""), b = h(), L = V("middleRef"), v = V("selectWrapRef"), E = V("selectRef"), x = h(0);
103
+ function G() {
119
104
  const e = v.value;
120
- e && (O.value = e.offsetWidth);
105
+ e && (x.value = e.offsetWidth);
121
106
  }
122
- Qe(v, () => T());
123
- const ne = u(() => ({
107
+ ll(v, () => G());
108
+ const ne = s(() => ({
124
109
  componentProps: {
125
110
  multiple: t.multiple,
126
111
  component: {
@@ -129,260 +114,290 @@ const p = 4, Fl = /* @__PURE__ */ _e({
129
114
  },
130
115
  component: "TtPanelSelect",
131
116
  selectWrapRef: v,
132
- selectRef: M
133
- })), { selectComponentProps: ie } = Xe(ne), L = u(() => {
117
+ selectRef: E
118
+ })), { selectComponentProps: re } = tl(ne), T = s(() => {
134
119
  const e = A.value.trim().toLowerCase();
135
- if (!e) return N.value;
120
+ if (!e) return F.value;
136
121
  const l = (o) => {
137
122
  const i = [];
138
- return o.forEach((r) => {
123
+ return o.forEach((n) => {
139
124
  var I;
140
- const s = (I = r.children) != null && I.length ? l(r.children) : void 0;
141
- (String(r.label).toLowerCase().includes(e) || s && s.length) && i.push({ ...r, children: s != null && s.length ? s : void 0 });
125
+ const u = (I = n.children) != null && I.length ? l(n.children) : void 0;
126
+ (String(n.label).toLowerCase().includes(e) || u && u.length) && i.push({ ...n, children: u != null && u.length ? u : void 0 });
142
127
  }), i;
143
128
  };
144
- return l(N.value);
145
- }), re = u(() => {
129
+ return l(F.value);
130
+ }), ie = s(() => {
146
131
  const e = [], l = (o) => {
147
132
  o.forEach((i) => {
148
- var r;
149
- e.push(i.value), (r = i.children) != null && r.length && l(i.children);
133
+ var n;
134
+ e.push(i.value), (n = i.children) != null && n.length && l(i.children);
150
135
  });
151
136
  };
152
- return l(L.value), e;
153
- }), y = u(() => oe(f.value, b.value)), ue = u(() => {
137
+ return l(T.value), e;
138
+ }), y = s(() => ae(f.value, C.value)), se = s(() => {
154
139
  const e = "minmax(var(--tt-panel-select-middle-width, 450px), 1fr)";
155
140
  return t.showNav && !t.multiple ? `200px ${e}` : !t.showNav && t.multiple ? `${e} 180px` : !t.showNav && !t.multiple ? e : `200px ${e} 180px`;
156
- }), se = u(() => {
141
+ }), ue = s(() => {
157
142
  const e = "var(--tt-panel-select-middle-width, 450px)";
158
143
  return t.showNav && !t.multiple ? `max(calc(200px + ${e}), 800px)` : !t.showNav && t.multiple ? `max(calc(${e} + 180px), 800px)` : !t.showNav && !t.multiple ? `max(${e}, 800px)` : `max(calc(200px + ${e} + 180px), 800px)`;
159
- }), de = u(() => {
144
+ }), de = s(() => {
160
145
  const e = [];
161
146
  return y.value.forEach((l) => {
162
147
  !(t.showOriginMode && l.value === "__origin__") && e.push({ key: `group-${String(l.value)}`, type: "group", group: l });
163
148
  const i = Math.ceil(l.options.length / p);
164
- for (let r = 0; r < l.options.length; r += p) {
165
- const s = r / p;
149
+ for (let n = 0; n < l.options.length; n += p) {
150
+ const u = n / p;
166
151
  e.push({
167
- key: `options-${String(l.value)}-${r / p}`,
152
+ key: `options-${String(l.value)}-${n / p}`,
168
153
  type: "options",
169
154
  group: l,
170
- options: l.options.slice(r, r + p),
171
- isLast: s === i - 1
155
+ options: l.options.slice(n, n + p),
156
+ isLast: u === i - 1
172
157
  });
173
158
  }
174
159
  }), e;
175
160
  }), {
176
161
  selectedOptions: ce,
177
- isAllChecked: pe,
178
- isIndeterminate: me,
179
- isGroupChecked: fe,
180
- isGroupIndeterminate: he,
181
- handleGroupCheck: ve,
182
- handleAllOptionCheck: ye,
183
- handleOptionCheck: we,
184
- handleOptionsCheck: ge,
185
- handleCheckAll: _,
186
- removeSelected: ke
187
- } = al({
188
- multiple: u(() => t.multiple),
162
+ selectedValueSet: pe,
163
+ isAllChecked: me,
164
+ isIndeterminate: fe,
165
+ isGroupChecked: he,
166
+ isGroupIndeterminate: ve,
167
+ handleGroupCheck: ye,
168
+ handleAllOptionCheck: we,
169
+ handleOptionCheck: ge,
170
+ handleOptionsCheck: ke,
171
+ handleCheckAll: Ae,
172
+ clearSelected: Ce,
173
+ removeSelected: be,
174
+ withLockedSelectedValues: xe
175
+ } = sl({
176
+ multiple: s(() => t.multiple),
189
177
  modelValue: a,
190
- selectedValues: k,
178
+ selectedValues: P,
191
179
  leafNodes: f,
192
- allValue: u(() => t.showAllField)
193
- }), Ce = u(() => y.value.reduce(
194
- (e, l) => (e[String(l.value)] = fe(l), e),
195
- {}
196
- )), Ae = u(() => y.value.reduce(
180
+ allValue: s(() => t.showAllField)
181
+ }), _ = s({
182
+ get() {
183
+ if (t.multiple)
184
+ return (Array.isArray(a.value) ? a.value : a.value === void 0 ? [] : [a.value]).map((l) => g(l));
185
+ if (Array.isArray(a.value)) {
186
+ const e = a.value.at(-1);
187
+ return e === void 0 ? void 0 : g(e);
188
+ }
189
+ return a.value === void 0 ? void 0 : g(a.value);
190
+ },
191
+ set(e) {
192
+ const l = r(a);
193
+ if (R = Array.isArray(l) ? [...l] : l, t.multiple) {
194
+ const i = (Array.isArray(e) ? e : []).map((n) => N(n)).filter((n) => n !== void 0);
195
+ a.value = xe(i);
196
+ return;
197
+ }
198
+ a.value = N(e);
199
+ }
200
+ }), Se = s(() => y.value.reduce(
197
201
  (e, l) => (e[String(l.value)] = he(l), e),
198
202
  {}
199
- )), be = u(() => k.value.includes(t.showAllField)), W = u(() => [...t.showAll ? [{ label: "全部", value: t.showAllField }] : [], ...f.value.map((l) => ({ ...l }))]);
200
- function xe(e) {
201
- const l = n(W);
202
- if (Array.isArray(e))
203
- return l.filter((o) => e.some((i) => i === o.value));
203
+ )), Ve = s(() => y.value.reduce(
204
+ (e, l) => (e[String(l.value)] = ve(l), e),
205
+ {}
206
+ )), Oe = s(() => pe.value.has(t.showAllField)), W = s(() => [...t.showAll ? [{ label: "全部", value: t.showAllField }] : [], ...f.value.map((l) => ({ ...l }))]);
207
+ function Me(e) {
208
+ const l = r(W);
209
+ if (Array.isArray(e)) {
210
+ const o = new Set(e);
211
+ return l.filter((i) => i.value !== void 0 && o.has(i.value));
212
+ }
204
213
  if (e !== void 0)
205
214
  return l.find((o) => o.value === e);
206
215
  }
207
- function Oe(e) {
216
+ function $e(e) {
208
217
  var o, i;
209
- if (t.showPinyinMode || (o = e.children) != null && o.some((r) => {
210
- var s;
211
- return !((s = r.children) != null && s.length);
218
+ if (t.showPinyinMode || (o = e.children) != null && o.some((n) => {
219
+ var u;
220
+ return !((u = n.children) != null && u.length);
212
221
  })) return e.value;
213
- const l = f.value.find((r) => r.path.some((s) => s.value === e.value));
222
+ const l = f.value.find((n) => n.path.some((u) => u.value === e.value));
214
223
  return (i = l == null ? void 0 : l.path.at(-2)) == null ? void 0 : i.value;
215
224
  }
216
- function Ve(e) {
217
- C.value = e.value;
218
- const l = Oe(e);
219
- x.value = void 0, $(() => {
225
+ function Fe(e) {
226
+ k.value = e.value;
227
+ const l = $e(e);
228
+ b.value = void 0, O(() => {
220
229
  var o;
221
- x.value = l, l !== void 0 && ((o = G.value) == null || o.scrollToGroup(l));
230
+ b.value = l, l !== void 0 && ((o = L.value) == null || o.scrollToGroup(l));
222
231
  });
223
232
  }
224
- function Se(e) {
233
+ function Re(e) {
225
234
  A.value = e;
226
235
  }
227
- function $e(e) {
228
- b.value = e;
236
+ function Be(e) {
237
+ C.value = e;
229
238
  }
230
- function Fe(e, l) {
239
+ function Ne(e, l) {
231
240
  const o = y.value.find((i) => i.value === e);
232
- o && ve(o, l);
241
+ o && ye(o, l);
233
242
  }
234
- async function Re(e) {
235
- R("visible-change", e), e && (await $(), T(), t.alwaysLoad ? await m() : !t.immediate && !n(ae) && await m());
243
+ async function Pe(e) {
244
+ $("visible-change", e), e && (await O(), G(), t.alwaysLoad ? await m() : !t.immediate && !r(te) && await m());
236
245
  }
237
- function D(e) {
238
- R("change", e, J(n(W)), xe(e));
246
+ function Le() {
247
+ D(R);
239
248
  }
240
- function Ne(e) {
241
- $(() => {
242
- const l = n(a);
243
- Je(l, e) || D(l);
249
+ function Ee(e) {
250
+ $("change", e, [...r(W)], Me(e));
251
+ }
252
+ function Ge(e, l) {
253
+ return Array.isArray(e) && Array.isArray(l) ? e.length === l.length && e.every((o, i) => o === l[i]) : e === l;
254
+ }
255
+ function D(e) {
256
+ O(() => {
257
+ const l = r(a);
258
+ Ge(l, e) || Ee(l);
244
259
  });
245
260
  }
246
261
  function d(e) {
247
- const l = J(n(a));
248
- e(), Ne(l);
262
+ const l = r(a), o = Array.isArray(l) ? [...l] : l;
263
+ e(), D(o);
249
264
  }
250
- function Pe(e) {
265
+ function Te(e) {
251
266
  d(() => {
252
- ye(e);
267
+ we(e);
253
268
  });
254
269
  }
255
- function Be(e) {
270
+ function _e(e) {
256
271
  d(() => {
257
- _(e);
272
+ Ae(e);
258
273
  });
259
274
  }
260
- function Ee(e, l) {
275
+ function We(e, l) {
261
276
  d(() => {
262
- Fe(e, l);
277
+ Ne(e, l);
263
278
  });
264
279
  }
265
- function Ge(e, l) {
280
+ function De(e, l) {
266
281
  d(() => {
267
- we(e, l);
282
+ ge(e, l);
268
283
  });
269
284
  }
270
- function Me(e, l) {
285
+ function Ie(e, l) {
271
286
  d(() => {
272
- ge(e, l);
287
+ ke(e, l);
273
288
  });
274
289
  }
275
- function Te(e) {
290
+ function Ke(e) {
276
291
  d(() => {
277
- ke(e);
292
+ be(e);
278
293
  });
279
294
  }
280
- function Le() {
295
+ function Ue() {
281
296
  d(() => {
282
- _(!1);
297
+ Ce();
283
298
  });
284
299
  }
285
- return V(
300
+ return S(
286
301
  () => t.params,
287
302
  () => {
288
303
  m();
289
304
  },
290
305
  { deep: !0 }
291
- ), V(
292
- te,
306
+ ), S(
307
+ le,
293
308
  (e) => {
294
309
  var l;
295
- C.value !== void 0 || !e.length || (C.value = (l = e[0]) == null ? void 0 : l.value);
310
+ k.value !== void 0 || !e.length || (k.value = (l = e[0]) == null ? void 0 : l.value);
296
311
  },
297
312
  { immediate: !0 }
298
- ), De(() => {
313
+ ), qe(() => {
299
314
  t.immediate && m();
300
- }), Q({
315
+ }), J({
301
316
  /** 重新加载数据源*/
302
317
  reload: m,
303
318
  /** 获取当前归一化后的树形选项数据 */
304
- getOptions: () => n(le),
319
+ getOptions: () => r(ee),
305
320
  /** 获取当前v-model值 */
306
- getValue: () => n(a)
321
+ getValue: () => r(a)
307
322
  }), (e, l) => (w(), U("div", {
308
323
  ref_key: "selectWrapRef",
309
324
  ref: v,
310
- class: z(n(c))
325
+ class: z(r(c))
311
326
  }, [
312
- j(n(Z), Ie({
327
+ j(r(Y), He({
313
328
  ref_key: "selectRef",
314
- ref: M,
315
- modelValue: E.value,
316
- "onUpdate:modelValue": l[0] || (l[0] = (o) => E.value = o)
317
- }, n(ie), {
329
+ ref: E,
330
+ modelValue: _.value,
331
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => _.value = o)
332
+ }, r(re), {
318
333
  multiple: e.multiple,
319
334
  filterable: !1,
320
335
  placeholder: e.placeholder,
321
336
  "fallback-placements": ["bottom-start", "bottom-end", "bottom", "top-start", "top-end", "top", "right", "left"],
322
337
  disabled: e.disabled,
323
- "popper-class": `${n(c)}__popper vxe-table--ignore-clear`,
324
- onVisibleChange: Re,
325
- onChange: D
338
+ "popper-class": `${r(c)}__popper vxe-table--ignore-clear`,
339
+ onVisibleChange: Pe,
340
+ onChange: Le
326
341
  }), {
327
- empty: Ke(() => [
328
- Ue((w(), U("div", {
342
+ empty: Je(() => [
343
+ Qe((w(), U("div", {
329
344
  "element-loading-text": "加载中",
330
- class: z(`${n(c)}__panel`),
331
- style: ze({
332
- "--columns": ue.value,
333
- "--panel-min-width": se.value,
334
- "--panel-width": O.value ? `${O.value}px` : "100%"
345
+ class: z(`${r(c)}__panel`),
346
+ style: Xe({
347
+ "--columns": se.value,
348
+ "--panel-min-width": ue.value,
349
+ "--panel-width": x.value ? `${x.value}px` : "100%"
335
350
  })
336
351
  }, [
337
- t.showNav ? (w(), q(Ze, {
352
+ t.showNav ? (w(), q(ol, {
338
353
  key: 0,
339
- "prefix-cls": n(c),
354
+ "prefix-cls": r(c),
340
355
  keyword: A.value,
341
- "tree-data": L.value,
342
- "expanded-keys": re.value,
356
+ "tree-data": T.value,
357
+ "expanded-keys": ie.value,
343
358
  "left-placeholder": e.leftPlaceholder,
344
- "onUpdate:keyword": Se,
345
- onSelect: Ve
359
+ "onUpdate:keyword": Re,
360
+ onSelect: Fe
346
361
  }, null, 8, ["prefix-cls", "keyword", "tree-data", "expanded-keys", "left-placeholder"])) : H("", !0),
347
- j(el, {
362
+ j(nl, {
348
363
  ref_key: "middleRef",
349
- ref: G,
350
- "prefix-cls": n(c),
364
+ ref: L,
365
+ "prefix-cls": r(c),
351
366
  multiple: e.multiple,
352
- keyword: b.value,
367
+ keyword: C.value,
353
368
  rows: de.value,
354
- disabled: P.value,
369
+ disabled: B.value,
355
370
  "show-all": t.showAll,
356
371
  "option-per-row": p,
357
372
  "row-height": 40,
358
- "selected-values": k.value,
359
- "is-all-checked": n(pe),
360
- "is-indeterminate": n(me),
361
- "all-checked": be.value,
362
- "scroll-to-group-value": x.value,
363
- "group-checked-map": Ce.value,
364
- "group-indeterminate-map": Ae.value,
373
+ "selected-values": P.value,
374
+ "is-all-checked": r(me),
375
+ "is-indeterminate": r(fe),
376
+ "all-checked": Oe.value,
377
+ "scroll-to-group-value": b.value,
378
+ "group-checked-map": Se.value,
379
+ "group-indeterminate-map": Ve.value,
365
380
  "paste-search": e.pasteSearch,
366
381
  separator: e.separator,
367
382
  "middle-placeholder": e.middlePlaceholder,
368
- "onUpdate:keyword": $e,
369
- onAllCheck: Pe,
370
- onCheckAll: Be,
371
- onGroupCheck: Ee,
372
- onOptionCheck: Ge,
373
- onOptionsCheck: Me
383
+ "onUpdate:keyword": Be,
384
+ onAllCheck: Te,
385
+ onCheckAll: _e,
386
+ onGroupCheck: We,
387
+ onOptionCheck: De,
388
+ onOptionsCheck: Ie
374
389
  }, null, 8, ["prefix-cls", "multiple", "keyword", "rows", "disabled", "show-all", "selected-values", "is-all-checked", "is-indeterminate", "all-checked", "scroll-to-group-value", "group-checked-map", "group-indeterminate-map", "paste-search", "separator", "middle-placeholder"]),
375
- t.multiple ? (w(), q(ll, {
390
+ t.multiple ? (w(), q(rl, {
376
391
  key: 1,
377
- "prefix-cls": n(c),
392
+ "prefix-cls": r(c),
378
393
  multiple: e.multiple,
379
- disabled: P.value,
380
- "selected-options": n(ce),
381
- onClearAll: Le,
382
- onRemove: Te
394
+ disabled: B.value,
395
+ "selected-options": r(ce),
396
+ onClearAll: Ue,
397
+ onRemove: Ke
383
398
  }, null, 8, ["prefix-cls", "multiple", "disabled", "selected-options"])) : H("", !0)
384
399
  ], 6)), [
385
- [n(Y), n(ee)]
400
+ [r(X), r(Z)]
386
401
  ])
387
402
  ]),
388
403
  _: 1
@@ -391,5 +406,5 @@ const p = 4, Fl = /* @__PURE__ */ _e({
391
406
  }
392
407
  });
393
408
  export {
394
- Fl as default
409
+ Ll as default
395
410
  };
@@ -13,7 +13,8 @@ import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8
13
13
  import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
14
14
  import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
15
15
  import { omit as m } from "lodash-es";
16
- const O = /* @__PURE__ */ V({
16
+ import "vue-router";
17
+ const Q = /* @__PURE__ */ V({
17
18
  name: "TtRadioGroup",
18
19
  inheritAttrs: !1,
19
20
  __name: "index",
@@ -37,30 +38,30 @@ const O = /* @__PURE__ */ V({
37
38
  }),
38
39
  emits: /* @__PURE__ */ d(["change"], ["update:modelValue"]),
39
40
  setup(n, { emit: f }) {
40
- const o = n, l = y(n, "modelValue"), s = f, g = B(), { prefixCls: v } = A("radio-group"), h = k(() => ({
41
- ...m(o, ["clearable", "beforeChange", "modelValue"]),
41
+ const a = n, l = y(n, "modelValue"), s = f, g = B(), { prefixCls: v } = A("radio-group"), h = k(() => ({
42
+ ...m(a, ["clearable", "beforeChange", "modelValue"]),
42
43
  ...m(g, ["onUpdate:modelValue", "onChange", "class"])
43
44
  })), r = c(l.value), { formItem: i } = D(), u = c(!1);
44
45
  async function C(e) {
45
- const a = l.value;
46
+ const o = l.value;
46
47
  let t = !0;
47
- o.beforeChange && (t = await o.beforeChange(e, a)), t ? (l.value = e, s("change", e)) : r.value = a;
48
+ a.beforeChange && (t = await a.beforeChange(e, o)), t ? (l.value = e, s("change", e)) : r.value = o;
48
49
  }
49
50
  function b(e) {
50
- if (!o.clearable || o.disabled) return;
51
+ if (!a.clearable || a.disabled) return;
51
52
  const t = e.target.closest(".el-radio, .el-radio-button");
52
53
  t && (!t.classList.contains("is-checked") && !t.classList.contains("is-active") || t.classList.contains("is-disabled") || (e.stopPropagation(), e.preventDefault(), l.value = void 0, r.value = void 0, s("change", void 0)));
53
54
  }
54
55
  return x(
55
56
  l,
56
57
  (e) => {
57
- r.value = e, u.value && (i == null || i.validate("change").catch((a) => {
58
+ r.value = e, u.value && (i == null || i.validate("change").catch((o) => {
58
59
  })), u.value = !0;
59
60
  },
60
61
  { immediate: !0 }
61
- ), (e, a) => (w(), L(p(F), E(h.value, {
62
+ ), (e, o) => (w(), L(p(F), E(h.value, {
62
63
  modelValue: r.value,
63
- "onUpdate:modelValue": a[0] || (a[0] = (t) => r.value = t),
64
+ "onUpdate:modelValue": o[0] || (o[0] = (t) => r.value = t),
64
65
  class: [p(v), e.$attrs.class],
65
66
  "validate-event": !1,
66
67
  onClickCapture: b,
@@ -74,5 +75,5 @@ const O = /* @__PURE__ */ V({
74
75
  }
75
76
  });
76
77
  export {
77
- O as default
78
+ Q as default
78
79
  };
@@ -16,6 +16,7 @@ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-u
16
16
  import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
17
17
  import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
18
18
  import { omit as st, pick as it, cloneDeep as j, isEqual as rt } from "lodash-es";
19
+ import "vue-router";
19
20
  import { useLoading as at } from "../../../hooks/useLoading.js";
20
21
  import { CopyDocument as nt } from "@element-plus/icons-vue";
21
22
  import ct from "../../../directives/disabled-tip/index.js";
@@ -28,7 +29,7 @@ import { usePagination as ft } from "./hooks/usePagination.js";
28
29
  import { useSelect as gt } from "./hooks/useSelect.js";
29
30
  import { useSelectTableEvent as vt } from "./hooks/useSelectTableEvent.js";
30
31
  import { selectProps as bt, configDefault as ht } from "./props.js";
31
- const Pt = ["title"], Qt = /* @__PURE__ */ Ne({
32
+ const Pt = ["title"], Xt = /* @__PURE__ */ Ne({
32
33
  name: "TtSelect",
33
34
  inheritAttrs: !1,
34
35
  __name: "Select",
@@ -322,5 +323,5 @@ const Pt = ["title"], Qt = /* @__PURE__ */ Ne({
322
323
  }
323
324
  });
324
325
  export {
325
- Qt as default
326
+ Xt as default
326
327
  };