@dazhicheng/ui 1.6.12 → 1.6.14
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/api/supplier.d.ts +4 -0
- package/dist/api/supplier.js +15 -9
- 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-icon/index.vue.js +2 -2
- package/dist/components/tt-loading/src/loading.vue.js +2 -2
- package/dist/hooks/basicDataCodes.d.ts +7 -0
- package/dist/hooks/basicDataCodes.js +148 -105
- package/dist/hooks/useBasicDataOptions.js +102 -107
- package/dist/hooks/usePanelSelectSchemas.js +84 -80
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -1,153 +1,148 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { useRoute as
|
|
3
|
-
import { useOwnerRoutePath as
|
|
4
|
-
import { GEO_LEVEL_CODES as M, canDeriveGeoLevel as x, deriveRegionLevelOptionsFromGeoSource as
|
|
5
|
-
const
|
|
6
|
-
function
|
|
7
|
-
return Array.isArray(
|
|
1
|
+
import { ref as b, watchEffect as j, unref as q, computed as B } from "vue";
|
|
2
|
+
import { useRoute as H } from "vue-router";
|
|
3
|
+
import { useOwnerRoutePath as I } from "./useOwnerRoutePath.js";
|
|
4
|
+
import { GEO_LEVEL_CODES as M, canDeriveGeoLevel as x, deriveRegionLevelOptionsFromGeoSource as Y, resolveHighestGeoLevelCode as A, isGeoLevelCode as L, CODE_REGISTRY as k } from "./basicDataCodes.js";
|
|
5
|
+
const u = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map();
|
|
6
|
+
function C(r) {
|
|
7
|
+
return Array.isArray(r) ? r : [];
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
return
|
|
9
|
+
function J(r) {
|
|
10
|
+
return r.reduce((c, a) => (c[a] = [], c), {});
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
return Object.prototype.hasOwnProperty.call(
|
|
12
|
+
function D(r, c) {
|
|
13
|
+
return Object.prototype.hasOwnProperty.call(r, c);
|
|
14
14
|
}
|
|
15
|
-
function F(
|
|
16
|
-
return A(M.filter((
|
|
15
|
+
function F(r) {
|
|
16
|
+
return A(M.filter((c) => D(r, c)));
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
const
|
|
20
|
-
if (!
|
|
21
|
-
const a =
|
|
22
|
-
if (!Array.isArray(a)) return
|
|
23
|
-
const
|
|
24
|
-
let
|
|
18
|
+
function S(r) {
|
|
19
|
+
const c = F(r);
|
|
20
|
+
if (!c) return r;
|
|
21
|
+
const a = r[c];
|
|
22
|
+
if (!Array.isArray(a)) return r;
|
|
23
|
+
const l = { ...r };
|
|
24
|
+
let o = !1;
|
|
25
25
|
return M.forEach((f) => {
|
|
26
|
-
x(
|
|
27
|
-
}),
|
|
26
|
+
x(c, f) && (D(l, f) || (l[f] = Y(a, f), o = !0));
|
|
27
|
+
}), o ? l : r;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
const a = F(
|
|
31
|
-
return
|
|
29
|
+
function N(r, c) {
|
|
30
|
+
const a = F(c), l = r.filter(L), o = a || A(l) || void 0;
|
|
31
|
+
return o ? r.filter((f) => L(f) ? !(x(o, f) || f === o && D(c, o)) : !0) : r;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
const
|
|
35
|
-
function
|
|
36
|
-
|
|
37
|
-
(e,
|
|
33
|
+
function $(r) {
|
|
34
|
+
const c = H(), a = I(), l = b({});
|
|
35
|
+
function o(t = {}) {
|
|
36
|
+
l.value = r.codes.reduce(
|
|
37
|
+
(e, n) => (e[n] = C(t[n]), e),
|
|
38
38
|
{}
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
|
-
|
|
41
|
+
o();
|
|
42
42
|
function f(t) {
|
|
43
|
-
|
|
43
|
+
u.delete(t), y.delete(t);
|
|
44
44
|
}
|
|
45
45
|
function _(t) {
|
|
46
|
-
const e =
|
|
47
|
-
|
|
46
|
+
const e = g.get(t) || /* @__PURE__ */ new Set(), n = e.size;
|
|
47
|
+
r.codes.forEach((s) => e.add(s)), g.set(t, e), e.size !== n && P(t);
|
|
48
48
|
}
|
|
49
49
|
function z(t) {
|
|
50
|
-
|
|
50
|
+
o(u.get(t));
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function P(t) {
|
|
53
53
|
const e = y.get(t);
|
|
54
54
|
if (e) return e;
|
|
55
|
-
const
|
|
56
|
-
return y.set(t,
|
|
57
|
-
y.get(t) ===
|
|
58
|
-
}),
|
|
55
|
+
const n = Promise.resolve().then(() => E());
|
|
56
|
+
return y.set(t, n), n.finally(() => {
|
|
57
|
+
y.get(t) === n && y.delete(t);
|
|
58
|
+
}), n;
|
|
59
59
|
}
|
|
60
60
|
async function T(t) {
|
|
61
|
-
var
|
|
62
|
-
const e = (
|
|
61
|
+
var s;
|
|
62
|
+
const e = (s = c.meta) == null ? void 0 : s.permissionOnlyCode;
|
|
63
63
|
return (await Promise.allSettled(
|
|
64
|
-
t.map(async (
|
|
64
|
+
t.map(async (i) => {
|
|
65
65
|
try {
|
|
66
|
-
const
|
|
67
|
-
return [
|
|
66
|
+
const h = await k[i].fetchOptions({ permissionOnlyCode: e });
|
|
67
|
+
return [i, C(h)];
|
|
68
68
|
} catch {
|
|
69
|
-
return [
|
|
69
|
+
return [i, []];
|
|
70
70
|
}
|
|
71
71
|
})
|
|
72
|
-
)).reduce((
|
|
73
|
-
const
|
|
74
|
-
return
|
|
72
|
+
)).reduce((i, d, h) => {
|
|
73
|
+
const w = t[h];
|
|
74
|
+
return d.status === "fulfilled" ? i[d.value[0]] = C(d.value[1]) : i[w] = [], i;
|
|
75
75
|
}, {});
|
|
76
76
|
}
|
|
77
|
-
async function
|
|
77
|
+
async function E(t = !1) {
|
|
78
78
|
const e = a;
|
|
79
|
-
let r = [];
|
|
80
79
|
try {
|
|
81
|
-
const
|
|
82
|
-
if (
|
|
83
|
-
let
|
|
84
|
-
|
|
80
|
+
const n = q(r.dataSource);
|
|
81
|
+
if (n) {
|
|
82
|
+
let s = { ...u.get(e) || {}, ...n };
|
|
83
|
+
s = S(s), u.set(e, s), o(s);
|
|
85
84
|
return;
|
|
86
85
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
if (c.set(e, p), r = l.filter((b) => !w(p, b)), !r.length) {
|
|
102
|
-
s(p);
|
|
103
|
-
return;
|
|
86
|
+
for (; ; ) {
|
|
87
|
+
const s = S(u.get(e) || {});
|
|
88
|
+
s !== (u.get(e) || {}) && u.set(e, s);
|
|
89
|
+
const i = [...g.get(e) || r.codes], d = t ? i : i.filter((p) => !D(s, p));
|
|
90
|
+
if (t = !1, !d.length) {
|
|
91
|
+
o(s);
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
const h = O.get(e);
|
|
95
|
+
if (h)
|
|
96
|
+
try {
|
|
97
|
+
await h;
|
|
98
|
+
continue;
|
|
99
|
+
} catch {
|
|
104
100
|
}
|
|
105
|
-
|
|
106
|
-
|
|
101
|
+
const w = N(d, s);
|
|
102
|
+
if (!w.length) {
|
|
103
|
+
const p = S(s);
|
|
104
|
+
u.set(e, p), o(p);
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
const G = T(w), R = (m.get(e) || 0) + 1;
|
|
108
|
+
m.set(e, R), O.set(e, G);
|
|
109
|
+
try {
|
|
110
|
+
const p = await G;
|
|
111
|
+
if (m.get(e) !== R)
|
|
112
|
+
continue;
|
|
113
|
+
let v = {
|
|
114
|
+
...u.get(e) || {},
|
|
115
|
+
...p
|
|
116
|
+
};
|
|
117
|
+
v = S(v), u.set(e, v), o(v);
|
|
118
|
+
} finally {
|
|
119
|
+
m.get(e) === R && O.delete(e);
|
|
107
120
|
}
|
|
108
|
-
const O = Q(r, o);
|
|
109
|
-
if (!O.length) {
|
|
110
|
-
const i = C(o);
|
|
111
|
-
c.set(e, i), s(i);
|
|
112
|
-
return;
|
|
113
|
-
}
|
|
114
|
-
const G = T(O), P = (S.get(e) || 0) + 1;
|
|
115
|
-
S.set(e, P), D.set(e, G);
|
|
116
|
-
try {
|
|
117
|
-
const i = await G;
|
|
118
|
-
if (S.get(e) !== P) return;
|
|
119
|
-
let p = {
|
|
120
|
-
...c.get(e) || {},
|
|
121
|
-
...i
|
|
122
|
-
};
|
|
123
|
-
p = C(p), c.set(e, p), s(p);
|
|
124
|
-
} finally {
|
|
125
|
-
S.get(e) === P && D.delete(e);
|
|
126
121
|
}
|
|
127
122
|
} catch {
|
|
128
|
-
const
|
|
129
|
-
|
|
123
|
+
const n = [...g.get(e) || r.codes], s = J(n), d = { ...u.get(e) || {}, ...s };
|
|
124
|
+
u.set(e, d), o(d);
|
|
130
125
|
}
|
|
131
126
|
}
|
|
132
127
|
async function V() {
|
|
133
|
-
const t = a, e = new Set(
|
|
134
|
-
|
|
128
|
+
const t = a, e = new Set(g.get(t) || r.codes);
|
|
129
|
+
O.clear(), y.clear(), u.clear(), g.clear(), m.clear(), g.set(t, e), f(t), await E(!0);
|
|
135
130
|
}
|
|
136
|
-
return
|
|
137
|
-
const t = q(
|
|
131
|
+
return j(() => {
|
|
132
|
+
const t = q(r.dataSource);
|
|
138
133
|
if (!t) return;
|
|
139
134
|
const e = a;
|
|
140
|
-
let
|
|
141
|
-
|
|
142
|
-
}), _(a),
|
|
143
|
-
dataSource:
|
|
144
|
-
const t =
|
|
145
|
-
(e,
|
|
135
|
+
let n = { ...u.get(e) || {}, ...t };
|
|
136
|
+
n = S(n), u.set(e, n), o(n);
|
|
137
|
+
}), _(a), P(a).then(() => z(a)), {
|
|
138
|
+
dataSource: B(() => {
|
|
139
|
+
const t = r.codes.reduce(
|
|
140
|
+
(e, n) => (e[n] = C(l.value[n]), e),
|
|
146
141
|
{}
|
|
147
142
|
);
|
|
148
143
|
return new Proxy(t, {
|
|
149
|
-
get(e,
|
|
150
|
-
return typeof
|
|
144
|
+
get(e, n) {
|
|
145
|
+
return typeof n != "string" ? [] : C(t[n]);
|
|
151
146
|
},
|
|
152
147
|
set() {
|
|
153
148
|
return !1;
|
|
@@ -158,5 +153,5 @@ function K(n) {
|
|
|
158
153
|
};
|
|
159
154
|
}
|
|
160
155
|
export {
|
|
161
|
-
|
|
156
|
+
$ as useBasicDataOptions
|
|
162
157
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "axios";
|
|
2
2
|
import "element-plus";
|
|
3
|
-
import { isFunction as
|
|
3
|
+
import { isFunction as v } from "../packages/utils/src/is.js";
|
|
4
4
|
import "vue";
|
|
5
5
|
import "dayjs";
|
|
6
6
|
import "numeral";
|
|
@@ -12,34 +12,34 @@ import "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
|
|
|
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 { omit as
|
|
16
|
-
import { CODE_REGISTRY as
|
|
17
|
-
import { useBasicDataOptions as
|
|
18
|
-
const
|
|
15
|
+
import { omit as $ } from "lodash-es";
|
|
16
|
+
import { CODE_REGISTRY as le, resolveDefaultGroupBy as pe, CODES as ue, GROUP_BY as j, groupPurchasePlaceOptions as ie, groupBasicDataOptions as ae } from "./basicDataCodes.js";
|
|
17
|
+
import { useBasicDataOptions as de } from "./useBasicDataOptions.js";
|
|
18
|
+
const E = "all";
|
|
19
19
|
function d(t) {
|
|
20
20
|
return Array.isArray(t) ? t : t == null || t === "" ? [] : [t];
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function me(t, n = E) {
|
|
23
23
|
return t === n ? !0 : typeof t == "string" && typeof n == "string" && t.toLowerCase() === String(n).toLowerCase();
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
return d(t).some((r) =>
|
|
25
|
+
function he(t, n = E) {
|
|
26
|
+
return d(t).some((r) => me(r, n));
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function xe(t) {
|
|
29
29
|
return t.replace(/[-_]+/g, " ").replace(/([a-z])([A-Z])/g, "$1 $2").split(/\s+/).filter(Boolean).map((n) => n.charAt(0).toUpperCase() + n.slice(1)).join("");
|
|
30
30
|
}
|
|
31
31
|
function q(t, n) {
|
|
32
32
|
const r = "支持多选和全选", s = typeof t == "string" && t.trim() ? t.trim().replace(/[,,]\s*$/, "") : "请选择";
|
|
33
33
|
return s.includes(r) ? s : `${s},${r}`;
|
|
34
34
|
}
|
|
35
|
-
function Z(t, n, r, s) {
|
|
36
|
-
return t ? f(t) ? t(n, r, s) : t : {};
|
|
37
|
-
}
|
|
38
35
|
function H(t, n, r, s) {
|
|
36
|
+
return t ? v(t) ? t(n, r, s) : t : {};
|
|
37
|
+
}
|
|
38
|
+
function Z(t, n, r, s) {
|
|
39
39
|
const p = new Set(r.map((e) => e.value)), l = t[n];
|
|
40
40
|
if (s) {
|
|
41
41
|
const e = d(l).filter((u) => p.has(u)), c = d(l);
|
|
42
|
-
(e.length !== c.length || e.some((u,
|
|
42
|
+
(e.length !== c.length || e.some((u, F) => u !== c[F])) && (t[n] = e);
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
45
45
|
l == null || l === "" || p.has(l) || (t[n] = void 0);
|
|
@@ -58,7 +58,7 @@ function J(t, n, r, s, p, l) {
|
|
|
58
58
|
function Q(t, n, r) {
|
|
59
59
|
const s = d(t);
|
|
60
60
|
if (!s.length) return [];
|
|
61
|
-
if (
|
|
61
|
+
if (he(t, r)) return n;
|
|
62
62
|
const p = new Set(s);
|
|
63
63
|
return n.filter((l) => p.has(l.value));
|
|
64
64
|
}
|
|
@@ -66,71 +66,75 @@ function X(t, n) {
|
|
|
66
66
|
const r = new Set(d(t));
|
|
67
67
|
return r.size ? n.filter((s) => !r.has(s.value)) : n;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function f(t, n) {
|
|
70
70
|
var s;
|
|
71
71
|
const r = (s = t.value) == null ? void 0 : s[n];
|
|
72
72
|
return Array.isArray(r) ? r : [];
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function $e(t, n = {}) {
|
|
75
75
|
const r = [...new Set(t.map((e) => e.code))], s = t.reduce(
|
|
76
76
|
(e, c) => (e[c.code] = (e[c.code] || 0) + 1, e),
|
|
77
77
|
{}
|
|
78
|
-
), { dataSource: p } =
|
|
78
|
+
), { dataSource: p } = de({
|
|
79
79
|
codes: r,
|
|
80
80
|
dataSource: n.dataSource
|
|
81
81
|
}), l = {};
|
|
82
82
|
return t.forEach((e) => {
|
|
83
|
-
var
|
|
84
|
-
const c =
|
|
83
|
+
var Y;
|
|
84
|
+
const c = le[e.code], u = e.fieldName || c.defaultFieldName, F = e.key || ((s[e.code] || 0) > 1 ? u : e.code), k = e.label || c.defaultLabel, N = e.multiple ?? c.defaultMultiple, C = e.showAll ?? c.defaultShowAll, b = e.showAllField ?? E, m = e.mutexWith, D = pe(e.code, e.groupBy), S = e.code === ue.PURCHASE_PLACE, M = D === j.NONE, T = D === j.PINYIN, ee = !S && !M && !T, O = c.defaultTreeConfig, R = !!O, U = S ? !1 : c.defaultShowNav ?? !1;
|
|
85
|
+
function I(o) {
|
|
86
|
+
return S ? ie(o) : ee ? ae(o, D) : o;
|
|
87
|
+
}
|
|
88
|
+
const te = [
|
|
85
89
|
...m ? [m] : [],
|
|
86
|
-
...((
|
|
87
|
-
],
|
|
88
|
-
...
|
|
89
|
-
triggerFields:
|
|
90
|
-
} : e.dependencies,
|
|
90
|
+
...((Y = e.dependencies) == null ? void 0 : Y.triggerFields) || []
|
|
91
|
+
], W = [...new Set(te)], ne = $(e.dependencies || {}, ["triggerFields"]), oe = W.length ? {
|
|
92
|
+
...ne,
|
|
93
|
+
triggerFields: W
|
|
94
|
+
} : e.dependencies, L = {
|
|
91
95
|
component: "TtPanelSelect",
|
|
92
96
|
fieldName: u,
|
|
93
|
-
label:
|
|
97
|
+
label: k,
|
|
94
98
|
rules: e.rules,
|
|
95
|
-
dependencies:
|
|
99
|
+
dependencies: oe,
|
|
96
100
|
componentProps: (o, x) => {
|
|
97
|
-
const
|
|
98
|
-
let a = m ? X(o[m],
|
|
99
|
-
|
|
100
|
-
const g =
|
|
101
|
+
const P = f(p, e.code);
|
|
102
|
+
let a = m ? X(o[m], P) : P;
|
|
103
|
+
v(e.customOptions) && (a = e.customOptions(o, a) || []);
|
|
104
|
+
const g = I(a), B = H(e.componentProps, o, x, a), { onChange: z, ...A } = B;
|
|
101
105
|
return {
|
|
102
|
-
multiple:
|
|
106
|
+
multiple: N,
|
|
103
107
|
showAll: C,
|
|
104
|
-
showAllField:
|
|
105
|
-
showNav:
|
|
106
|
-
showOriginMode:
|
|
107
|
-
showPinyinMode:
|
|
108
|
-
...
|
|
109
|
-
...
|
|
110
|
-
...
|
|
108
|
+
showAllField: b,
|
|
109
|
+
showNav: U,
|
|
110
|
+
showOriginMode: M,
|
|
111
|
+
showPinyinMode: R || S ? !1 : T,
|
|
112
|
+
...O ? { treeConfig: O } : {},
|
|
113
|
+
...A,
|
|
114
|
+
...N ? { placeholder: q(A.placeholder) } : {},
|
|
111
115
|
options: g,
|
|
112
|
-
onChange(
|
|
113
|
-
var
|
|
116
|
+
onChange(w) {
|
|
117
|
+
var y;
|
|
114
118
|
if (m) {
|
|
115
|
-
const i = Array.isArray(o[m]), h = X(
|
|
116
|
-
|
|
119
|
+
const i = Array.isArray(o[m]), h = X(w, P);
|
|
120
|
+
Z(o, m, h, i);
|
|
117
121
|
}
|
|
118
122
|
if (e.exclude) {
|
|
119
|
-
const i = e.exclude.fieldName, h = e.exclude.multiple ?? !0, G = Q(
|
|
120
|
-
d(
|
|
123
|
+
const i = e.exclude.fieldName, h = e.exclude.multiple ?? !0, G = Q(w, P, b);
|
|
124
|
+
d(w).length ? Z(o, i, G, h) : o[i] = h ? [] : void 0;
|
|
121
125
|
}
|
|
122
|
-
(
|
|
126
|
+
(y = e.onChange) == null || y.call(
|
|
123
127
|
e,
|
|
124
|
-
|
|
125
|
-
J(e.code, u, o, x, a,
|
|
128
|
+
w,
|
|
129
|
+
J(e.code, u, o, x, a, N)
|
|
126
130
|
);
|
|
127
131
|
}
|
|
128
132
|
};
|
|
129
133
|
}
|
|
130
134
|
};
|
|
131
|
-
if (l[
|
|
132
|
-
...
|
|
133
|
-
|
|
135
|
+
if (l[F] = {
|
|
136
|
+
...L,
|
|
137
|
+
...$(e, [
|
|
134
138
|
"code",
|
|
135
139
|
"key",
|
|
136
140
|
"fieldName",
|
|
@@ -148,50 +152,50 @@ function De(t, n = {}) {
|
|
|
148
152
|
"customOptions"
|
|
149
153
|
]),
|
|
150
154
|
fieldName: u,
|
|
151
|
-
label:
|
|
155
|
+
label: k,
|
|
152
156
|
rules: e.rules,
|
|
153
157
|
description: e.description,
|
|
154
|
-
dependencies:
|
|
155
|
-
componentProps:
|
|
158
|
+
dependencies: L.dependencies,
|
|
159
|
+
componentProps: L.componentProps,
|
|
156
160
|
component: "TtPanelSelect"
|
|
157
161
|
}, e.exclude) {
|
|
158
|
-
const o = e.exclude, x = o.fieldName,
|
|
159
|
-
...
|
|
160
|
-
triggerFields:
|
|
161
|
-
if:
|
|
162
|
-
},
|
|
162
|
+
const o = e.exclude, x = o.fieldName, P = o.key || `exclude${xe(F)}`, a = o.label || c.defaultExcludeLabel, g = o.multiple ?? !0, B = o.showAll ?? !1, z = o.showAllField ?? E, A = o.dependencies || {}, w = {
|
|
163
|
+
...A,
|
|
164
|
+
triggerFields: A.triggerFields ?? [u],
|
|
165
|
+
if: A.if ?? ((i) => d(i[u]).length > 0)
|
|
166
|
+
}, y = {
|
|
163
167
|
component: "TtPanelSelect",
|
|
164
168
|
fieldName: x,
|
|
165
169
|
label: a,
|
|
166
170
|
rules: o.rules,
|
|
167
|
-
dependencies:
|
|
171
|
+
dependencies: w,
|
|
168
172
|
componentProps: (i, h) => {
|
|
169
|
-
const G =
|
|
173
|
+
const G = f(p, e.code), _ = Q(i[u], G, b), re = I(_), se = H(o.componentProps, i, h, _), { onChange: Pe, ...K } = se;
|
|
170
174
|
return {
|
|
171
175
|
multiple: g,
|
|
172
|
-
showAll:
|
|
173
|
-
showAllField:
|
|
174
|
-
showNav:
|
|
175
|
-
showOriginMode:
|
|
176
|
-
showPinyinMode:
|
|
177
|
-
...
|
|
178
|
-
...
|
|
179
|
-
...g ? { placeholder: q(
|
|
180
|
-
options:
|
|
181
|
-
onChange(
|
|
182
|
-
var
|
|
183
|
-
(
|
|
176
|
+
showAll: B,
|
|
177
|
+
showAllField: z,
|
|
178
|
+
showNav: U,
|
|
179
|
+
showOriginMode: M,
|
|
180
|
+
showPinyinMode: R || S ? !1 : T,
|
|
181
|
+
...O ? { treeConfig: O } : {},
|
|
182
|
+
...K,
|
|
183
|
+
...g ? { placeholder: q(K.placeholder) } : {},
|
|
184
|
+
options: re,
|
|
185
|
+
onChange(ce) {
|
|
186
|
+
var V;
|
|
187
|
+
(V = o.onChange) == null || V.call(
|
|
184
188
|
o,
|
|
185
|
-
|
|
186
|
-
J(e.code, x, i, h,
|
|
189
|
+
ce,
|
|
190
|
+
J(e.code, x, i, h, _, g)
|
|
187
191
|
);
|
|
188
192
|
}
|
|
189
193
|
};
|
|
190
194
|
}
|
|
191
195
|
};
|
|
192
|
-
l[
|
|
193
|
-
...
|
|
194
|
-
|
|
196
|
+
l[P] = {
|
|
197
|
+
...y,
|
|
198
|
+
...$(o, [
|
|
195
199
|
"fieldName",
|
|
196
200
|
"label",
|
|
197
201
|
"key",
|
|
@@ -206,8 +210,8 @@ function De(t, n = {}) {
|
|
|
206
210
|
fieldName: x,
|
|
207
211
|
label: a,
|
|
208
212
|
rules: o.rules,
|
|
209
|
-
dependencies:
|
|
210
|
-
componentProps:
|
|
213
|
+
dependencies: y.dependencies,
|
|
214
|
+
componentProps: y.componentProps,
|
|
211
215
|
component: "TtPanelSelect"
|
|
212
216
|
};
|
|
213
217
|
}
|
|
@@ -217,5 +221,5 @@ function De(t, n = {}) {
|
|
|
217
221
|
};
|
|
218
222
|
}
|
|
219
223
|
export {
|
|
220
|
-
|
|
224
|
+
$e as usePanelSelectSchemas
|
|
221
225
|
};
|