@dazhicheng/ui 1.5.240 → 1.5.242

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.
@@ -1,7 +1,7 @@
1
1
  import o from "./TtArea.vue3.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b814e001"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-116cb5cb"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import r from "./DrawerHeader.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const c = /* @__PURE__ */ o(r, [["__scopeId", "data-v-9b698cc3"]]);
4
+ const f = /* @__PURE__ */ o(r, [["__scopeId", "data-v-6cdf82e0"]]);
5
5
  export {
6
- c as default
6
+ f as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as ve, useTemplateRef as K, unref as l, computed as a, reactive as he, markRaw as be, toRaw as ye, watch as G, nextTick as Ce, onUnmounted as ge, createBlock as h, createCommentVNode as c, openBlock as u, mergeProps as N, withCtx as b, withDirectives as Fe, createVNode as F, createElementVNode as L, createElementBlock as H, normalizeClass as k, normalizeStyle as J, renderSlot as Re, normalizeProps as we, guardReactiveProps as Se, resolveDynamicComponent as Ne, createSlots as ke, renderList as Oe, Transition as Ee, vShow as Pe } from "vue";
1
+ import { defineComponent as ve, useTemplateRef as K, unref as l, computed as a, reactive as he, markRaw as be, toRaw as ye, watch as G, nextTick as Ce, onUnmounted as ge, createBlock as h, createCommentVNode as c, openBlock as u, mergeProps as k, withCtx as b, withDirectives as Fe, createVNode as F, createElementVNode as L, createElementBlock as H, normalizeClass as O, normalizeStyle as J, renderSlot as Re, normalizeProps as we, guardReactiveProps as Se, resolveDynamicComponent as Ne, createSlots as ke, renderList as Oe, Transition as Ee, vShow as Pe } from "vue";
2
2
  import Be from "../form/FormControl.vue.js";
3
3
  import Te from "../form/FormDescription.vue.js";
4
4
  import Ve from "../form/FormItem.vue.js";
@@ -18,7 +18,7 @@ import "../../../tt-icon/index.js";
18
18
  import "@vueuse/core";
19
19
  import { useFormValues as Ae, useFieldError as Me, Field as Ue } from "vee-validate";
20
20
  /* empty css */
21
- import O from "../form/RenderContent.vue.js";
21
+ import E from "../form/RenderContent.vue.js";
22
22
  import { toTypedSchema as De } from "@vee-validate/zod";
23
23
  import { injectFormProps as We, injectComponentRefMap as ze } from "../useFormContext.js";
24
24
  import { useFormContext as xe, injectRenderFormProps as Ke } from "./context.js";
@@ -66,10 +66,10 @@ const Xe = { class: "flex-auto overflow-hidden" }, Ye = {
66
66
  commonComponentProps: {}
67
67
  },
68
68
  setup(n) {
69
- const E = K("wrapperRef"), { componentBindEventMap: X, componentMap: Y, isVertical: C } = xe(), Z = Ke(), S = Ae(), _ = Me(n.fieldName), f = K("fieldComponentRef"), [ee, ne] = We(), j = l(ee).formApi, R = a(() => Z.compact), w = a(() => {
69
+ const P = K("wrapperRef"), { componentBindEventMap: X, componentMap: Y, isVertical: C } = xe(), Z = Ke(), S = Ae(), _ = Me(n.fieldName), f = K("fieldComponentRef"), [ee, ne] = We(), j = l(ee).formApi, R = a(() => Z.compact), w = a(() => {
70
70
  var e;
71
71
  return ((e = _.value) == null ? void 0 : e.length) > 0;
72
- }), P = he(
72
+ }), B = he(
73
73
  new Proxy({}, {
74
74
  /**
75
75
  * @param _target 代理目标(空对象,不实际存储)
@@ -92,20 +92,20 @@ const Xe = { class: "flex-auto overflow-hidden" }, Ye = {
92
92
  ), A = a(() => {
93
93
  const e = y(n.component) ? Y.value[n.component] : n.component;
94
94
  return be(ye(e));
95
- }), { dynamicComponentProps: te, dynamicRules: oe, isDisabled: le, isIf: M, isRequired: B, isShow: U } = Ge(
95
+ }), { dynamicComponentProps: te, dynamicRules: oe, isDisabled: le, isIf: M, isRequired: T, isShow: U } = Ge(
96
96
  () => n.dependencies
97
97
  ), ie = a(() => {
98
98
  var e;
99
99
  return (e = n.labelClass) != null && e.includes("w-") || C.value ? {} : {
100
100
  width: `${n.labelWidth}px`
101
101
  };
102
- }), s = a(() => oe.value || n.rules), D = a(() => !n.hide && M.value && U.value), T = a(() => {
102
+ }), s = a(() => oe.value || n.rules), D = a(() => !n.hide && M.value && U.value), V = a(() => {
103
103
  var o, i, m;
104
104
  if (!D.value)
105
105
  return !1;
106
106
  if (!s.value)
107
- return B.value;
108
- if (B.value)
107
+ return T.value;
108
+ if (T.value)
109
109
  return !0;
110
110
  if (y(s.value))
111
111
  return ["required", "selectRequired"].includes(s.value);
@@ -122,10 +122,10 @@ const Xe = { class: "flex-auto overflow-hidden" }, Ye = {
122
122
  return null;
123
123
  let e = s.value;
124
124
  if (!e)
125
- return B.value ? He(A.value) : null;
125
+ return T.value ? He(A.value) : null;
126
126
  if (y(e))
127
127
  return e;
128
- if (!!T.value) {
128
+ if (!!V.value) {
129
129
  const i = (o = e == null ? void 0 : e.unwrap) == null ? void 0 : o.call(e);
130
130
  i && (e = i);
131
131
  }
@@ -141,7 +141,7 @@ const Xe = { class: "flex-auto overflow-hidden" }, Ye = {
141
141
  a(() => ({
142
142
  componentProps: r,
143
143
  component: n.component,
144
- selectWrapRef: E,
144
+ selectWrapRef: P,
145
145
  selectRef: f
146
146
  }))
147
147
  );
@@ -157,7 +157,7 @@ const Xe = { class: "flex-auto overflow-hidden" }, Ye = {
157
157
  },
158
158
  { immediate: !0 }
159
159
  );
160
- const V = a(() => {
160
+ const N = a(() => {
161
161
  var e;
162
162
  return le.value || n.disabled || ((e = r.value) == null ? void 0 : e.disabled);
163
163
  }), W = a(() => $(n.renderComponentContent) ? n.renderComponentContent(S.value, j) : {}), ue = a(() => Object.keys(W.value)), se = a(() => {
@@ -204,7 +204,10 @@ const Xe = { class: "flex-auto overflow-hidden" }, Ye = {
204
204
  ...Reflect.has(r.value, "onChange") ? { onChange: r.value.onChange } : {},
205
205
  ...Reflect.has(r.value, "onInput") ? { onInput: r.value.onInput } : {}
206
206
  };
207
- return Reflect.has(r.value, "name") || delete o.name, y(n.component) && de.has(n.component) && o.modelValue === void 0 && (o.modelValue = !1), y(n.component) && ce.has(n.component) && (o.controls = !1, o.align = "left"), o;
207
+ return Reflect.has(r.value, "name") || delete o.name, y(n.component) && de.has(n.component) && o.modelValue === void 0 && (o.modelValue = !1), y(n.component) && ce.has(n.component) && (o.controls = !1, o.align = "left"), {
208
+ ...o,
209
+ placeholder: N.value ? "" : r.value.placeholder
210
+ };
208
211
  }
209
212
  function fe() {
210
213
  var e, t;
@@ -216,23 +219,23 @@ const Xe = { class: "flex-auto overflow-hidden" }, Ye = {
216
219
  p == null || p.set(n.fieldName, e);
217
220
  }), ge(() => {
218
221
  p != null && p.has(n.fieldName) && p.delete(n.fieldName);
219
- }), (e, t) => !e.hide && l(M) ? (u(), h(l(Ue), N({ key: 0 }, se.value, { name: e.fieldName }), {
222
+ }), (e, t) => !e.hide && l(M) ? (u(), h(l(Ue), k({ key: 0 }, se.value, { name: e.fieldName }), {
220
223
  default: b((o) => [
221
- Fe(F(l(Ve), N({
224
+ Fe(F(l(Ve), k({
222
225
  class: [{
223
226
  "form-valid-error": w.value,
224
- "form-is-required": T.value,
227
+ "form-is-required": V.value,
225
228
  "pb-(--form-valid-error-nocompact-padding-bottom)": !R.value,
226
229
  "pb-2": R.value
227
230
  }, "relative"]
228
231
  }, e.$attrs), {
229
232
  default: b(() => [
230
233
  L("div", {
231
- class: k([{ "flex-col": l(C), "flex-row items-center": !l(C) }, "flex"])
234
+ class: O([{ "flex-col": l(C), "flex-row items-center": !l(C) }, "flex"])
232
235
  }, [
233
236
  e.hideLabel ? c("", !0) : (u(), h(Je, {
234
237
  key: 0,
235
- class: k(
238
+ class: O(
236
239
  l(q)(
237
240
  "flex leading-6",
238
241
  {
@@ -245,15 +248,15 @@ const Xe = { class: "flex-auto overflow-hidden" }, Ye = {
245
248
  help: e.help,
246
249
  colon: e.colon,
247
250
  label: e.label,
248
- required: T.value && !e.hideRequiredMark,
251
+ required: V.value && !e.hideRequiredMark,
249
252
  style: J(ie.value),
250
253
  "tool-tip": e.toolTip,
251
254
  "help-trigger": e.helpTrigger,
252
- form: P,
255
+ form: B,
253
256
  "tool-tip-text": e.toolTipText
254
257
  }, {
255
258
  default: b(() => [
256
- e.label ? (u(), h(l(O), {
259
+ e.label ? (u(), h(l(E), {
257
260
  key: 0,
258
261
  content: e.label
259
262
  }, null, 8, ["content"])) : c("", !0)
@@ -263,35 +266,35 @@ const Xe = { class: "flex-auto overflow-hidden" }, Ye = {
263
266
  L("div", Xe, [
264
267
  L("div", {
265
268
  ref_key: "wrapperRef",
266
- ref: E,
267
- class: k(l(q)("relative flex w-full items-center", e.wrapperClass))
269
+ ref: P,
270
+ class: O(l(q)("relative flex w-full items-center", e.wrapperClass))
268
271
  }, [
269
272
  F(l(Be), {
270
- class: k(l(q)(e.controlClass))
273
+ class: O(l(q)(e.controlClass))
271
274
  }, {
272
275
  default: b(() => [
273
276
  Re(e.$slots, "default", we(Se({
274
277
  ...o,
275
278
  ...z(o),
276
- disabled: V.value,
279
+ disabled: N.value,
277
280
  isInValid: w.value,
278
- form: P,
281
+ form: B,
279
282
  fieldName: e.fieldName
280
283
  })), () => [
281
- (u(), h(Ne(A.value), N({
284
+ (u(), h(Ne(A.value), k({
282
285
  ref_key: "fieldComponentRef",
283
286
  ref: f
284
287
  }, {
285
288
  ...z(o),
286
- disabled: V.value,
289
+ disabled: N.value,
287
290
  isInValid: w.value,
288
- form: P,
291
+ form: B,
289
292
  fieldName: e.fieldName
290
- }, { disabled: V.value }), ke({ _: 2 }, [
293
+ }, { disabled: N.value }), ke({ _: 2 }, [
291
294
  Oe(ue.value, (i) => ({
292
295
  name: i,
293
296
  fn: b((m) => [
294
- F(l(O), N({
297
+ F(l(E), k({
295
298
  content: W.value[i]
296
299
  }, { ...m, formContext: o }), null, 16, ["content"])
297
300
  ])
@@ -302,11 +305,11 @@ const Xe = { class: "flex-auto overflow-hidden" }, Ye = {
302
305
  _: 2
303
306
  }, 1032, ["class"]),
304
307
  e.suffix ? (u(), H("div", Ye, [
305
- F(l(O), { content: e.suffix }, null, 8, ["content"])
308
+ F(l(E), { content: e.suffix }, null, 8, ["content"])
306
309
  ])) : c("", !0),
307
310
  R.value && w.value ? (u(), h(l(qe), {
308
311
  key: 1,
309
- "ref-dom": E.value
312
+ "ref-dom": P.value
310
313
  }, null, 8, ["ref-dom"])) : c("", !0)
311
314
  ], 2)
312
315
  ])
@@ -320,7 +323,7 @@ const Xe = { class: "flex-auto overflow-hidden" }, Ye = {
320
323
  class: "text-[12px]"
321
324
  }, {
322
325
  default: b(() => [
323
- F(l(O), { content: e.description }, null, 8, ["content"])
326
+ F(l(E), { content: e.description }, null, 8, ["content"])
324
327
  ]),
325
328
  _: 1
326
329
  })) : c("", !0),
@@ -69,7 +69,7 @@ function J(r) {
69
69
  }
70
70
  let h = 0, S = 0;
71
71
  e.slice(0).forEach((w) => {
72
- const b = L(w, W, i) + 32 + 4;
72
+ const b = L(w, W, i) + 32 + 8;
73
73
  h + b < g && (h += b, S += 1);
74
74
  }), o.value = Math.max(1, S);
75
75
  }
@@ -2,7 +2,7 @@ import o from "./index.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../../_virtual/_plugin-vue_export-helper.js";
5
- const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6dba01d4"]]);
5
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d731bb93"]]);
6
6
  export {
7
- _ as default
7
+ a as default
8
8
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./loading.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5d760747"]]);
4
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7e6228e4"]]);
5
5
  export {
6
- a as default
6
+ r as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as Te, mergeModels as I, useModel as We, computed as u, watch as V, ref as h, useTemplateRef as S, onMounted as De, unref as n, createElementBlock as K, openBlock as w, normalizeClass as U, createVNode as z, mergeProps as Ie, withCtx as Ke, withDirectives as Ue, normalizeStyle as ze, createBlock as j, createCommentVNode as q, nextTick as $ } from "vue";
1
+ import { defineComponent as Te, 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";
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
3
  import { useDesign as je } from "../../../packages/hooks/src/useDesign.js";
4
4
  import "axios";
@@ -12,7 +12,7 @@ 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 H, isEqual as Je } from "lodash-es";
15
+ import { cloneDeep as J, isEqual as Je } from "lodash-es";
16
16
  import { useResizeObserver as Qe } from "@vueuse/core";
17
17
  import { useSelectCollapseOptions as Xe } from "../../tt-form/src/hooks/useSelectCollapse.js";
18
18
  import { ALL as Ye } from "./common.js";
@@ -25,7 +25,7 @@ import { usePanelSelectSelection as al } from "./hooks/usePanelSelection.js";
25
25
  const p = 4, Fl = /* @__PURE__ */ Te({
26
26
  name: "TtPanelSelect",
27
27
  __name: "index",
28
- props: /* @__PURE__ */ I({
28
+ props: /* @__PURE__ */ K({
29
29
  disabled: { type: Boolean, default: !1 },
30
30
  showNav: { type: Boolean, default: !0 },
31
31
  multiple: { type: Boolean, default: !0 },
@@ -59,17 +59,17 @@ const p = 4, Fl = /* @__PURE__ */ Te({
59
59
  modelValue: {},
60
60
  modelModifiers: {}
61
61
  }),
62
- emits: /* @__PURE__ */ I(["visible-change", "change"], ["update:modelValue"]),
63
- setup(F, { expose: J, emit: Q }) {
64
- const X = He, Y = qe, t = F, R = Q, { prefixCls: c } = je("panel-select"), {
65
- loading: Z,
62
+ 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,
66
66
  fetchApi: m,
67
- treeOptions: ee,
67
+ treeOptions: le,
68
68
  navTreeOptions: N,
69
- navNodes: le,
69
+ navNodes: te,
70
70
  leafNodes: f,
71
- isFirstLoaded: te,
72
- buildOptionGroups: ae
71
+ isFirstLoaded: ae,
72
+ buildOptionGroups: oe
73
73
  } = tl(t), a = We(F, "modelValue"), B = u(() => t.disabled);
74
74
  function g(e) {
75
75
  if (e === t.showAllField) return { label: "全部", value: t.showAllField };
@@ -107,24 +107,20 @@ const p = 4, Fl = /* @__PURE__ */ Te({
107
107
  a.value = t.multiple ? [...e] : e.at(-1);
108
108
  }
109
109
  });
110
- V(
111
- [() => t.multiple, () => a.value],
112
- ([e, l]) => {
113
- if (e) {
114
- Array.isArray(l) || (a.value = l === void 0 ? [] : [l]);
115
- return;
116
- }
117
- Array.isArray(l) && (a.value = l.at(-1));
118
- },
119
- { immediate: !0 }
120
- );
110
+ V([() => t.multiple, () => a.value], ([e, l]) => {
111
+ if (e) {
112
+ Array.isArray(l) || (a.value = l === void 0 ? [] : [l]);
113
+ return;
114
+ }
115
+ Array.isArray(l) && (a.value = l.at(-1));
116
+ });
121
117
  const C = h(), A = h(""), x = h(""), b = h(), G = S("middleRef"), v = S("selectWrapRef"), M = S("selectRef"), O = h(0);
122
118
  function L() {
123
119
  const e = v.value;
124
120
  e && (O.value = e.offsetWidth);
125
121
  }
126
122
  Qe(v, () => L());
127
- const oe = u(() => ({
123
+ const ne = u(() => ({
128
124
  componentProps: {
129
125
  multiple: t.multiple,
130
126
  component: {
@@ -134,19 +130,19 @@ const p = 4, Fl = /* @__PURE__ */ Te({
134
130
  component: "ElSelect",
135
131
  selectWrapRef: v,
136
132
  selectRef: M
137
- })), { selectComponentProps: ne } = Xe(oe), _ = u(() => {
133
+ })), { selectComponentProps: ie } = Xe(ne), _ = u(() => {
138
134
  const e = A.value.trim().toLowerCase();
139
135
  if (!e) return N.value;
140
136
  const l = (o) => {
141
137
  const i = [];
142
138
  return o.forEach((r) => {
143
- var D;
144
- const s = (D = r.children) != null && D.length ? l(r.children) : void 0;
139
+ var I;
140
+ const s = (I = r.children) != null && I.length ? l(r.children) : void 0;
145
141
  (String(r.label).toLowerCase().includes(e) || s && s.length) && i.push({ ...r, children: s != null && s.length ? s : void 0 });
146
142
  }), i;
147
143
  };
148
144
  return l(N.value);
149
- }), ie = u(() => {
145
+ }), re = u(() => {
150
146
  const e = [], l = (o) => {
151
147
  o.forEach((i) => {
152
148
  var r;
@@ -154,13 +150,13 @@ const p = 4, Fl = /* @__PURE__ */ Te({
154
150
  });
155
151
  };
156
152
  return l(_.value), e;
157
- }), y = u(() => ae(f.value, x.value)), re = u(() => {
153
+ }), y = u(() => oe(f.value, x.value)), ue = u(() => {
158
154
  const e = "minmax(var(--tt-panel-select-middle-width, 450px), 1fr)";
159
155
  return t.showNav && !t.multiple ? `200px ${e}` : !t.showNav && t.multiple ? `${e} 180px` : !t.showNav && !t.multiple ? e : `200px ${e} 180px`;
160
- }), ue = u(() => {
156
+ }), se = u(() => {
161
157
  const e = "var(--tt-panel-select-middle-width, 450px)";
162
158
  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)`;
163
- }), se = u(() => {
159
+ }), de = u(() => {
164
160
  const e = [];
165
161
  return y.value.forEach((l) => {
166
162
  !(t.showOriginMode && l.value === "__origin__") && e.push({ key: `group-${String(l.value)}`, type: "group", group: l });
@@ -177,38 +173,38 @@ const p = 4, Fl = /* @__PURE__ */ Te({
177
173
  }
178
174
  }), e;
179
175
  }), {
180
- selectedOptions: de,
181
- isAllChecked: ce,
182
- isIndeterminate: pe,
183
- isGroupChecked: me,
184
- isGroupIndeterminate: fe,
185
- handleGroupCheck: he,
186
- handleAllOptionCheck: ve,
187
- handleOptionCheck: ye,
188
- handleOptionsCheck: we,
176
+ 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,
189
185
  handleCheckAll: T,
190
- removeSelected: ge
186
+ removeSelected: ke
191
187
  } = al({
192
188
  multiple: u(() => t.multiple),
193
189
  modelValue: a,
194
190
  selectedValues: k,
195
191
  leafNodes: f,
196
192
  allValue: u(() => t.showAllField)
197
- }), ke = u(() => y.value.reduce(
198
- (e, l) => (e[String(l.value)] = me(l), e),
199
- {}
200
- )), Ce = u(() => y.value.reduce(
193
+ }), Ce = u(() => y.value.reduce(
201
194
  (e, l) => (e[String(l.value)] = fe(l), e),
202
195
  {}
203
- )), Ae = u(() => k.value.includes(t.showAllField)), W = u(() => [...t.showAll ? [{ label: "全部", value: t.showAllField }] : [], ...f.value.map((l) => ({ ...l }))]);
204
- function xe(e) {
196
+ )), Ae = u(() => y.value.reduce(
197
+ (e, l) => (e[String(l.value)] = he(l), e),
198
+ {}
199
+ )), xe = u(() => k.value.includes(t.showAllField)), W = u(() => [...t.showAll ? [{ label: "全部", value: t.showAllField }] : [], ...f.value.map((l) => ({ ...l }))]);
200
+ function be(e) {
205
201
  const l = n(W);
206
202
  if (Array.isArray(e))
207
203
  return l.filter((o) => e.some((i) => i === o.value));
208
204
  if (e !== void 0)
209
205
  return l.find((o) => o.value === e);
210
206
  }
211
- function be(e) {
207
+ function Oe(e) {
212
208
  var o, i;
213
209
  if (t.showPinyinMode || (o = e.children) != null && o.some((r) => {
214
210
  var s;
@@ -217,43 +213,43 @@ const p = 4, Fl = /* @__PURE__ */ Te({
217
213
  const l = f.value.find((r) => r.path.some((s) => s.value === e.value));
218
214
  return (i = l == null ? void 0 : l.path.at(-2)) == null ? void 0 : i.value;
219
215
  }
220
- function Oe(e) {
216
+ function Ve(e) {
221
217
  C.value = e.value;
222
- const l = be(e);
218
+ const l = Oe(e);
223
219
  b.value = void 0, $(() => {
224
220
  var o;
225
221
  b.value = l, l !== void 0 && ((o = G.value) == null || o.scrollToGroup(l));
226
222
  });
227
223
  }
228
- function Ve(e) {
224
+ function Se(e) {
229
225
  A.value = e;
230
226
  }
231
- function Se(e) {
227
+ function $e(e) {
232
228
  x.value = e;
233
229
  }
234
- function $e(e, l) {
230
+ function Fe(e, l) {
235
231
  const o = y.value.find((i) => i.value === e);
236
- o && he(o, l);
232
+ o && ve(o, l);
237
233
  }
238
- async function Fe(e) {
239
- R("visible-change", e), e && (await $(), L(), t.alwaysLoad ? await m() : !t.immediate && !n(te) && await m());
234
+ async function Re(e) {
235
+ R("visible-change", e), e && (await $(), L(), t.alwaysLoad ? await m() : !t.immediate && !n(ae) && await m());
240
236
  }
241
- function Re(e) {
242
- R("change", e, H(n(W)), xe(e));
237
+ function D(e) {
238
+ R("change", e, J(n(W)), be(e));
243
239
  }
244
240
  function Ne(e) {
245
241
  $(() => {
246
242
  const l = n(a);
247
- Je(l, e) || Re(l);
243
+ Je(l, e) || D(l);
248
244
  });
249
245
  }
250
246
  function d(e) {
251
- const l = H(n(a));
247
+ const l = J(n(a));
252
248
  e(), Ne(l);
253
249
  }
254
250
  function Be(e) {
255
251
  d(() => {
256
- ve(e);
252
+ ye(e);
257
253
  });
258
254
  }
259
255
  function Ee(e) {
@@ -263,22 +259,22 @@ const p = 4, Fl = /* @__PURE__ */ Te({
263
259
  }
264
260
  function Pe(e, l) {
265
261
  d(() => {
266
- $e(e, l);
262
+ Fe(e, l);
267
263
  });
268
264
  }
269
265
  function Ge(e, l) {
270
266
  d(() => {
271
- ye(e, l);
267
+ we(e, l);
272
268
  });
273
269
  }
274
270
  function Me(e, l) {
275
271
  d(() => {
276
- we(e, l);
272
+ ge(e, l);
277
273
  });
278
274
  }
279
275
  function Le(e) {
280
276
  d(() => {
281
- ge(e);
277
+ ke(e);
282
278
  });
283
279
  }
284
280
  function _e() {
@@ -293,7 +289,7 @@ const p = 4, Fl = /* @__PURE__ */ Te({
293
289
  },
294
290
  { deep: !0 }
295
291
  ), V(
296
- le,
292
+ te,
297
293
  (e) => {
298
294
  var l;
299
295
  C.value !== void 0 || !e.length || (C.value = (l = e[0]) == null ? void 0 : l.value);
@@ -301,90 +297,91 @@ const p = 4, Fl = /* @__PURE__ */ Te({
301
297
  { immediate: !0 }
302
298
  ), De(() => {
303
299
  t.immediate && m();
304
- }), J({
300
+ }), Q({
305
301
  /** 重新加载数据源*/
306
302
  reload: m,
307
303
  /** 获取当前归一化后的树形选项数据 */
308
- getOptions: () => n(ee),
304
+ getOptions: () => n(le),
309
305
  /** 获取当前v-model值 */
310
306
  getValue: () => n(a)
311
- }), (e, l) => (w(), K("div", {
307
+ }), (e, l) => (w(), U("div", {
312
308
  ref_key: "selectWrapRef",
313
309
  ref: v,
314
- class: U(n(c))
310
+ class: z(n(c))
315
311
  }, [
316
- z(n(Y), Ie({
312
+ j(n(Z), Ie({
317
313
  ref_key: "selectRef",
318
314
  ref: M,
319
315
  modelValue: P.value,
320
316
  "onUpdate:modelValue": l[0] || (l[0] = (o) => P.value = o)
321
- }, n(ne), {
317
+ }, n(ie), {
322
318
  multiple: e.multiple,
323
319
  filterable: !1,
324
320
  placeholder: e.placeholder,
325
321
  disabled: e.disabled,
326
322
  "popper-class": `${n(c)}__popper vxe-table--ignore-clear`,
327
- onVisibleChange: Fe
323
+ onVisibleChange: Re,
324
+ onChange: D
328
325
  }), {
329
326
  empty: Ke(() => [
330
- Ue((w(), K("div", {
327
+ Ue((w(), U("div", {
331
328
  "element-loading-text": "加载中",
332
- class: U(`${n(c)}__panel`),
329
+ class: z(`${n(c)}__panel`),
333
330
  style: ze({
334
- "--columns": re.value,
335
- "--panel-min-width": ue.value,
331
+ "--columns": ue.value,
332
+ "--panel-min-width": se.value,
336
333
  "--panel-width": O.value ? `${O.value}px` : "100%"
337
334
  })
338
335
  }, [
339
- t.showNav ? (w(), j(Ze, {
336
+ t.showNav ? (w(), q(Ze, {
340
337
  key: 0,
341
338
  "prefix-cls": n(c),
342
339
  keyword: A.value,
343
340
  "tree-data": _.value,
344
- "expanded-keys": ie.value,
341
+ "expanded-keys": re.value,
345
342
  "left-placeholder": e.leftPlaceholder,
346
- "onUpdate:keyword": Ve,
347
- onSelect: Oe
348
- }, null, 8, ["prefix-cls", "keyword", "tree-data", "expanded-keys", "left-placeholder"])) : q("", !0),
349
- z(el, {
343
+ "onUpdate:keyword": Se,
344
+ onSelect: Ve
345
+ }, null, 8, ["prefix-cls", "keyword", "tree-data", "expanded-keys", "left-placeholder"])) : H("", !0),
346
+ j(el, {
350
347
  ref_key: "middleRef",
351
348
  ref: G,
352
349
  "prefix-cls": n(c),
353
350
  multiple: e.multiple,
354
351
  keyword: x.value,
355
- rows: se.value,
352
+ rows: de.value,
356
353
  disabled: B.value,
357
354
  "show-all": t.showAll,
358
355
  "option-per-row": p,
359
356
  "row-height": 40,
360
357
  "selected-values": k.value,
361
- "is-all-checked": n(ce),
362
- "is-indeterminate": n(pe),
363
- "all-checked": Ae.value,
358
+ "is-all-checked": n(pe),
359
+ "is-indeterminate": n(me),
360
+ "all-checked": xe.value,
364
361
  "scroll-to-group-value": b.value,
365
- "group-checked-map": ke.value,
366
- "group-indeterminate-map": Ce.value,
362
+ "group-checked-map": Ce.value,
363
+ "group-indeterminate-map": Ae.value,
367
364
  "paste-search": e.pasteSearch,
368
365
  separator: e.separator,
369
366
  "middle-placeholder": e.middlePlaceholder,
370
- "onUpdate:keyword": Se,
367
+ "onUpdate:keyword": $e,
371
368
  onAllCheck: Be,
372
369
  onCheckAll: Ee,
373
370
  onGroupCheck: Pe,
374
371
  onOptionCheck: Ge,
375
372
  onOptionsCheck: Me
376
373
  }, 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"]),
377
- t.multiple ? (w(), j(ll, {
374
+ t.multiple ? (w(), q(ll, {
378
375
  key: 1,
379
376
  "prefix-cls": n(c),
380
377
  multiple: e.multiple,
381
378
  disabled: B.value,
382
- "selected-options": n(de),
379
+ "selected-options": n(ce),
383
380
  onClearAll: _e,
384
381
  onRemove: Le
385
- }, null, 8, ["prefix-cls", "multiple", "disabled", "selected-options"])) : q("", !0)
382
+ }, null, 8, ["prefix-cls", "multiple", "disabled", "selected-options"])) : H("", !0)
386
383
  ], 6)), [
387
- [n(X), n(Z)]
384
+ [n(Y), n(ee)]
388
385
  ])
389
386
  ]),
390
387
  _: 1