@dazhicheng/ui 1.5.266 → 1.6.0

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 (96) hide show
  1. package/dist/components/tt-area/TtArea.vue.js +1 -1
  2. package/dist/components/tt-drawer/src/components/DrawerHeader.vue.js +2 -2
  3. package/dist/components/tt-drawer/src/hooks/useResizable.js +2 -2
  4. package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.d.ts +3 -3
  5. package/dist/components/tt-icon/index.vue.js +2 -2
  6. package/dist/components/tt-loading/src/loading.vue.js +2 -2
  7. package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.d.ts +2 -2
  8. package/dist/components/tt-panel-select/src/hooks/usePanelData.js +93 -86
  9. package/dist/components/tt-panel-select/src/index.vue.js +1 -0
  10. package/dist/components/tt-select/src/Select.vue.d.ts +4 -4
  11. package/dist/components/tt-select/src/components/Table.vue.d.ts +4 -4
  12. package/dist/components/tt-table/index.d.ts +523 -358
  13. package/dist/components/tt-table/index.js +6 -4
  14. package/dist/components/tt-table/src/Table.vue.d.ts +306 -216
  15. package/dist/components/tt-table/src/Table.vue.js +405 -618
  16. package/dist/components/tt-table/src/TableForm.vue.d.ts +384 -19
  17. package/dist/components/tt-table/src/TableForm.vue.js +218 -228
  18. package/dist/components/tt-table/src/components/TableAction.vue.js +108 -131
  19. package/dist/components/tt-table/src/components/TableButtons.js +25 -25
  20. package/dist/components/tt-table/src/components/TableColumnModal.vue2.js +88 -85
  21. package/dist/components/tt-table/src/components/TableToolbarTools.vue.d.ts +80 -0
  22. package/dist/components/tt-table/src/components/{TableToobalTools.vue.js → TableToolbarTools.vue.js} +29 -31
  23. package/dist/components/tt-table/src/components/TableToolbarTools.vue2.js +4 -0
  24. package/dist/components/tt-table/src/emits.js +2 -1
  25. package/dist/components/tt-table/src/hooks/useColumnPersistence.d.ts +19 -0
  26. package/dist/components/tt-table/src/hooks/useColumnPersistence.js +63 -0
  27. package/dist/components/tt-table/src/hooks/useColumns.d.ts +505 -21
  28. package/dist/components/tt-table/src/hooks/useColumns.js +100 -245
  29. package/dist/components/tt-table/src/hooks/useGridProps.d.ts +36 -0
  30. package/dist/components/tt-table/src/hooks/useGridProps.js +121 -0
  31. package/dist/components/tt-table/src/hooks/useKeyboardNav.d.ts +11 -0
  32. package/dist/components/tt-table/src/hooks/useKeyboardNav.js +97 -0
  33. package/dist/components/tt-table/src/hooks/usePagination.d.ts +14 -8
  34. package/dist/components/tt-table/src/hooks/usePagination.js +29 -33
  35. package/dist/components/tt-table/src/hooks/useQuery.d.ts +41 -0
  36. package/dist/components/tt-table/src/hooks/useQuery.js +147 -0
  37. package/dist/components/tt-table/src/hooks/useRowIdentity.d.ts +22 -0
  38. package/dist/components/tt-table/src/hooks/useRowIdentity.js +96 -0
  39. package/dist/components/tt-table/src/hooks/useRowSelection.d.ts +23 -7
  40. package/dist/components/tt-table/src/hooks/useRowSelection.js +95 -71
  41. package/dist/components/tt-table/src/hooks/{useLeftRightSlot.d.ts → useSideSlot.d.ts} +25 -17
  42. package/dist/components/tt-table/src/hooks/useSideSlot.js +77 -0
  43. package/dist/components/tt-table/src/hooks/useSyncProps.d.ts +12 -0
  44. package/dist/components/tt-table/src/hooks/useSyncProps.js +55 -0
  45. package/dist/components/tt-table/src/hooks/useTableData.d.ts +71 -0
  46. package/dist/components/tt-table/src/hooks/useTableData.js +307 -0
  47. package/dist/components/tt-table/src/hooks/useTableFooter.d.ts +15 -0
  48. package/dist/components/tt-table/src/hooks/useTableFooter.js +46 -0
  49. package/dist/components/tt-table/src/hooks/useTableForm.d.ts +10 -5
  50. package/dist/components/tt-table/src/hooks/useTableForm.js +55 -48
  51. package/dist/components/tt-table/src/hooks/useTableMethods.d.ts +165 -0
  52. package/dist/components/tt-table/src/hooks/useTableMethods.js +183 -0
  53. package/dist/components/tt-table/src/hooks/useTableRender.d.ts +24 -55
  54. package/dist/components/tt-table/src/props.d.ts +318 -151
  55. package/dist/components/tt-table/src/props.js +117 -270
  56. package/dist/components/tt-table/src/table-defaults.d.ts +25 -0
  57. package/dist/components/tt-table/src/table-defaults.js +71 -0
  58. package/dist/components/tt-table/src/table-mutation-events.d.ts +43 -0
  59. package/dist/components/tt-table/src/table-mutation-events.js +70 -0
  60. package/dist/components/tt-table/src/types/table.d.ts +207 -88
  61. package/dist/components/tt-table/src/types/tableAction.d.ts +23 -0
  62. package/dist/components/tt-table/src/types/tableForm.d.ts +15 -26
  63. package/dist/components/tt-table/src/utils/action-tab-index.d.ts +2 -0
  64. package/dist/components/tt-table/src/utils/action-tab-index.js +50 -0
  65. package/dist/components/tt-table/src/utils/context.js +25 -12
  66. package/dist/components/tt-table/src/utils/table-api.d.ts +136 -58
  67. package/dist/components/tt-table/src/utils/table-api.js +198 -165
  68. package/dist/components/tt-table/src/utils/table-form-api.d.ts +11 -11
  69. package/dist/components/tt-table/src/utils/table-form-api.js +41 -31
  70. package/dist/components/types.d.ts +0 -20
  71. package/dist/hooks/useSetup.js +0 -3
  72. package/dist/packages/hooks/src/useDebounce.js +6 -6
  73. package/dist/packages/utils/src/is.js +20 -18
  74. package/dist/packages/utils/src/tool.js +76 -149
  75. package/dist/style.css +1 -1
  76. package/package.json +1 -1
  77. package/dist/components/tt-table/src/components/TableToobalTools.vue.d.ts +0 -576
  78. package/dist/components/tt-table/src/components/TableToobalTools.vue2.js +0 -4
  79. package/dist/components/tt-table/src/enum.d.ts +0 -2
  80. package/dist/components/tt-table/src/hooks/useCellArea.d.ts +0 -15
  81. package/dist/components/tt-table/src/hooks/useCellArea.js +0 -15
  82. package/dist/components/tt-table/src/hooks/useCustomColumns.d.ts +0 -20
  83. package/dist/components/tt-table/src/hooks/useCustomColumns.js +0 -65
  84. package/dist/components/tt-table/src/hooks/useDataSource.d.ts +0 -29
  85. package/dist/components/tt-table/src/hooks/useDataSource.js +0 -232
  86. package/dist/components/tt-table/src/hooks/useLeftRightSlot.js +0 -64
  87. package/dist/components/tt-table/src/hooks/useTable.d.ts +0 -7
  88. package/dist/components/tt-table/src/hooks/useTableEvent.d.ts +0 -101
  89. package/dist/components/tt-table/src/hooks/useTableEvent.js +0 -197
  90. package/dist/components/tt-table/src/hooks/useTableFormEvent.d.ts +0 -10
  91. package/dist/components/tt-table/src/hooks/useTableHeight.d.ts +0 -15
  92. package/dist/components/tt-table/src/hooks/useTableSlot.d.ts +0 -11
  93. package/dist/components/tt-table/src/hooks/useTableSlot.js +0 -17
  94. package/dist/components/tt-table/src/utils/filters.d.ts +0 -109
  95. package/dist/components/tt-table/src/utils/vxeTable.d.ts +0 -28
  96. package/dist/packages/utils/src/check.js +0 -10
@@ -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
  };
@@ -74,8 +74,8 @@ function Y(d, p, v) {
74
74
  ]
75
75
  ),
76
76
  {
77
- inheritAttrs: !1,
78
- name: "ResizableBar"
77
+ name: "ResizableBar",
78
+ inheritAttrs: !1
79
79
  }
80
80
  );
81
81
  return M(
@@ -4,36 +4,36 @@ import { FieldEntry } from '../../types/forms';
4
4
  export declare const FormArrayRegister: import('vue').DefineComponent<{
5
5
  disabled?: boolean | undefined;
6
6
  hide?: boolean | undefined;
7
+ rules?: import('../../types').FormSchemaRuleType | undefined;
7
8
  defaultValue?: any;
8
9
  wrapperClass?: string | undefined;
9
10
  arraySchema?: FormSchema<Record<string, any>>[] | ((entry: FieldEntry<Recordable>, currentIndex: number, ctx: ArraySchemaContext) => FormSchema<Record<string, any>>[]) | undefined;
10
11
  dependencies?: import('./types').ArrayRegisterDependencies<Record<string, any>> | undefined;
11
12
  fieldName: string;
12
- rules?: import('../../types').FormSchemaRuleType | undefined;
13
13
  formItemClass?: (() => string) | string | undefined;
14
14
  virtual?: boolean | undefined;
15
15
  progressive?: boolean | undefined;
16
16
  }, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
17
17
  disabled?: boolean | undefined;
18
18
  hide?: boolean | undefined;
19
+ rules?: import('../../types').FormSchemaRuleType | undefined;
19
20
  defaultValue?: any;
20
21
  wrapperClass?: string | undefined;
21
22
  arraySchema?: FormSchema<Record<string, any>>[] | ((entry: FieldEntry<Recordable>, currentIndex: number, ctx: ArraySchemaContext) => FormSchema<Record<string, any>>[]) | undefined;
22
23
  dependencies?: import('./types').ArrayRegisterDependencies<Record<string, any>> | undefined;
23
24
  fieldName: string;
24
- rules?: import('../../types').FormSchemaRuleType | undefined;
25
25
  formItemClass?: (() => string) | string | undefined;
26
26
  virtual?: boolean | undefined;
27
27
  progressive?: boolean | undefined;
28
28
  }> & Readonly<{}>, {
29
29
  readonly disabled: boolean | undefined;
30
30
  readonly hide: boolean | undefined;
31
+ readonly rules: import('../../types').FormSchemaRuleType | undefined;
31
32
  readonly defaultValue: any;
32
33
  readonly wrapperClass: string;
33
34
  readonly useArraySchema: boolean | undefined;
34
35
  readonly arraySchema: import('./props').ArraySchemaProp;
35
36
  readonly dependencies: import('./types').ArrayRegisterDependencies | undefined;
36
- readonly rules: import('../../types').FormSchemaRuleType | undefined;
37
37
  readonly formItemClass: NonNullable<string | (() => string) | undefined>;
38
38
  readonly virtual: boolean;
39
39
  readonly progressive: boolean;
@@ -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
  };
@@ -157,7 +157,7 @@ declare const _default: import('vue').DefineComponent<PanelMiddleProps, {
157
157
  };
158
158
  $forceUpdate: () => void;
159
159
  $nextTick: typeof nextTick;
160
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (... /** @type { [typeof __VLS_components.TtText, typeof __VLS_components.TtText, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
160
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
161
161
  } & Readonly<{
162
162
  type: import('element-plus').InputType;
163
163
  disabled: boolean;
@@ -307,7 +307,7 @@ declare const _default: import('vue').DefineComponent<PanelMiddleProps, {
307
307
  };
308
308
  $forceUpdate: () => void;
309
309
  $nextTick: typeof nextTick;
310
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (... /** @type { [typeof __VLS_components.TtText, typeof __VLS_components.TtText, ] } */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
310
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
311
311
  } & Readonly<{
312
312
  tabindex: number | string;
313
313
  height: number | string;
@@ -1,7 +1,7 @@
1
1
  import "axios";
2
2
  import "element-plus";
3
- import { isFunction as w } from "../../../../packages/utils/src/is.js";
4
- import { computed as d, ref as T, unref as Z, nextTick as ee } from "vue";
3
+ import { isFunction as y } from "../../../../packages/utils/src/is.js";
4
+ import { computed as p, ref as w, toRaw as te, unref as re, nextTick as ne } from "vue";
5
5
  import "xe-utils";
6
6
  import "dayjs";
7
7
  import "dayjs/plugin/utc";
@@ -11,10 +11,10 @@ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/ae
11
11
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
12
12
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
13
13
  import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
14
- import { get as a, omit as te, cloneDeep as re } from "lodash-es";
15
- import { pinyin as ne } from "pinyin-pro";
16
- function Fe(l) {
17
- const A = d(() => {
14
+ import { get as o, cloneDeep as ie, omit as le } from "lodash-es";
15
+ import { pinyin as ae } from "pinyin-pro";
16
+ function Te(l) {
17
+ const T = p(() => {
18
18
  const e = l.treeConfig || {};
19
19
  return {
20
20
  transform: e.transform,
@@ -25,74 +25,81 @@ function Fe(l) {
25
25
  parentField: e.parentField ?? "pid",
26
26
  rootParentValue: e.rootParentValue ?? null
27
27
  };
28
- }), F = T(!1), C = T([]), P = T(!1), M = T(!1), S = d(() => w(l.api) ? C.value : l.options || []), N = d(() => K(S.value)), x = d(() => !V() && l.showPinyinMode ? $(G.value) : D(N.value)), O = d(() => q(N.value)), B = d(() => O.value.filter((e) => {
28
+ }), b = w(!1), A = w([]), C = w(!1), P = w(!1), M = p(() => te(y(l.api) ? A.value : l.options || [])), S = p(() => R(M.value)), x = p(() => !k() && l.showPinyinMode ? $(O.value) : L(S.value)), N = p(() => q(S.value)), B = p(() => N.value.filter((e) => {
29
29
  var t;
30
30
  return (t = e.children) == null ? void 0 : t.length;
31
- })), G = d(() => O.value.filter((e) => e.children === void 0));
32
- async function L() {
33
- if (!(!l.api || !w(l.api))) {
34
- if (F.value) {
35
- P.value = !0;
31
+ })), O = p(() => N.value.filter((e) => e.children === void 0));
32
+ async function G() {
33
+ if (!(!l.api || !y(l.api))) {
34
+ if (b.value) {
35
+ C.value = !0;
36
36
  return;
37
37
  }
38
- C.value = [];
38
+ A.value = [];
39
39
  try {
40
- F.value = !0;
41
- let e = Z(l.params);
42
- l.beforeFetch && w(l.beforeFetch) && (e = await l.beforeFetch(re(e)) || e);
40
+ b.value = !0;
41
+ let e = re(l.params);
42
+ l.beforeFetch && y(l.beforeFetch) && (e = await l.beforeFetch(ie(e)) || e);
43
43
  let t = await l.api(e);
44
- l.afterFetch && w(l.afterFetch) && (t = await l.afterFetch(t) || t), M.value = !0, C.value = Array.isArray(t) ? t : a(t, l.resultField || "") || [];
44
+ l.afterFetch && y(l.afterFetch) && (t = await l.afterFetch(t) || t), P.value = !0, A.value = Array.isArray(t) ? t : o(t, l.resultField || "") || [];
45
45
  } catch {
46
- M.value = !1;
46
+ P.value = !1;
47
47
  } finally {
48
- F.value = !1, P.value && (P.value = !1, await ee(), L());
48
+ b.value = !1, C.value && (C.value = !1, await ne(), G());
49
49
  }
50
50
  }
51
51
  }
52
- function K(e) {
53
- const { childrenField: t, transform: r, valueField: n, labelField: i, disabledField: o, parentField: s } = A.value, u = e.some((m) => Array.isArray(a(m, t))), h = e.some((m) => {
54
- const g = a(m, t);
55
- return Array.isArray(g) && g.length > 0;
56
- }), v = u || h ? e : r ? U(e) : e;
57
- function p(m, g = 0, b) {
58
- return m.map((c) => {
59
- const W = a(c, n), I = a(c, t), X = Array.isArray(I), Y = [i, n, o, t].filter(
60
- (y) => !!y
61
- ), f = {
62
- ...te(c, Y),
63
- label: String(a(c, i) ?? ""),
64
- value: W,
65
- disabled: !!a(c, o),
66
- pid: (b == null ? void 0 : b.value) ?? a(c, s),
67
- level: g,
52
+ function R(e) {
53
+ const { childrenField: t, transform: r, valueField: n, labelField: i, disabledField: s, parentField: u } = T.value, f = e.some((a) => Array.isArray(o(a, t))), m = e.some((a) => {
54
+ const d = o(a, t);
55
+ return Array.isArray(d) && d.length > 0;
56
+ }), F = f || m ? e : r ? U(e) : e, g = [i, n, s, t].filter(
57
+ (a) => !!a
58
+ ), X = g.some((a) => a.includes("."));
59
+ function Y(a) {
60
+ if (X) return le(a, g);
61
+ const d = {};
62
+ for (const c in a)
63
+ g.includes(c) || (d[c] = a[c]);
64
+ return d;
65
+ }
66
+ function _(a, d = 0, c) {
67
+ return a.map((h) => {
68
+ const Z = o(h, n), z = o(h, t), ee = Array.isArray(z), v = {
69
+ ...Y(h),
70
+ label: String(o(h, i) ?? ""),
71
+ value: Z,
72
+ disabled: !!o(h, s),
73
+ pid: (c == null ? void 0 : c.value) ?? o(h, u),
74
+ level: d,
68
75
  path: [],
69
- raw: c
76
+ raw: h
70
77
  };
71
- if (f.path = b ? [...b.path, f] : [f], X) {
72
- const y = I;
73
- f.children = y.length ? p(y, g + 1, f) : [];
78
+ if (v.path = c ? [...c.path, v] : [v], ee) {
79
+ const I = z;
80
+ v.children = I.length ? _(I, d + 1, v) : [];
74
81
  } else
75
- f.children = void 0;
76
- return f;
82
+ v.children = void 0;
83
+ return v;
77
84
  });
78
85
  }
79
- return p(v);
86
+ return _(F);
80
87
  }
81
88
  function U(e) {
82
- const t = /* @__PURE__ */ new Map(), r = [], { childrenField: n, valueField: i, parentField: o, rootParentValue: s } = A.value;
83
- return e.forEach((u) => {
84
- const h = a(u, i);
85
- t.set(h, { ...u });
86
- }), t.forEach((u) => {
87
- const h = a(u, o), v = h === s ? void 0 : t.get(h);
88
- if (v) {
89
- const p = a(v, n) || [];
90
- p.push(u), v[n] = p;
89
+ const t = /* @__PURE__ */ new Map(), r = [], { childrenField: n, valueField: i, parentField: s, rootParentValue: u } = T.value;
90
+ return e.forEach((f) => {
91
+ const m = o(f, i);
92
+ t.set(m, { ...f });
93
+ }), t.forEach((f) => {
94
+ const m = o(f, s), F = m === u ? void 0 : t.get(m);
95
+ if (F) {
96
+ const g = o(F, n) || [];
97
+ g.push(f), F[n] = g;
91
98
  } else
92
- r.push(u);
99
+ r.push(f);
93
100
  }), r;
94
101
  }
95
- function D(e) {
102
+ function L(e) {
96
103
  return e.filter((t) => {
97
104
  var r;
98
105
  return (r = t.children) == null ? void 0 : r.length;
@@ -103,12 +110,12 @@ function Fe(l) {
103
110
  children: (r = t.children) != null && r.some((n) => {
104
111
  var i;
105
112
  return (i = n.children) == null ? void 0 : i.length;
106
- }) ? D(t.children) : void 0
113
+ }) ? L(t.children) : void 0
107
114
  };
108
115
  });
109
116
  }
110
117
  function $(e) {
111
- return k(e).map((r) => {
118
+ return K(e).map((r) => {
112
119
  const n = {
113
120
  label: String(r.label),
114
121
  value: r.value,
@@ -130,32 +137,32 @@ function Fe(l) {
130
137
  }
131
138
  return t;
132
139
  }
133
- function E(e, t) {
140
+ function D(e, t) {
134
141
  const r = t.trim().toLowerCase();
135
142
  return r ? e.filter((n) => n.label.toLowerCase().includes(r)) : e;
136
143
  }
137
- function R(e, t) {
138
- const r = E(e, t);
139
- return l.showOriginMode ? H(r) : l.showPinyinMode ? k(r) : V() ? j(r) : _(r);
144
+ function j(e, t) {
145
+ const r = D(e, t);
146
+ return l.showOriginMode ? J(r) : l.showPinyinMode ? K(r) : k() ? H(r) : E(r);
140
147
  }
141
- function V() {
142
- const { childrenField: e, transform: t } = A.value, r = S.value.some((o) => Array.isArray(a(o, e))), n = S.value.some((o) => {
143
- const s = a(o, e);
144
- return Array.isArray(s) && !!s.length;
148
+ function k() {
149
+ const { childrenField: e, transform: t } = T.value, r = M.value.some((s) => Array.isArray(o(s, e))), n = M.value.some((s) => {
150
+ const u = o(s, e);
151
+ return Array.isArray(u) && !!u.length;
145
152
  });
146
153
  return t || !t && (r || n);
147
154
  }
148
- function _(e) {
155
+ function E(e) {
149
156
  const t = /* @__PURE__ */ new Map();
150
157
  return e.forEach((r) => {
151
- const n = r.path.at(-2), i = (n == null ? void 0 : n.value) ?? r.value, o = (n == null ? void 0 : n.label) ?? r.label, s = t.get(i) || { value: i, label: o, options: [] };
152
- s.options.push(r), t.set(i, s);
158
+ const n = r.path.at(-2), i = (n == null ? void 0 : n.value) ?? r.value, s = (n == null ? void 0 : n.label) ?? r.label, u = t.get(i) || { value: i, label: s, options: [] };
159
+ u.options.push(r), t.set(i, u);
153
160
  }), Array.from(t.values());
154
161
  }
155
- function j(e) {
156
- return _(e);
157
- }
158
162
  function H(e) {
163
+ return E(e);
164
+ }
165
+ function J(e) {
159
166
  return e.length ? [
160
167
  {
161
168
  value: "__origin__",
@@ -164,38 +171,38 @@ function Fe(l) {
164
171
  }
165
172
  ] : [];
166
173
  }
167
- function k(e) {
174
+ function K(e) {
168
175
  const t = /* @__PURE__ */ new Map();
169
176
  return e.forEach((r) => {
170
- const n = J(r.label), i = t.get(n) || { value: n, label: n.toUpperCase(), options: [] };
177
+ const n = Q(r.label), i = t.get(n) || { value: n, label: n.toUpperCase(), options: [] };
171
178
  i.options.push(r), t.set(n, i);
172
179
  }), Array.from(t.values()).sort((r, n) => String(r.value).localeCompare(String(n.value)));
173
180
  }
174
- const z = /* @__PURE__ */ new Map();
175
- function J(e) {
176
- const t = z.get(e);
181
+ const V = /* @__PURE__ */ new Map();
182
+ function Q(e) {
183
+ const t = V.get(e);
177
184
  if (t !== void 0) return t;
178
- const r = Q(e);
179
- return z.set(e, r), r;
185
+ const r = W(e);
186
+ return V.set(e, r), r;
180
187
  }
181
- function Q(e) {
188
+ function W(e) {
182
189
  const t = String(e || "").trim(), r = t.charAt(0).toLowerCase();
183
190
  if (/^[a-z]$/.test(r)) return r;
184
- const i = String(ne(t, { pattern: "initial" })).replace(/\s+/g, "").charAt(0).toLowerCase();
191
+ const i = String(ae(t, { pattern: "initial" })).replace(/\s+/g, "").charAt(0).toLowerCase();
185
192
  return /^[a-z]$/.test(i) ? i : "#";
186
193
  }
187
194
  return {
188
- loading: F,
189
- fetchApi: L,
190
- treeOptions: N,
195
+ loading: b,
196
+ fetchApi: G,
197
+ treeOptions: S,
191
198
  navTreeOptions: x,
192
199
  navNodes: B,
193
- leafNodes: G,
194
- filterNodes: E,
195
- buildOptionGroups: R,
196
- isFirstLoaded: M
200
+ leafNodes: O,
201
+ filterNodes: D,
202
+ buildOptionGroups: j,
203
+ isFirstLoaded: P
197
204
  };
198
205
  }
199
206
  export {
200
- Fe as usePanelSelectData
207
+ Te as usePanelSelectData
201
208
  };
@@ -333,6 +333,7 @@ const p = 4, Ll = /* @__PURE__ */ ze({
333
333
  multiple: e.multiple,
334
334
  filterable: !1,
335
335
  placeholder: e.placeholder,
336
+ persistent: !1,
336
337
  "fallback-placements": ["bottom-start", "bottom-end", "bottom", "top-start", "top-end", "top", "right", "left"],
337
338
  disabled: e.disabled,
338
339
  "popper-class": `${r(c)}__popper vxe-table--ignore-clear`,
@@ -75,8 +75,8 @@ declare function __VLS_template(): {
75
75
  $refs: {
76
76
  [x: string]: unknown;
77
77
  } & {
78
- vxelist: (import('vxe-pc-ui').VxeListMethods & {
79
- $props: import('vxe-pc-ui').VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps;
78
+ vxelist: (import('vxe-pc-ui').VxeListMethods<any> & {
79
+ $props: import('vxe-pc-ui').VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps<any>;
80
80
  $slots: import('vxe-pc-ui').VxeListSlots;
81
81
  }) | null;
82
82
  table: HTMLTableElement;
@@ -570,8 +570,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
570
570
  $refs: {
571
571
  [x: string]: unknown;
572
572
  } & {
573
- vxelist: (import('vxe-pc-ui').VxeListMethods & {
574
- $props: import('vxe-pc-ui').VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps;
573
+ vxelist: (import('vxe-pc-ui').VxeListMethods<any> & {
574
+ $props: import('vxe-pc-ui').VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps<any>;
575
575
  $slots: import('vxe-pc-ui').VxeListSlots;
576
576
  }) | null;
577
577
  table: HTMLTableElement;
@@ -32,8 +32,8 @@ declare function __VLS_template(): {
32
32
  empty: () => VNode;
33
33
  };
34
34
  refs: {
35
- vxelist: (import('vxe-pc-ui').VxeListMethods & {
36
- $props: VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps;
35
+ vxelist: (import('vxe-pc-ui').VxeListMethods<any> & {
36
+ $props: VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps<any>;
37
37
  $slots: import('vxe-pc-ui').VxeListSlots;
38
38
  }) | null;
39
39
  table: HTMLTableElement;
@@ -234,8 +234,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
234
234
  hasNextPage: boolean;
235
235
  showCheckbox: boolean;
236
236
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
237
- vxelist: (import('vxe-pc-ui').VxeListMethods & {
238
- $props: VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps;
237
+ vxelist: (import('vxe-pc-ui').VxeListMethods<any> & {
238
+ $props: VxeListProps<any> & import('vxe-pc-ui').VxeListEventProps<any>;
239
239
  $slots: import('vxe-pc-ui').VxeListSlots;
240
240
  }) | null;
241
241
  table: HTMLTableElement;