@dazhicheng/ui 1.6.15 → 1.6.17
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,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as se, useTemplateRef as q, ref as h, computed as v, watch as A, nextTick as U, createElementBlock as p, openBlock as r, normalizeClass as s, createElementVNode as C, createCommentVNode as z, createVNode as c, createBlock as B, unref as n, withCtx as
|
|
1
|
+
import { defineComponent as se, useTemplateRef as q, ref as h, computed as v, watch as A, nextTick as U, createElementBlock as p, openBlock as r, normalizeClass as s, createElementVNode as C, createCommentVNode as z, createVNode as c, createBlock as B, unref as n, withCtx as u, createTextVNode as b, normalizeStyle as I, Fragment as M, renderList as P, toDisplayString as H } from "vue";
|
|
2
2
|
import { TtButton as ne } from "../../../tt-button/index.js";
|
|
3
3
|
import { TtText as _ } from "../../../tt-text/index.js";
|
|
4
4
|
import { Search as ie } from "@element-plus/icons-vue";
|
|
@@ -70,12 +70,12 @@ const he = ["data-virtual-index", "data-flash-seed"], K = 2, _e = /* @__PURE__ *
|
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
async function G(e) {
|
|
73
|
-
var
|
|
73
|
+
var d;
|
|
74
74
|
await U(), x();
|
|
75
75
|
const a = l.rows.findIndex((t) => t.type === "group" && t.group.value === e);
|
|
76
76
|
if (a < 0) return;
|
|
77
77
|
const o = a * l.rowHeight;
|
|
78
|
-
(
|
|
78
|
+
(d = m.value) == null || d.setScrollTop(o), requestAnimationFrame(() => {
|
|
79
79
|
D(), oe(e);
|
|
80
80
|
});
|
|
81
81
|
}
|
|
@@ -88,27 +88,27 @@ const he = ["data-virtual-index", "data-flash-seed"], K = 2, _e = /* @__PURE__ *
|
|
|
88
88
|
g.value = a.trim(), l.pasteSearch ? f("update:keyword", g.value) : ($.value = !0, requestAnimationFrame(() => {
|
|
89
89
|
$.value = !1;
|
|
90
90
|
}));
|
|
91
|
-
const o = ve(a, l.separator),
|
|
91
|
+
const o = ve(a, l.separator), d = () => {
|
|
92
92
|
requestAnimationFrame(() => {
|
|
93
93
|
var N;
|
|
94
|
-
const
|
|
95
|
-
|
|
94
|
+
const i = (N = S.value) == null ? void 0 : N.input;
|
|
95
|
+
i == null || i.focus(), i == null || i.select();
|
|
96
96
|
});
|
|
97
97
|
};
|
|
98
98
|
if (!o.length) {
|
|
99
|
-
|
|
99
|
+
d();
|
|
100
100
|
return;
|
|
101
101
|
}
|
|
102
|
-
const t = new Set(o), y = ae.value.filter((
|
|
102
|
+
const t = new Set(o), y = ae.value.filter((i) => t.has(i.label) || t.has(String(i.value))).map((i) => i.value);
|
|
103
103
|
if (!y.length) {
|
|
104
|
-
|
|
104
|
+
d();
|
|
105
105
|
return;
|
|
106
106
|
}
|
|
107
107
|
if (l.multiple) {
|
|
108
|
-
f("optionsCheck", y, !0),
|
|
108
|
+
f("optionsCheck", y, !0), d();
|
|
109
109
|
return;
|
|
110
110
|
}
|
|
111
|
-
f("optionCheck", y.at(-1), !0),
|
|
111
|
+
f("optionCheck", y.at(-1), !0), d();
|
|
112
112
|
}
|
|
113
113
|
function re(e) {
|
|
114
114
|
g.value = e, !$.value && f("update:keyword", e);
|
|
@@ -147,9 +147,9 @@ const he = ["data-virtual-index", "data-flash-seed"], K = 2, _e = /* @__PURE__ *
|
|
|
147
147
|
"onUpdate:modelValue": re,
|
|
148
148
|
onPaste: te
|
|
149
149
|
}, {
|
|
150
|
-
prefix:
|
|
150
|
+
prefix: u(() => [
|
|
151
151
|
c(n(pe), null, {
|
|
152
|
-
default:
|
|
152
|
+
default: u(() => [
|
|
153
153
|
c(n(ie))
|
|
154
154
|
]),
|
|
155
155
|
_: 1
|
|
@@ -163,7 +163,7 @@ const he = ["data-virtual-index", "data-flash-seed"], K = 2, _e = /* @__PURE__ *
|
|
|
163
163
|
plain: "",
|
|
164
164
|
onClick: a[0] || (a[0] = () => f("checkAll", !0))
|
|
165
165
|
}, {
|
|
166
|
-
default:
|
|
166
|
+
default: u(() => [...a[2] || (a[2] = [
|
|
167
167
|
C("span", null, "全选", -1)
|
|
168
168
|
])]),
|
|
169
169
|
_: 1
|
|
@@ -178,9 +178,9 @@ const he = ["data-virtual-index", "data-flash-seed"], K = 2, _e = /* @__PURE__ *
|
|
|
178
178
|
"model-value": l.allChecked,
|
|
179
179
|
onChange: a[1] || (a[1] = (o) => f("allCheck", !!o))
|
|
180
180
|
}, {
|
|
181
|
-
default:
|
|
181
|
+
default: u(() => [
|
|
182
182
|
c(n(_), null, {
|
|
183
|
-
default:
|
|
183
|
+
default: u(() => [...a[3] || (a[3] = [
|
|
184
184
|
b("全部", -1)
|
|
185
185
|
])]),
|
|
186
186
|
_: 1
|
|
@@ -198,7 +198,7 @@ const he = ["data-virtual-index", "data-flash-seed"], K = 2, _e = /* @__PURE__ *
|
|
|
198
198
|
class: s(`${e.prefixCls}__middle-scrollbar`),
|
|
199
199
|
onScroll: D
|
|
200
200
|
}, {
|
|
201
|
-
default:
|
|
201
|
+
default: u(() => [
|
|
202
202
|
C("div", {
|
|
203
203
|
class: s(`${e.prefixCls}__middle-virtual-host`),
|
|
204
204
|
style: I({ height: `${J.value}px` })
|
|
@@ -206,17 +206,17 @@ const he = ["data-virtual-index", "data-flash-seed"], K = 2, _e = /* @__PURE__ *
|
|
|
206
206
|
C("div", {
|
|
207
207
|
style: I({ transform: `translateY(${Z.value}px)` })
|
|
208
208
|
}, [
|
|
209
|
-
(r(!0), p(M, null, P(ee.value, (o,
|
|
209
|
+
(r(!0), p(M, null, P(ee.value, (o, d) => (r(), p("div", {
|
|
210
210
|
key: o.key,
|
|
211
211
|
style: I({ height: `${e.rowHeight}px` }),
|
|
212
212
|
class: s([
|
|
213
213
|
`${e.prefixCls}__middle-row`,
|
|
214
214
|
o.type === "group" ? `${e.prefixCls}__middle-group` : `${e.prefixCls}__middle-options`,
|
|
215
215
|
o.type === "options" && o.isLast ? "is-last" : "",
|
|
216
|
-
o.type === "options" && w.value +
|
|
216
|
+
o.type === "options" && w.value + d === 0 && !l.showAll ? "is-first" : "",
|
|
217
217
|
k.value === o.group.value ? `${e.prefixCls}__group-flash` : ""
|
|
218
218
|
]),
|
|
219
|
-
"data-virtual-index": w.value +
|
|
219
|
+
"data-virtual-index": w.value + d,
|
|
220
220
|
"data-flash-seed": F.value
|
|
221
221
|
}, [
|
|
222
222
|
o.type === "group" ? (r(), p("div", {
|
|
@@ -230,9 +230,9 @@ const he = ["data-virtual-index", "data-flash-seed"], K = 2, _e = /* @__PURE__ *
|
|
|
230
230
|
disabled: e.disabled,
|
|
231
231
|
onChange: (t) => f("groupCheck", o.group.value, !!t)
|
|
232
232
|
}, {
|
|
233
|
-
default:
|
|
233
|
+
default: u(() => [
|
|
234
234
|
c(n(_), null, {
|
|
235
|
-
default:
|
|
235
|
+
default: u(() => [
|
|
236
236
|
b(H(o.group.label), 1)
|
|
237
237
|
]),
|
|
238
238
|
_: 2
|
|
@@ -240,7 +240,7 @@ const he = ["data-virtual-index", "data-flash-seed"], K = 2, _e = /* @__PURE__ *
|
|
|
240
240
|
]),
|
|
241
241
|
_: 2
|
|
242
242
|
}, 1032, ["model-value", "indeterminate", "disabled", "onChange"])) : (r(), B(n(_), { key: 1 }, {
|
|
243
|
-
default:
|
|
243
|
+
default: u(() => [
|
|
244
244
|
b(H(o.group.label), 1)
|
|
245
245
|
]),
|
|
246
246
|
_: 2
|
|
@@ -259,9 +259,9 @@ const he = ["data-virtual-index", "data-flash-seed"], K = 2, _e = /* @__PURE__ *
|
|
|
259
259
|
class: s(`${e.prefixCls}__option`),
|
|
260
260
|
onChange: (y) => f("optionCheck", t.value, !!y)
|
|
261
261
|
}, {
|
|
262
|
-
default:
|
|
262
|
+
default: u(() => [
|
|
263
263
|
c(n(_), { "tool-tip-line": 2 }, {
|
|
264
|
-
default:
|
|
264
|
+
default: u(() => [
|
|
265
265
|
b(H(t.label), 1)
|
|
266
266
|
]),
|
|
267
267
|
_: 2
|
|
@@ -7,7 +7,8 @@ type DataType = Exclude<BudinessDataType, "userId">;
|
|
|
7
7
|
* 表单使用场景。
|
|
8
8
|
*
|
|
9
9
|
* list 用于查询筛选场景;action 用于新增、编辑等操作场景。
|
|
10
|
-
* action
|
|
10
|
+
* action 场景下,当平台选择“全部”或选择多个平台时,店铺字段会被禁用并改为非必填,
|
|
11
|
+
* 且店铺默认值设为 showAllField ?? 'all'。
|
|
11
12
|
*/
|
|
12
13
|
export type FormScene = "list" | "action";
|
|
13
14
|
type FieldComponentProps = Recordable | ((values: Recordable, actions: any, options: SelectOption[]) => Recordable);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useDataPermissionOptions as
|
|
1
|
+
import { useDataPermissionOptions as Z } from "./useDataPermissionOptions.js";
|
|
2
2
|
import "axios";
|
|
3
|
-
import { ElSelectV2 as
|
|
3
|
+
import { ElSelectV2 as $ } from "element-plus";
|
|
4
4
|
import { isFunction as q } from "../packages/utils/src/is.js";
|
|
5
5
|
import "vue";
|
|
6
6
|
import "dayjs";
|
|
@@ -13,46 +13,46 @@ import "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
|
|
|
13
13
|
import "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
|
|
14
14
|
import "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
15
15
|
import "../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
16
|
-
import { omit as
|
|
17
|
-
const
|
|
16
|
+
import { omit as v } from "lodash-es";
|
|
17
|
+
const U = "all", H = { label: "全部", value: U }, z = [
|
|
18
18
|
"platformId",
|
|
19
19
|
"shopId",
|
|
20
20
|
"purchasePlaceId",
|
|
21
21
|
"businessType",
|
|
22
22
|
"lockUserId",
|
|
23
23
|
"userId"
|
|
24
|
-
],
|
|
24
|
+
], y = {
|
|
25
25
|
platformId: "platformIds",
|
|
26
26
|
shopId: "shopIds",
|
|
27
27
|
purchasePlaceId: "purchasePlaceId",
|
|
28
28
|
businessType: "businessType",
|
|
29
29
|
lockUserId: "lockUserId"
|
|
30
|
-
},
|
|
30
|
+
}, T = {
|
|
31
31
|
platformId: "平台",
|
|
32
32
|
shopId: "店铺",
|
|
33
33
|
purchasePlaceId: "采购地",
|
|
34
34
|
businessType: "业务线",
|
|
35
35
|
lockUserId: "锁单人"
|
|
36
36
|
};
|
|
37
|
-
function
|
|
38
|
-
return typeof r == "string" && r.toLowerCase() ===
|
|
37
|
+
function k(r) {
|
|
38
|
+
return typeof r == "string" && r.toLowerCase() === U.toLowerCase();
|
|
39
39
|
}
|
|
40
40
|
function O(r) {
|
|
41
41
|
return Array.isArray(r) ? r : r == null || r === "" ? [] : [r];
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
return [
|
|
43
|
+
function oo(r = []) {
|
|
44
|
+
return [H].concat(r);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function no(r, u, c, A) {
|
|
47
47
|
return r ? q(r) ? r(u, c, A) : r : {};
|
|
48
48
|
}
|
|
49
49
|
function j(r, u, c, A) {
|
|
50
|
-
var
|
|
50
|
+
var b;
|
|
51
51
|
u == null || u(r);
|
|
52
|
-
const I = A(), f = (
|
|
52
|
+
const I = A(), f = (b = I.values) == null ? void 0 : b[I.fieldName];
|
|
53
53
|
c == null || c(f, I);
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function eo(r = {}, u = z) {
|
|
56
56
|
const c = r.scene || "list", A = u.reduce(
|
|
57
57
|
(o, e) => {
|
|
58
58
|
if (e === "userId") return o;
|
|
@@ -60,28 +60,28 @@ function no(r = {}, u = z) {
|
|
|
60
60
|
return o[e] = t ? !1 : n.showAll ?? !1, o;
|
|
61
61
|
},
|
|
62
62
|
{}
|
|
63
|
-
), { dataSource: I } =
|
|
63
|
+
), { dataSource: I } = Z({
|
|
64
64
|
codes: u,
|
|
65
65
|
dataSource: r.dataSource,
|
|
66
66
|
showAll: A
|
|
67
67
|
});
|
|
68
68
|
function f(o) {
|
|
69
|
-
return g(o).fieldName ||
|
|
69
|
+
return g(o).fieldName || y[o];
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function b(o) {
|
|
72
72
|
return g(o).rules;
|
|
73
73
|
}
|
|
74
74
|
function M(o) {
|
|
75
|
-
return g(o).label ||
|
|
75
|
+
return g(o).label || T[o];
|
|
76
76
|
}
|
|
77
77
|
function g(o) {
|
|
78
78
|
var e;
|
|
79
79
|
return ((e = r.fieldConfigs) == null ? void 0 : e[o]) || {};
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
return g(o).showAllField ??
|
|
81
|
+
function P(o) {
|
|
82
|
+
return g(o).showAllField ?? U;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function E(o, e) {
|
|
85
85
|
const n = g(o).dependencies;
|
|
86
86
|
if (!e) return n;
|
|
87
87
|
if (!n) return e;
|
|
@@ -129,31 +129,39 @@ function no(r = {}, u = z) {
|
|
|
129
129
|
}, e.set(t, l)), l.children.push(n);
|
|
130
130
|
}), Array.from(e.values());
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function _(o) {
|
|
133
133
|
return o.flatMap((e) => {
|
|
134
134
|
const n = e.children;
|
|
135
|
-
return n != null && n.length ?
|
|
135
|
+
return n != null && n.length ? _(n) : [e];
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
138
|
function K(o, e) {
|
|
139
|
-
return O(o).some((n) => n === e ||
|
|
139
|
+
return O(o).some((n) => n === e || k(n));
|
|
140
|
+
}
|
|
141
|
+
function Q(o, e) {
|
|
142
|
+
const n = f("shopId"), t = F("shopId"), l = P("shopId");
|
|
143
|
+
if (c === "action" && w(e)) {
|
|
144
|
+
o[n] = t ? [l] : l;
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
o[n] = t ? [] : void 0;
|
|
140
148
|
}
|
|
141
|
-
function
|
|
142
|
-
const e = K(o,
|
|
149
|
+
function w(o) {
|
|
150
|
+
const e = K(o, P("platformId")), n = Array.isArray(o) ? o.length > 1 : !1;
|
|
143
151
|
return c === "action" && (e || n);
|
|
144
152
|
}
|
|
145
|
-
function
|
|
153
|
+
function W(o) {
|
|
146
154
|
const e = N("shopId"), n = O(o);
|
|
147
155
|
if (!n.length)
|
|
148
156
|
return c === "action" ? [] : e;
|
|
149
|
-
if (
|
|
157
|
+
if (w(o)) return [];
|
|
150
158
|
const t = e.filter((s) => n.includes(s.platformId));
|
|
151
|
-
return !t.some((s) => s.value ===
|
|
159
|
+
return !t.some((s) => s.value === P("shopId") || k(s.value)) || t.length <= 1 ? t : oo(t.filter((s) => s.value !== P("shopId") && !k(s.value)));
|
|
152
160
|
}
|
|
153
|
-
function
|
|
154
|
-
const s = f(o),
|
|
155
|
-
var
|
|
156
|
-
return (
|
|
161
|
+
function B(o, e, n, t, l) {
|
|
162
|
+
const s = f(o), d = l ? t.filter((i) => {
|
|
163
|
+
var h;
|
|
164
|
+
return (h = e[s]) == null ? void 0 : h.includes(i.value);
|
|
157
165
|
}) || [] : t.find((i) => i.value === e[s]);
|
|
158
166
|
return {
|
|
159
167
|
values: e,
|
|
@@ -161,42 +169,42 @@ function no(r = {}, u = z) {
|
|
|
161
169
|
fieldName: s,
|
|
162
170
|
dataType: o,
|
|
163
171
|
options: t,
|
|
164
|
-
currentOption:
|
|
172
|
+
currentOption: d
|
|
165
173
|
};
|
|
166
174
|
}
|
|
167
|
-
function
|
|
168
|
-
const s = g(o),
|
|
175
|
+
function L(o, e, n, t, l) {
|
|
176
|
+
const s = g(o), d = no(s.componentProps, e, n, t), i = F(o), { onChange: h, ...a } = d, m = q(s.customOptions) ? s.customOptions(e, t) : t, p = S(o) === "TtPanelSelect", C = p && o === "shopId" ? J(m) : p && o === "purchasePlaceId" ? G(m) : m, x = p ? _(C) : m;
|
|
169
177
|
return p ? {
|
|
170
178
|
multiple: i,
|
|
171
179
|
showAll: s.showAll ?? (o === "shopId" && c === "action" ? O(e[f("platformId")]).length > 0 : !0),
|
|
172
|
-
showAllField:
|
|
180
|
+
showAllField: P(o),
|
|
173
181
|
showNav: o !== "platformId" && o !== "purchasePlaceId",
|
|
174
182
|
showOriginMode: o === "platformId",
|
|
175
183
|
showPinyinMode: o !== "shopId" && o !== "purchasePlaceId",
|
|
176
|
-
...
|
|
177
|
-
options:
|
|
184
|
+
...a,
|
|
185
|
+
options: C,
|
|
178
186
|
onChange(R) {
|
|
179
|
-
const
|
|
187
|
+
const Y = e[f(o)];
|
|
180
188
|
j(
|
|
181
|
-
|
|
189
|
+
Y,
|
|
182
190
|
l,
|
|
183
191
|
s.onChange,
|
|
184
|
-
() =>
|
|
192
|
+
() => B(o, e, n, x, i)
|
|
185
193
|
);
|
|
186
194
|
}
|
|
187
195
|
} : {
|
|
188
196
|
multiple: i,
|
|
189
|
-
component:
|
|
197
|
+
component: $,
|
|
190
198
|
showOriginMode: !1,
|
|
191
199
|
showPinyinMode: !0,
|
|
192
|
-
...
|
|
193
|
-
options:
|
|
200
|
+
...a,
|
|
201
|
+
options: m,
|
|
194
202
|
onChange(R) {
|
|
195
203
|
j(
|
|
196
204
|
R,
|
|
197
205
|
l,
|
|
198
206
|
s.onChange,
|
|
199
|
-
() =>
|
|
207
|
+
() => B(o, e, n, x, i)
|
|
200
208
|
);
|
|
201
209
|
}
|
|
202
210
|
};
|
|
@@ -207,36 +215,36 @@ function no(r = {}, u = z) {
|
|
|
207
215
|
component: S(o),
|
|
208
216
|
fieldName: e,
|
|
209
217
|
label: M(o),
|
|
210
|
-
rules:
|
|
211
|
-
dependencies:
|
|
218
|
+
rules: b(o),
|
|
219
|
+
dependencies: E(o),
|
|
212
220
|
componentProps: (n, t) => {
|
|
213
|
-
var
|
|
214
|
-
const l = N(o), s = f(o),
|
|
215
|
-
return
|
|
221
|
+
var a;
|
|
222
|
+
const l = N(o), s = f(o), d = F(o), i = P(o), h = ((a = n[s]) == null ? void 0 : a.at(-1)) !== i;
|
|
223
|
+
return L(o, n, t, l, (m) => {
|
|
216
224
|
if (S(o) !== "TtPanelSelect") {
|
|
217
225
|
const p = n[s];
|
|
218
|
-
|
|
226
|
+
d && (h && O(m).at(-1) === i ? n[s] = [i] : n[s] = p == null ? void 0 : p.filter((C) => C !== i));
|
|
219
227
|
}
|
|
220
228
|
});
|
|
221
229
|
}
|
|
222
230
|
};
|
|
223
231
|
}
|
|
224
|
-
const
|
|
232
|
+
const D = {
|
|
225
233
|
// 平台
|
|
226
234
|
platformId: {
|
|
227
235
|
component: S("platformId"),
|
|
228
236
|
fieldName: f("platformId"),
|
|
229
237
|
label: M("platformId"),
|
|
230
|
-
rules:
|
|
238
|
+
rules: b("platformId"),
|
|
231
239
|
componentProps: (o, e) => {
|
|
232
|
-
var
|
|
233
|
-
const n = "platformId", t = f(n), l =
|
|
234
|
-
return
|
|
240
|
+
var h;
|
|
241
|
+
const n = "platformId", t = f(n), l = F(n), s = N(n), d = P(n), i = ((h = o[t]) == null ? void 0 : h.at(-1)) !== d;
|
|
242
|
+
return L(n, o, e, s, (a) => {
|
|
235
243
|
if (S(n) !== "TtPanelSelect") {
|
|
236
|
-
const
|
|
237
|
-
|
|
244
|
+
const m = o[t];
|
|
245
|
+
l && (i && O(a).at(-1) === d ? o[t] = [d] : o[t] = m == null ? void 0 : m.filter((p) => p !== d));
|
|
238
246
|
}
|
|
239
|
-
o
|
|
247
|
+
Q(o, o[t]);
|
|
240
248
|
});
|
|
241
249
|
}
|
|
242
250
|
},
|
|
@@ -246,22 +254,22 @@ function no(r = {}, u = z) {
|
|
|
246
254
|
fieldName: f("shopId"),
|
|
247
255
|
label: M("shopId"),
|
|
248
256
|
componentProps: (o, e) => {
|
|
249
|
-
var
|
|
250
|
-
const n = "shopId", t = f(n), l = o[f("platformId")], s =
|
|
251
|
-
return
|
|
257
|
+
var a;
|
|
258
|
+
const n = "shopId", t = f(n), l = o[f("platformId")], s = W(l), d = F(n), i = P(n), h = ((a = o[t]) == null ? void 0 : a.at(-1)) !== i;
|
|
259
|
+
return L(n, o, e, s, (m) => {
|
|
252
260
|
if (S(n) !== "TtPanelSelect") {
|
|
253
261
|
const p = o[t];
|
|
254
|
-
|
|
262
|
+
d && (h && O(m).at(-1) === i ? o[t] = [i] : o[t] = p == null ? void 0 : p.filter((C) => C !== i));
|
|
255
263
|
}
|
|
256
264
|
});
|
|
257
265
|
},
|
|
258
|
-
dependencies:
|
|
266
|
+
dependencies: E("shopId", {
|
|
259
267
|
triggerFields: [f("platformId")],
|
|
260
268
|
disabled(o) {
|
|
261
|
-
return
|
|
269
|
+
return w(o[f("platformId")]);
|
|
262
270
|
},
|
|
263
271
|
rules(o) {
|
|
264
|
-
return
|
|
272
|
+
return w(o[f("platformId")]) ? null : b("shopId") || null;
|
|
265
273
|
}
|
|
266
274
|
})
|
|
267
275
|
},
|
|
@@ -269,25 +277,25 @@ function no(r = {}, u = z) {
|
|
|
269
277
|
businessType: V("businessType"),
|
|
270
278
|
lockUserId: V("lockUserId")
|
|
271
279
|
};
|
|
272
|
-
function
|
|
273
|
-
return Object.keys(
|
|
280
|
+
function X() {
|
|
281
|
+
return Object.keys(D).reduce(
|
|
274
282
|
(o, e) => {
|
|
275
283
|
var l;
|
|
276
|
-
const n =
|
|
284
|
+
const n = D[e], t = (l = r.fieldConfigs) == null ? void 0 : l[e];
|
|
277
285
|
return o[e] = {
|
|
278
286
|
...n,
|
|
279
|
-
|
|
287
|
+
...v(t, ["componentProps", "rules"])
|
|
280
288
|
}, o;
|
|
281
289
|
},
|
|
282
290
|
{}
|
|
283
291
|
);
|
|
284
292
|
}
|
|
285
293
|
return {
|
|
286
|
-
...
|
|
294
|
+
...X(),
|
|
287
295
|
dataSource: I
|
|
288
296
|
};
|
|
289
297
|
}
|
|
290
|
-
function
|
|
298
|
+
function Ao() {
|
|
291
299
|
const r = {
|
|
292
300
|
options: {},
|
|
293
301
|
codes: [...z]
|
|
@@ -332,11 +340,11 @@ function So() {
|
|
|
332
340
|
}, u;
|
|
333
341
|
},
|
|
334
342
|
build() {
|
|
335
|
-
return
|
|
343
|
+
return eo(r.options, r.codes);
|
|
336
344
|
}
|
|
337
345
|
};
|
|
338
346
|
return u;
|
|
339
347
|
}
|
|
340
348
|
export {
|
|
341
|
-
|
|
349
|
+
Ao as useFormSchemasLink
|
|
342
350
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dazhicheng/ui",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.17",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"vue-router": "^5.0.2",
|
|
70
70
|
"vxe-pc-ui": "^4.14.15",
|
|
71
71
|
"vxe-table": "^4.18.13",
|
|
72
|
-
"@dazhicheng/
|
|
73
|
-
"@dazhicheng/
|
|
72
|
+
"@dazhicheng/hooks": "1.4.56",
|
|
73
|
+
"@dazhicheng/utils": "1.3.53"
|
|
74
74
|
},
|
|
75
75
|
"files": [
|
|
76
76
|
"dist"
|