@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.
- package/dist/components/tt-area/TtArea.vue.js +1 -1
- package/dist/components/tt-drawer/src/components/DrawerHeader.vue.js +2 -2
- package/dist/components/tt-drawer/src/hooks/useResizable.js +2 -2
- package/dist/components/tt-form/src/form-render/array-register/FormArrayRegister.d.ts +3 -3
- package/dist/components/tt-icon/index.vue.js +2 -2
- package/dist/components/tt-loading/src/loading.vue.js +2 -2
- package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.d.ts +2 -2
- package/dist/components/tt-panel-select/src/hooks/usePanelData.js +93 -86
- package/dist/components/tt-panel-select/src/index.vue.js +1 -0
- package/dist/components/tt-select/src/Select.vue.d.ts +4 -4
- package/dist/components/tt-select/src/components/Table.vue.d.ts +4 -4
- package/dist/components/tt-table/index.d.ts +523 -358
- package/dist/components/tt-table/index.js +6 -4
- package/dist/components/tt-table/src/Table.vue.d.ts +306 -216
- package/dist/components/tt-table/src/Table.vue.js +405 -618
- package/dist/components/tt-table/src/TableForm.vue.d.ts +384 -19
- package/dist/components/tt-table/src/TableForm.vue.js +218 -228
- package/dist/components/tt-table/src/components/TableAction.vue.js +108 -131
- package/dist/components/tt-table/src/components/TableButtons.js +25 -25
- package/dist/components/tt-table/src/components/TableColumnModal.vue2.js +88 -85
- package/dist/components/tt-table/src/components/TableToolbarTools.vue.d.ts +80 -0
- package/dist/components/tt-table/src/components/{TableToobalTools.vue.js → TableToolbarTools.vue.js} +29 -31
- package/dist/components/tt-table/src/components/TableToolbarTools.vue2.js +4 -0
- package/dist/components/tt-table/src/emits.js +2 -1
- package/dist/components/tt-table/src/hooks/useColumnPersistence.d.ts +19 -0
- package/dist/components/tt-table/src/hooks/useColumnPersistence.js +63 -0
- package/dist/components/tt-table/src/hooks/useColumns.d.ts +505 -21
- package/dist/components/tt-table/src/hooks/useColumns.js +100 -245
- package/dist/components/tt-table/src/hooks/useGridProps.d.ts +36 -0
- package/dist/components/tt-table/src/hooks/useGridProps.js +121 -0
- package/dist/components/tt-table/src/hooks/useKeyboardNav.d.ts +11 -0
- package/dist/components/tt-table/src/hooks/useKeyboardNav.js +97 -0
- package/dist/components/tt-table/src/hooks/usePagination.d.ts +14 -8
- package/dist/components/tt-table/src/hooks/usePagination.js +29 -33
- package/dist/components/tt-table/src/hooks/useQuery.d.ts +41 -0
- package/dist/components/tt-table/src/hooks/useQuery.js +147 -0
- package/dist/components/tt-table/src/hooks/useRowIdentity.d.ts +22 -0
- package/dist/components/tt-table/src/hooks/useRowIdentity.js +96 -0
- package/dist/components/tt-table/src/hooks/useRowSelection.d.ts +23 -7
- package/dist/components/tt-table/src/hooks/useRowSelection.js +95 -71
- package/dist/components/tt-table/src/hooks/{useLeftRightSlot.d.ts → useSideSlot.d.ts} +25 -17
- package/dist/components/tt-table/src/hooks/useSideSlot.js +77 -0
- package/dist/components/tt-table/src/hooks/useSyncProps.d.ts +12 -0
- package/dist/components/tt-table/src/hooks/useSyncProps.js +55 -0
- package/dist/components/tt-table/src/hooks/useTableData.d.ts +71 -0
- package/dist/components/tt-table/src/hooks/useTableData.js +307 -0
- package/dist/components/tt-table/src/hooks/useTableFooter.d.ts +15 -0
- package/dist/components/tt-table/src/hooks/useTableFooter.js +46 -0
- package/dist/components/tt-table/src/hooks/useTableForm.d.ts +10 -5
- package/dist/components/tt-table/src/hooks/useTableForm.js +55 -48
- package/dist/components/tt-table/src/hooks/useTableMethods.d.ts +165 -0
- package/dist/components/tt-table/src/hooks/useTableMethods.js +183 -0
- package/dist/components/tt-table/src/hooks/useTableRender.d.ts +24 -55
- package/dist/components/tt-table/src/props.d.ts +318 -151
- package/dist/components/tt-table/src/props.js +117 -270
- package/dist/components/tt-table/src/table-defaults.d.ts +25 -0
- package/dist/components/tt-table/src/table-defaults.js +71 -0
- package/dist/components/tt-table/src/table-mutation-events.d.ts +43 -0
- package/dist/components/tt-table/src/table-mutation-events.js +70 -0
- package/dist/components/tt-table/src/types/table.d.ts +207 -88
- package/dist/components/tt-table/src/types/tableAction.d.ts +23 -0
- package/dist/components/tt-table/src/types/tableForm.d.ts +15 -26
- package/dist/components/tt-table/src/utils/action-tab-index.d.ts +2 -0
- package/dist/components/tt-table/src/utils/action-tab-index.js +50 -0
- package/dist/components/tt-table/src/utils/context.js +25 -12
- package/dist/components/tt-table/src/utils/table-api.d.ts +136 -58
- package/dist/components/tt-table/src/utils/table-api.js +198 -165
- package/dist/components/tt-table/src/utils/table-form-api.d.ts +11 -11
- package/dist/components/tt-table/src/utils/table-form-api.js +41 -31
- package/dist/components/types.d.ts +0 -20
- package/dist/hooks/useSetup.js +0 -3
- package/dist/packages/hooks/src/useDebounce.js +6 -6
- package/dist/packages/utils/src/is.js +20 -18
- package/dist/packages/utils/src/tool.js +76 -149
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/components/tt-table/src/components/TableToobalTools.vue.d.ts +0 -576
- package/dist/components/tt-table/src/components/TableToobalTools.vue2.js +0 -4
- package/dist/components/tt-table/src/enum.d.ts +0 -2
- package/dist/components/tt-table/src/hooks/useCellArea.d.ts +0 -15
- package/dist/components/tt-table/src/hooks/useCellArea.js +0 -15
- package/dist/components/tt-table/src/hooks/useCustomColumns.d.ts +0 -20
- package/dist/components/tt-table/src/hooks/useCustomColumns.js +0 -65
- package/dist/components/tt-table/src/hooks/useDataSource.d.ts +0 -29
- package/dist/components/tt-table/src/hooks/useDataSource.js +0 -232
- package/dist/components/tt-table/src/hooks/useLeftRightSlot.js +0 -64
- package/dist/components/tt-table/src/hooks/useTable.d.ts +0 -7
- package/dist/components/tt-table/src/hooks/useTableEvent.d.ts +0 -101
- package/dist/components/tt-table/src/hooks/useTableEvent.js +0 -197
- package/dist/components/tt-table/src/hooks/useTableFormEvent.d.ts +0 -10
- package/dist/components/tt-table/src/hooks/useTableHeight.d.ts +0 -15
- package/dist/components/tt-table/src/hooks/useTableSlot.d.ts +0 -11
- package/dist/components/tt-table/src/hooks/useTableSlot.js +0 -17
- package/dist/components/tt-table/src/utils/filters.d.ts +0 -109
- package/dist/components/tt-table/src/utils/vxeTable.d.ts +0 -28
- 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-
|
|
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
|
|
4
|
+
const f = /* @__PURE__ */ o(r, [["__scopeId", "data-v-6cdf82e0"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -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
|
|
5
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d731bb93"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
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
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7e6228e4"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
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 : (...
|
|
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 : (...
|
|
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
|
|
4
|
-
import { computed as
|
|
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
|
|
15
|
-
import { pinyin as
|
|
16
|
-
function
|
|
17
|
-
const
|
|
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
|
-
}),
|
|
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
|
-
})),
|
|
32
|
-
async function
|
|
33
|
-
if (!(!l.api || !
|
|
34
|
-
if (
|
|
35
|
-
|
|
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
|
-
|
|
38
|
+
A.value = [];
|
|
39
39
|
try {
|
|
40
|
-
|
|
41
|
-
let e =
|
|
42
|
-
l.beforeFetch &&
|
|
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 &&
|
|
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
|
-
|
|
46
|
+
P.value = !1;
|
|
47
47
|
} finally {
|
|
48
|
-
|
|
48
|
+
b.value = !1, C.value && (C.value = !1, await ne(), G());
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
const { childrenField: t, transform: r, valueField: n, labelField: i, disabledField:
|
|
54
|
-
const
|
|
55
|
-
return Array.isArray(
|
|
56
|
-
}),
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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:
|
|
76
|
+
raw: h
|
|
70
77
|
};
|
|
71
|
-
if (
|
|
72
|
-
const
|
|
73
|
-
|
|
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
|
-
|
|
76
|
-
return
|
|
82
|
+
v.children = void 0;
|
|
83
|
+
return v;
|
|
77
84
|
});
|
|
78
85
|
}
|
|
79
|
-
return
|
|
86
|
+
return _(F);
|
|
80
87
|
}
|
|
81
88
|
function U(e) {
|
|
82
|
-
const t = /* @__PURE__ */ new Map(), r = [], { childrenField: n, valueField: i, parentField:
|
|
83
|
-
return e.forEach((
|
|
84
|
-
const
|
|
85
|
-
t.set(
|
|
86
|
-
}), t.forEach((
|
|
87
|
-
const
|
|
88
|
-
if (
|
|
89
|
-
const
|
|
90
|
-
|
|
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(
|
|
99
|
+
r.push(f);
|
|
93
100
|
}), r;
|
|
94
101
|
}
|
|
95
|
-
function
|
|
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
|
-
}) ?
|
|
113
|
+
}) ? L(t.children) : void 0
|
|
107
114
|
};
|
|
108
115
|
});
|
|
109
116
|
}
|
|
110
117
|
function $(e) {
|
|
111
|
-
return
|
|
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
|
|
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
|
|
138
|
-
const r =
|
|
139
|
-
return l.showOriginMode ?
|
|
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
|
|
142
|
-
const { childrenField: e, transform: t } =
|
|
143
|
-
const
|
|
144
|
-
return Array.isArray(
|
|
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
|
|
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,
|
|
152
|
-
|
|
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
|
|
174
|
+
function K(e) {
|
|
168
175
|
const t = /* @__PURE__ */ new Map();
|
|
169
176
|
return e.forEach((r) => {
|
|
170
|
-
const n =
|
|
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
|
|
175
|
-
function
|
|
176
|
-
const t =
|
|
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 =
|
|
179
|
-
return
|
|
185
|
+
const r = W(e);
|
|
186
|
+
return V.set(e, r), r;
|
|
180
187
|
}
|
|
181
|
-
function
|
|
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(
|
|
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:
|
|
189
|
-
fetchApi:
|
|
190
|
-
treeOptions:
|
|
195
|
+
loading: b,
|
|
196
|
+
fetchApi: G,
|
|
197
|
+
treeOptions: S,
|
|
191
198
|
navTreeOptions: x,
|
|
192
199
|
navNodes: B,
|
|
193
|
-
leafNodes:
|
|
194
|
-
filterNodes:
|
|
195
|
-
buildOptionGroups:
|
|
196
|
-
isFirstLoaded:
|
|
200
|
+
leafNodes: O,
|
|
201
|
+
filterNodes: D,
|
|
202
|
+
buildOptionGroups: j,
|
|
203
|
+
isFirstLoaded: P
|
|
197
204
|
};
|
|
198
205
|
}
|
|
199
206
|
export {
|
|
200
|
-
|
|
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;
|