@yqg/permission 1.3.1-alpha.0 → 1.3.1-alpha.2
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/{apply-modal-D3Frqfx8.js → apply-modal-B1eNJqJL.js} +10 -10
- package/dist/{category-selector-BsBqfqWu.js → category-selector-BZ9Ey78Q.js} +4 -4
- package/dist/{index-CHKs7hG7.js → index-BRpbbBN8.js} +1 -1
- package/dist/{index-CvLY5Rbl.js → index-DytyCa5K.js} +3 -3
- package/dist/index.js +2 -2
- package/dist/{permission-item-DTdDRu0E.js → permission-item-j4WKkIAB.js} +178 -178
- package/dist/{yqg-permission-CEJEsvl5.js → yqg-permission-DhTL2aNj.js} +107 -110
- package/dist/yqg-permission.umd.js +36 -36
- package/package.json +1 -1
- package/src/App.vue +1 -7
- package/src/components/apply-modal.vue +6 -6
- package/src/components/permission-item.vue +1 -3
- package/src/components/yqg-permission.vue +5 -5
- package/src/hooks/useFormat.ts +11 -10
- package/src/i18n/zh-CH.ts +2 -2
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { p as
|
|
3
|
-
import { L as Tt, j as Pt, p as Et, K as Z, d as Ft, F as Dt, e as Rt, f as Bt, Q as kt } from "./apply-modal-
|
|
4
|
-
import { u as $t, b as Lt, T as Mt, i as
|
|
1
|
+
import { c as pe, Y as Te, a as j, a1 as We, b as at, _ as P, ae as Xe, aX as Me, aZ as He, P as ne, $ as Be, ar as it, as as st, aE as rt, aY as ct, a_ as ut, a0 as je, ak as Ae, aj as dt, am as vt, N as mt, R as ft, a$ as gt, b0 as pt, Q as ht, b1 as bt, b2 as yt, b3 as St, aq as Ct, aD as At, aP as X, aR as we, aS as Ot } from "./yqg-permission-DhTL2aNj.js";
|
|
2
|
+
import { p as It, a as wt, d as he, c as A, G as xt, w as Fe, E as Ye, q as _e, e as N, F as Ve, s as ve, b as Ne, y as oe, r as Qe, K as G, P as ue, L as Oe, M as J, S as Pe, R as H, O as Vt, u as B, U as de, N as W, a0 as Nt, Y as ze } from "./index-BRpbbBN8.js";
|
|
3
|
+
import { L as Tt, j as Pt, p as Et, K as Z, d as Ft, F as Dt, e as Rt, f as Bt, Q as kt } from "./apply-modal-B1eNJqJL.js";
|
|
4
|
+
import { u as $t, b as Lt, T as Mt, i as De, c as Ht, h as jt, j as _t, k as zt, t as Ut, B as Kt, e as Gt, f as Wt, g as Xt } from "./index-DytyCa5K.js";
|
|
5
5
|
function Yt() {
|
|
6
6
|
return /(mac\sos|macintosh)/i.test(navigator.appVersion);
|
|
7
7
|
}
|
|
8
|
-
const
|
|
8
|
+
const qe = Symbol("SelectContextKey");
|
|
9
9
|
function Qt(e) {
|
|
10
|
-
return
|
|
10
|
+
return It(qe, e);
|
|
11
11
|
}
|
|
12
12
|
function qt() {
|
|
13
|
-
return
|
|
13
|
+
return wt(qe, {});
|
|
14
14
|
}
|
|
15
15
|
var Jt = function(e, g) {
|
|
16
16
|
var i = {};
|
|
@@ -19,10 +19,10 @@ var Jt = function(e, g) {
|
|
|
19
19
|
g.indexOf(o[t]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[t]) && (i[o[t]] = e[o[t]]);
|
|
20
20
|
return i;
|
|
21
21
|
};
|
|
22
|
-
function
|
|
22
|
+
function Ue(e) {
|
|
23
23
|
return typeof e == "string" || typeof e == "number";
|
|
24
24
|
}
|
|
25
|
-
const Zt =
|
|
25
|
+
const Zt = he({
|
|
26
26
|
compatConfig: {
|
|
27
27
|
MODE: 3
|
|
28
28
|
},
|
|
@@ -51,7 +51,7 @@ const Zt = pe({
|
|
|
51
51
|
return F;
|
|
52
52
|
}
|
|
53
53
|
return -1;
|
|
54
|
-
}, V =
|
|
54
|
+
}, V = xt({
|
|
55
55
|
activeIndex: b(0)
|
|
56
56
|
}), w = function(r) {
|
|
57
57
|
let O = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
@@ -65,15 +65,15 @@ const Zt = pe({
|
|
|
65
65
|
}
|
|
66
66
|
n.onActiveValue(y.value, r, x);
|
|
67
67
|
};
|
|
68
|
-
|
|
68
|
+
Fe([() => m.value.length, () => t.searchValue], () => {
|
|
69
69
|
w(n.defaultActiveFirstOption !== !1 ? b(0) : -1);
|
|
70
70
|
}, {
|
|
71
71
|
immediate: !0
|
|
72
72
|
});
|
|
73
73
|
const c = (r) => n.rawValues.has(r) && t.mode !== "combobox";
|
|
74
|
-
|
|
74
|
+
Fe([() => t.open, () => t.searchValue], () => {
|
|
75
75
|
if (!t.multiple && t.open && n.rawValues.size === 1) {
|
|
76
|
-
const r = Array.from(n.rawValues)[0], O =
|
|
76
|
+
const r = Array.from(n.rawValues)[0], O = Ye(m.value).findIndex((x) => {
|
|
77
77
|
let {
|
|
78
78
|
data: y
|
|
79
79
|
} = x;
|
|
@@ -155,16 +155,16 @@ const Zt = pe({
|
|
|
155
155
|
fieldNames: F,
|
|
156
156
|
virtual: _,
|
|
157
157
|
listHeight: L,
|
|
158
|
-
listItemHeight:
|
|
159
|
-
} = n,
|
|
158
|
+
listItemHeight: be
|
|
159
|
+
} = n, Q = o.option, {
|
|
160
160
|
activeIndex: z
|
|
161
|
-
} = V,
|
|
161
|
+
} = V, ye = Object.keys(F).map((M) => F[M]);
|
|
162
162
|
return m.value.length === 0 ? N("div", {
|
|
163
163
|
role: "listbox",
|
|
164
164
|
id: `${r}_list`,
|
|
165
165
|
class: `${v.value}-empty`,
|
|
166
166
|
onMousedown: f
|
|
167
|
-
}, [O]) : N(
|
|
167
|
+
}, [O]) : N(Ve, null, [N("div", {
|
|
168
168
|
role: "listbox",
|
|
169
169
|
id: `${r}_list`,
|
|
170
170
|
style: {
|
|
@@ -177,7 +177,7 @@ const Zt = pe({
|
|
|
177
177
|
ref: p,
|
|
178
178
|
data: m.value,
|
|
179
179
|
height: L,
|
|
180
|
-
itemHeight:
|
|
180
|
+
itemHeight: be,
|
|
181
181
|
fullHeight: !1,
|
|
182
182
|
onMousedown: f,
|
|
183
183
|
onScroll: x,
|
|
@@ -186,48 +186,48 @@ const Zt = pe({
|
|
|
186
186
|
default: (M, ae) => {
|
|
187
187
|
var ie;
|
|
188
188
|
const {
|
|
189
|
-
group:
|
|
190
|
-
groupOption:
|
|
189
|
+
group: Se,
|
|
190
|
+
groupOption: me,
|
|
191
191
|
data: U,
|
|
192
192
|
value: C
|
|
193
193
|
} = M, {
|
|
194
194
|
key: k
|
|
195
195
|
} = U, $ = typeof M.label == "function" ? M.label() : M.label;
|
|
196
|
-
if (
|
|
197
|
-
const ce = (ie = U.title) !== null && ie !== void 0 ? ie :
|
|
196
|
+
if (Se) {
|
|
197
|
+
const ce = (ie = U.title) !== null && ie !== void 0 ? ie : Ue($) && $;
|
|
198
198
|
return N("div", {
|
|
199
|
-
class:
|
|
199
|
+
class: pe(v.value, `${v.value}-group`),
|
|
200
200
|
title: ce
|
|
201
|
-
}, [
|
|
201
|
+
}, [Q ? Q(U) : $ !== void 0 ? $ : k]);
|
|
202
202
|
}
|
|
203
203
|
const {
|
|
204
|
-
disabled:
|
|
204
|
+
disabled: q,
|
|
205
205
|
title: se,
|
|
206
206
|
children: re,
|
|
207
|
-
style:
|
|
207
|
+
style: Ce,
|
|
208
208
|
class: l,
|
|
209
209
|
className: s
|
|
210
|
-
} = U, u = Jt(U, ["disabled", "title", "children", "style", "class", "className"]), h = Te(u,
|
|
211
|
-
[`${D}-grouped`]:
|
|
212
|
-
[`${D}-active`]: z === ae && !
|
|
213
|
-
[`${D}-disabled`]:
|
|
210
|
+
} = U, u = Jt(U, ["disabled", "title", "children", "style", "class", "className"]), h = Te(u, ye), d = c(C), D = `${v.value}-option`, le = pe(v.value, D, l, s, {
|
|
211
|
+
[`${D}-grouped`]: me,
|
|
212
|
+
[`${D}-active`]: z === ae && !q,
|
|
213
|
+
[`${D}-disabled`]: q,
|
|
214
214
|
[`${D}-selected`]: d
|
|
215
|
-
}), K = I(M),
|
|
216
|
-
let Ie =
|
|
215
|
+
}), K = I(M), fe = !y || typeof y == "function" || d, T = typeof K == "number" ? K : K || C;
|
|
216
|
+
let Ie = Ue(T) ? T.toString() : void 0;
|
|
217
217
|
return se !== void 0 && (Ie = se), N("div", j(j({}, h), {}, {
|
|
218
218
|
"aria-selected": d,
|
|
219
219
|
class: le,
|
|
220
220
|
title: Ie,
|
|
221
221
|
onMousemove: (ce) => {
|
|
222
|
-
u.onMousemove && u.onMousemove(ce), !(z === ae ||
|
|
222
|
+
u.onMousemove && u.onMousemove(ce), !(z === ae || q) && w(ae);
|
|
223
223
|
},
|
|
224
224
|
onClick: (ce) => {
|
|
225
|
-
|
|
225
|
+
q || S(C), u.onClick && u.onClick(ce);
|
|
226
226
|
},
|
|
227
|
-
style:
|
|
227
|
+
style: Ce
|
|
228
228
|
}), [N("div", {
|
|
229
229
|
class: `${D}-content`
|
|
230
|
-
}, [
|
|
230
|
+
}, [Q ? Q(U) : T]), We(y) || d, fe && N(Mt, {
|
|
231
231
|
class: `${v.value}-option-state`,
|
|
232
232
|
customizeIcon: y,
|
|
233
233
|
customizeIconProps: {
|
|
@@ -263,11 +263,11 @@ function tl(e) {
|
|
|
263
263
|
disabled: v || v === ""
|
|
264
264
|
}, m);
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function Je(e) {
|
|
267
267
|
let g = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
268
|
-
return
|
|
268
|
+
return at(e).map((o, t) => {
|
|
269
269
|
var n;
|
|
270
|
-
if (!
|
|
270
|
+
if (!We(o) || !o.type)
|
|
271
271
|
return null;
|
|
272
272
|
const {
|
|
273
273
|
type: {
|
|
@@ -284,14 +284,14 @@ function qe(e) {
|
|
|
284
284
|
key: `__RC_SELECT_GRP__${m === null ? t : String(m)}__`
|
|
285
285
|
}, f), {
|
|
286
286
|
label: b,
|
|
287
|
-
options:
|
|
287
|
+
options: Je(a || [])
|
|
288
288
|
});
|
|
289
289
|
}).filter((o) => o);
|
|
290
290
|
}
|
|
291
291
|
function ll(e, g, i) {
|
|
292
|
-
const o =
|
|
293
|
-
return
|
|
294
|
-
e.value ? v.value =
|
|
292
|
+
const o = ve(), t = ve(), n = ve(), v = ve([]);
|
|
293
|
+
return Fe([e, g], () => {
|
|
294
|
+
e.value ? v.value = Ye(e.value).slice() : v.value = Je(g.value);
|
|
295
295
|
}, {
|
|
296
296
|
immediate: !0,
|
|
297
297
|
deep: !0
|
|
@@ -311,11 +311,11 @@ function ll(e, g, i) {
|
|
|
311
311
|
labelOptions: n
|
|
312
312
|
};
|
|
313
313
|
}
|
|
314
|
-
function
|
|
314
|
+
function Ze(e) {
|
|
315
315
|
return Array.isArray(e) ? e : e !== void 0 ? [e] : [];
|
|
316
316
|
}
|
|
317
|
-
function
|
|
318
|
-
return
|
|
317
|
+
function Ee(e, g) {
|
|
318
|
+
return Ze(e).join("").toUpperCase().includes(g);
|
|
319
319
|
}
|
|
320
320
|
const ol = (e, g, i, o, t) => A(() => {
|
|
321
321
|
const n = i.value, v = t == null ? void 0 : t.value, m = o == null ? void 0 : o.value;
|
|
@@ -325,15 +325,15 @@ const ol = (e, g, i, o, t) => A(() => {
|
|
|
325
325
|
options: p,
|
|
326
326
|
label: f,
|
|
327
327
|
value: a
|
|
328
|
-
} = g.value, b = [], V = typeof m == "function", w = n.toUpperCase(), c = V ? m : (I, E) => v ?
|
|
328
|
+
} = g.value, b = [], V = typeof m == "function", w = n.toUpperCase(), c = V ? m : (I, E) => v ? Ee(E[v], w) : E[p] ? Ee(E[f !== "children" ? f : "label"], w) : Ee(E[a], w), S = V ? (I) => De(I) : (I) => I;
|
|
329
329
|
return e.value.forEach((I) => {
|
|
330
330
|
if (I[p]) {
|
|
331
331
|
if (c(n, S(I)))
|
|
332
332
|
b.push(I);
|
|
333
333
|
else {
|
|
334
|
-
const
|
|
335
|
-
|
|
336
|
-
[p]:
|
|
334
|
+
const Y = I[p].filter((te) => c(n, S(te)));
|
|
335
|
+
Y.length && b.push(P(P({}, I), {
|
|
336
|
+
[p]: Y
|
|
337
337
|
}));
|
|
338
338
|
}
|
|
339
339
|
return;
|
|
@@ -341,7 +341,7 @@ const ol = (e, g, i, o, t) => A(() => {
|
|
|
341
341
|
c(n, S(I)) && b.push(I);
|
|
342
342
|
}), b;
|
|
343
343
|
}), nl = (e, g) => {
|
|
344
|
-
const i =
|
|
344
|
+
const i = ve({
|
|
345
345
|
values: /* @__PURE__ */ new Map(),
|
|
346
346
|
options: /* @__PURE__ */ new Map()
|
|
347
347
|
});
|
|
@@ -360,7 +360,7 @@ const ol = (e, g, i, o, t) => A(() => {
|
|
|
360
360
|
}), i.value.values = p, i.value.options = f, m;
|
|
361
361
|
}), (n) => g.value.get(n) || i.value.options.get(n)];
|
|
362
362
|
}, al = ["inputValue"];
|
|
363
|
-
function
|
|
363
|
+
function et() {
|
|
364
364
|
return P(P({}, Gt()), {
|
|
365
365
|
prefixCls: String,
|
|
366
366
|
id: String,
|
|
@@ -422,13 +422,13 @@ function Ze() {
|
|
|
422
422
|
function il(e) {
|
|
423
423
|
return !e || typeof e != "object";
|
|
424
424
|
}
|
|
425
|
-
const sl =
|
|
425
|
+
const sl = he({
|
|
426
426
|
compatConfig: {
|
|
427
427
|
MODE: 3
|
|
428
428
|
},
|
|
429
429
|
name: "VcSelect",
|
|
430
430
|
inheritAttrs: !1,
|
|
431
|
-
props:
|
|
431
|
+
props: Xe(et(), {
|
|
432
432
|
prefixCls: "vc-select",
|
|
433
433
|
autoClearSearchValue: !0,
|
|
434
434
|
listHeight: 200,
|
|
@@ -448,19 +448,19 @@ const sl = pe({
|
|
|
448
448
|
valueOptions: w,
|
|
449
449
|
labelOptions: c,
|
|
450
450
|
options: S
|
|
451
|
-
} = V, I = (l) =>
|
|
451
|
+
} = V, I = (l) => Ze(l).map((u) => {
|
|
452
452
|
var h, d;
|
|
453
|
-
let D, le, K,
|
|
453
|
+
let D, le, K, fe;
|
|
454
454
|
il(u) ? D = u : (K = u.key, le = u.label, D = (h = u.value) !== null && h !== void 0 ? h : K);
|
|
455
455
|
const T = w.value.get(D);
|
|
456
|
-
return T && (le === void 0 && (le = T == null ? void 0 : T[e.optionLabelProp || f.value.label]), K === void 0 && (K = (d = T == null ? void 0 : T.key) !== null && d !== void 0 ? d : D),
|
|
456
|
+
return T && (le === void 0 && (le = T == null ? void 0 : T[e.optionLabelProp || f.value.label]), K === void 0 && (K = (d = T == null ? void 0 : T.key) !== null && d !== void 0 ? d : D), fe = T == null ? void 0 : T.disabled), {
|
|
457
457
|
label: le,
|
|
458
458
|
value: D,
|
|
459
459
|
key: K,
|
|
460
|
-
disabled:
|
|
460
|
+
disabled: fe,
|
|
461
461
|
option: T
|
|
462
462
|
};
|
|
463
|
-
}), [E,
|
|
463
|
+
}), [E, Y] = Me(e.defaultValue, {
|
|
464
464
|
value: oe(e, "value")
|
|
465
465
|
}), te = A(() => {
|
|
466
466
|
var l;
|
|
@@ -494,7 +494,7 @@ const sl = pe({
|
|
|
494
494
|
[f.value.value]: l,
|
|
495
495
|
[f.value.label]: u
|
|
496
496
|
};
|
|
497
|
-
}, F =
|
|
497
|
+
}, F = ve();
|
|
498
498
|
Ne(() => {
|
|
499
499
|
if (e.mode !== "tags") {
|
|
500
500
|
F.value = S.value;
|
|
@@ -506,12 +506,12 @@ const sl = pe({
|
|
|
506
506
|
s(h) || l.push(y(h, u.label));
|
|
507
507
|
}), F.value = l;
|
|
508
508
|
});
|
|
509
|
-
const _ = ol(F, f, a, p, oe(e, "optionFilterProp")), L = A(() => e.mode !== "tags" || !a.value || _.value.some((l) => l[e.optionFilterProp || "value"] === a.value) ? _.value : [y(a.value), ..._.value]),
|
|
509
|
+
const _ = ol(F, f, a, p, oe(e, "optionFilterProp")), L = A(() => e.mode !== "tags" || !a.value || _.value.some((l) => l[e.optionFilterProp || "value"] === a.value) ? _.value : [y(a.value), ..._.value]), be = A(() => e.filterSort ? [...L.value].sort((l, s) => e.filterSort(l, s)) : L.value), Q = A(() => zt(be.value, {
|
|
510
510
|
fieldNames: f.value,
|
|
511
511
|
childrenAsData: m.value
|
|
512
512
|
})), z = (l) => {
|
|
513
513
|
const s = I(l);
|
|
514
|
-
if (
|
|
514
|
+
if (Y(s), e.onChange && // Trigger event only when value changed
|
|
515
515
|
(s.length !== R.value.length || s.some((u, h) => {
|
|
516
516
|
var d;
|
|
517
517
|
return ((d = R.value[h]) === null || d === void 0 ? void 0 : d.value) !== (u == null ? void 0 : u.value);
|
|
@@ -519,7 +519,7 @@ const sl = pe({
|
|
|
519
519
|
const u = e.labelInValue ? s.map((d) => P(P({}, d), {
|
|
520
520
|
originLabel: d.label,
|
|
521
521
|
label: typeof d.label == "function" ? d.label() : d.label
|
|
522
|
-
})) : s.map((d) => d.value), h = s.map((d) =>
|
|
522
|
+
})) : s.map((d) => d.value), h = s.map((d) => De(r(d.value)));
|
|
523
523
|
e.onChange(
|
|
524
524
|
// Value
|
|
525
525
|
v.value ? u : u[0],
|
|
@@ -527,7 +527,7 @@ const sl = pe({
|
|
|
527
527
|
v.value ? h : h[0]
|
|
528
528
|
);
|
|
529
529
|
}
|
|
530
|
-
}, [
|
|
530
|
+
}, [ye, M] = He(null), [ae, ie] = He(0), Se = A(() => e.defaultActiveFirstOption !== void 0 ? e.defaultActiveFirstOption : e.mode !== "combobox"), me = function(l, s) {
|
|
531
531
|
let {
|
|
532
532
|
source: u = "keyboard"
|
|
533
533
|
} = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
@@ -541,7 +541,7 @@ const sl = pe({
|
|
|
541
541
|
originLabel: D,
|
|
542
542
|
value: l,
|
|
543
543
|
key: (h = d == null ? void 0 : d.key) !== null && h !== void 0 ? h : l
|
|
544
|
-
} : l,
|
|
544
|
+
} : l, De(d)];
|
|
545
545
|
};
|
|
546
546
|
if (s && e.onSelect) {
|
|
547
547
|
const [h, d] = u();
|
|
@@ -569,7 +569,7 @@ const sl = pe({
|
|
|
569
569
|
return;
|
|
570
570
|
}
|
|
571
571
|
s.source !== "blur" && (e.mode === "combobox" && z(l), (u = e.onSearch) === null || u === void 0 || u.call(e, l));
|
|
572
|
-
},
|
|
572
|
+
}, q = (l) => {
|
|
573
573
|
let s = l;
|
|
574
574
|
e.mode !== "tags" && (s = l.map((h) => {
|
|
575
575
|
const d = c.value.get(h);
|
|
@@ -581,9 +581,9 @@ const sl = pe({
|
|
|
581
581
|
});
|
|
582
582
|
}, se = A(() => e.virtual !== !1 && e.dropdownMatchSelectWidth !== !1);
|
|
583
583
|
Qt(Ut(P(P({}, V), {
|
|
584
|
-
flattenOptions:
|
|
585
|
-
onActiveValue:
|
|
586
|
-
defaultActiveFirstOption:
|
|
584
|
+
flattenOptions: Q,
|
|
585
|
+
onActiveValue: me,
|
|
586
|
+
defaultActiveFirstOption: Se,
|
|
587
587
|
onSelect: C,
|
|
588
588
|
menuItemSelectedIcon: oe(e, "menuItemSelectedIcon"),
|
|
589
589
|
rawValues: x,
|
|
@@ -593,7 +593,7 @@ const sl = pe({
|
|
|
593
593
|
listItemHeight: oe(e, "listItemHeight"),
|
|
594
594
|
childrenAsData: m
|
|
595
595
|
})));
|
|
596
|
-
const re =
|
|
596
|
+
const re = Qe();
|
|
597
597
|
i({
|
|
598
598
|
focus() {
|
|
599
599
|
var l;
|
|
@@ -608,7 +608,7 @@ const sl = pe({
|
|
|
608
608
|
(s = re.value) === null || s === void 0 || s.scrollTo(l);
|
|
609
609
|
}
|
|
610
610
|
});
|
|
611
|
-
const
|
|
611
|
+
const Ce = A(() => Te(e, [
|
|
612
612
|
"id",
|
|
613
613
|
"mode",
|
|
614
614
|
"prefixCls",
|
|
@@ -641,7 +641,7 @@ const sl = pe({
|
|
|
641
641
|
"labelInValue",
|
|
642
642
|
"onChange"
|
|
643
643
|
]));
|
|
644
|
-
return () => N(Kt, j(j(j({},
|
|
644
|
+
return () => N(Kt, j(j(j({}, Ce.value), o), {}, {
|
|
645
645
|
id: n,
|
|
646
646
|
prefixCls: e.prefixCls,
|
|
647
647
|
ref: re,
|
|
@@ -651,11 +651,11 @@ const sl = pe({
|
|
|
651
651
|
onDisplayValuesChange: k,
|
|
652
652
|
searchValue: a.value,
|
|
653
653
|
onSearch: $,
|
|
654
|
-
onSearchSplit:
|
|
654
|
+
onSearchSplit: q,
|
|
655
655
|
dropdownMatchSelectWidth: e.dropdownMatchSelectWidth,
|
|
656
656
|
OptionList: Zt,
|
|
657
|
-
emptyOptions: !
|
|
658
|
-
activeValue:
|
|
657
|
+
emptyOptions: !Q.value.length,
|
|
658
|
+
activeValue: ye.value,
|
|
659
659
|
activeDescendantId: `${n}_list_${ae.value}`
|
|
660
660
|
}), t);
|
|
661
661
|
}
|
|
@@ -665,24 +665,24 @@ ke.displayName = "ASelectOption";
|
|
|
665
665
|
const $e = () => null;
|
|
666
666
|
$e.isSelectOptGroup = !0;
|
|
667
667
|
$e.displayName = "ASelectOptGroup";
|
|
668
|
-
const rl = () => P(P({}, Te(
|
|
668
|
+
const rl = () => P(P({}, Te(et(), ["inputIcon", "mode", "getInputElement", "getRawInputElement", "backfill"])), {
|
|
669
669
|
value: je([Array, Object, String, Number]),
|
|
670
670
|
defaultValue: je([Array, Object, String, Number]),
|
|
671
671
|
notFoundContent: ne.any,
|
|
672
672
|
suffixIcon: ne.any,
|
|
673
673
|
itemIcon: ne.any,
|
|
674
|
-
size:
|
|
675
|
-
mode:
|
|
676
|
-
bordered:
|
|
674
|
+
size: Ae(),
|
|
675
|
+
mode: Ae(),
|
|
676
|
+
bordered: dt(!0),
|
|
677
677
|
transitionName: String,
|
|
678
|
-
choiceTransitionName:
|
|
678
|
+
choiceTransitionName: Ae(""),
|
|
679
679
|
popupClassName: String,
|
|
680
680
|
/** @deprecated Please use `popupClassName` instead */
|
|
681
681
|
dropdownClassName: String,
|
|
682
|
-
placement:
|
|
683
|
-
status:
|
|
684
|
-
"onUpdate:value":
|
|
685
|
-
}),
|
|
682
|
+
placement: Ae(),
|
|
683
|
+
status: Ae(),
|
|
684
|
+
"onUpdate:value": vt()
|
|
685
|
+
}), Ke = "SECRET_COMBOBOX_MODE_DO_NOT_USE", ee = he({
|
|
686
686
|
compatConfig: {
|
|
687
687
|
MODE: 3
|
|
688
688
|
},
|
|
@@ -690,11 +690,11 @@ const rl = () => P(P({}, Te(Ze(), ["inputIcon", "mode", "getInputElement", "getR
|
|
|
690
690
|
Option: ke,
|
|
691
691
|
OptGroup: $e,
|
|
692
692
|
inheritAttrs: !1,
|
|
693
|
-
props:
|
|
693
|
+
props: Xe(rl(), {
|
|
694
694
|
listHeight: 256,
|
|
695
695
|
listItemHeight: 24
|
|
696
696
|
}),
|
|
697
|
-
SECRET_COMBOBOX_MODE_DO_NOT_USE:
|
|
697
|
+
SECRET_COMBOBOX_MODE_DO_NOT_USE: Ke,
|
|
698
698
|
slots: Object,
|
|
699
699
|
setup(e, g) {
|
|
700
700
|
let {
|
|
@@ -703,7 +703,7 @@ const rl = () => P(P({}, Te(Ze(), ["inputIcon", "mode", "getInputElement", "getR
|
|
|
703
703
|
slots: t,
|
|
704
704
|
expose: n
|
|
705
705
|
} = g;
|
|
706
|
-
const v =
|
|
706
|
+
const v = Qe(), m = Ft(), p = Dt.useInject(), f = A(() => Rt(p.status, e.status)), a = () => {
|
|
707
707
|
var C;
|
|
708
708
|
(C = v.value) === null || C === void 0 || C.focus();
|
|
709
709
|
}, b = () => {
|
|
@@ -717,34 +717,34 @@ const rl = () => P(P({}, Te(Ze(), ["inputIcon", "mode", "getInputElement", "getR
|
|
|
717
717
|
mode: C
|
|
718
718
|
} = e;
|
|
719
719
|
if (C !== "combobox")
|
|
720
|
-
return C ===
|
|
720
|
+
return C === Ke ? "combobox" : C;
|
|
721
721
|
}), {
|
|
722
722
|
prefixCls: c,
|
|
723
723
|
direction: S,
|
|
724
724
|
configProvider: I,
|
|
725
725
|
renderEmpty: E,
|
|
726
|
-
size:
|
|
726
|
+
size: Y,
|
|
727
727
|
getPrefixCls: te,
|
|
728
728
|
getPopupContainer: R,
|
|
729
729
|
disabled: r,
|
|
730
730
|
select: O
|
|
731
|
-
} =
|
|
731
|
+
} = Be("select", e), {
|
|
732
732
|
compactSize: x,
|
|
733
733
|
compactItemClassnames: y
|
|
734
|
-
} =
|
|
734
|
+
} = it(c, S), F = A(() => x.value || Y.value), _ = st(), L = A(() => {
|
|
735
735
|
var C;
|
|
736
736
|
return (C = r.value) !== null && C !== void 0 ? C : _.value;
|
|
737
|
-
}), [
|
|
737
|
+
}), [be, Q] = Wt(c), z = A(() => te()), ye = A(() => e.placement !== void 0 ? e.placement : S.value === "rtl" ? "bottomRight" : "bottomLeft"), M = A(() => rt(z.value, ct(ye.value), e.transitionName)), ae = A(() => pe({
|
|
738
738
|
[`${c.value}-lg`]: F.value === "large",
|
|
739
739
|
[`${c.value}-sm`]: F.value === "small",
|
|
740
740
|
[`${c.value}-rtl`]: S.value === "rtl",
|
|
741
741
|
[`${c.value}-borderless`]: !e.bordered,
|
|
742
742
|
[`${c.value}-in-form-item`]: p.isFormItemInput
|
|
743
|
-
}, Bt(c.value, f.value, p.hasFeedback), y.value,
|
|
743
|
+
}, Bt(c.value, f.value, p.hasFeedback), y.value, Q.value)), ie = function() {
|
|
744
744
|
for (var C = arguments.length, k = new Array(C), $ = 0; $ < C; $++)
|
|
745
745
|
k[$] = arguments[$];
|
|
746
746
|
o("update:value", k[0]), o("change", ...k), m.onFieldChange();
|
|
747
|
-
},
|
|
747
|
+
}, Se = (C) => {
|
|
748
748
|
o("blur", C), m.onFieldBlur();
|
|
749
749
|
};
|
|
750
750
|
n({
|
|
@@ -752,13 +752,13 @@ const rl = () => P(P({}, Te(Ze(), ["inputIcon", "mode", "getInputElement", "getR
|
|
|
752
752
|
focus: a,
|
|
753
753
|
scrollTo: V
|
|
754
754
|
});
|
|
755
|
-
const
|
|
755
|
+
const me = A(() => w.value === "multiple" || w.value === "tags"), U = A(() => e.showArrow !== void 0 ? e.showArrow : e.loading || !(me.value || w.value === "combobox"));
|
|
756
756
|
return () => {
|
|
757
|
-
var C, k, $,
|
|
757
|
+
var C, k, $, q;
|
|
758
758
|
const {
|
|
759
759
|
notFoundContent: se,
|
|
760
760
|
listHeight: re = 256,
|
|
761
|
-
listItemHeight:
|
|
761
|
+
listItemHeight: Ce = 24,
|
|
762
762
|
popupClassName: l,
|
|
763
763
|
dropdownClassName: s,
|
|
764
764
|
virtual: u,
|
|
@@ -768,27 +768,27 @@ const rl = () => P(P({}, Te(Ze(), ["inputIcon", "mode", "getInputElement", "getR
|
|
|
768
768
|
showArrow: le
|
|
769
769
|
} = e, {
|
|
770
770
|
hasFeedback: K,
|
|
771
|
-
feedbackIcon:
|
|
771
|
+
feedbackIcon: fe
|
|
772
772
|
} = p;
|
|
773
773
|
let T;
|
|
774
|
-
se !== void 0 ? T = se : t.notFoundContent ? T = t.notFoundContent() : w.value === "combobox" ? T = null : T = (E == null ? void 0 : E("Select")) || N(
|
|
774
|
+
se !== void 0 ? T = se : t.notFoundContent ? T = t.notFoundContent() : w.value === "combobox" ? T = null : T = (E == null ? void 0 : E("Select")) || N(ut, {
|
|
775
775
|
componentName: "Select"
|
|
776
776
|
}, null);
|
|
777
777
|
const {
|
|
778
778
|
suffixIcon: Ie,
|
|
779
779
|
itemIcon: ce,
|
|
780
|
-
removeIcon:
|
|
781
|
-
clearIcon:
|
|
780
|
+
removeIcon: lt,
|
|
781
|
+
clearIcon: ot
|
|
782
782
|
} = Xt(P(P({}, e), {
|
|
783
|
-
multiple:
|
|
783
|
+
multiple: me.value,
|
|
784
784
|
prefixCls: c.value,
|
|
785
785
|
hasFeedback: K,
|
|
786
|
-
feedbackIcon:
|
|
786
|
+
feedbackIcon: fe,
|
|
787
787
|
showArrow: U.value
|
|
788
|
-
}), t), Le = Te(e, ["prefixCls", "suffixIcon", "itemIcon", "removeIcon", "clearIcon", "size", "bordered", "status"]),
|
|
788
|
+
}), t), Le = Te(e, ["prefixCls", "suffixIcon", "itemIcon", "removeIcon", "clearIcon", "size", "bordered", "status"]), nt = pe(l || s, {
|
|
789
789
|
[`${c.value}-dropdown-${S.value}`]: S.value === "rtl"
|
|
790
|
-
},
|
|
791
|
-
return
|
|
790
|
+
}, Q.value);
|
|
791
|
+
return be(N(sl, j(j(j({
|
|
792
792
|
ref: v,
|
|
793
793
|
virtual: u,
|
|
794
794
|
dropdownMatchSelectWidth: h
|
|
@@ -796,24 +796,24 @@ const rl = () => P(P({}, Te(Ze(), ["inputIcon", "mode", "getInputElement", "getR
|
|
|
796
796
|
showSearch: (k = e.showSearch) !== null && k !== void 0 ? k : ($ = O == null ? void 0 : O.value) === null || $ === void 0 ? void 0 : $.showSearch,
|
|
797
797
|
placeholder: D,
|
|
798
798
|
listHeight: re,
|
|
799
|
-
listItemHeight:
|
|
799
|
+
listItemHeight: Ce,
|
|
800
800
|
mode: w.value,
|
|
801
801
|
prefixCls: c.value,
|
|
802
802
|
direction: S.value,
|
|
803
803
|
inputIcon: Ie,
|
|
804
804
|
menuItemSelectedIcon: ce,
|
|
805
|
-
removeIcon:
|
|
806
|
-
clearIcon:
|
|
805
|
+
removeIcon: lt,
|
|
806
|
+
clearIcon: ot,
|
|
807
807
|
notFoundContent: T,
|
|
808
808
|
class: [ae.value, i.class],
|
|
809
809
|
getPopupContainer: R == null ? void 0 : R.value,
|
|
810
|
-
dropdownClassName:
|
|
810
|
+
dropdownClassName: nt,
|
|
811
811
|
onChange: ie,
|
|
812
|
-
onBlur:
|
|
812
|
+
onBlur: Se,
|
|
813
813
|
id: d,
|
|
814
814
|
dropdownRender: Le.dropdownRender || t.dropdownRender,
|
|
815
815
|
transitionName: M.value,
|
|
816
|
-
children: (
|
|
816
|
+
children: (q = t.default) === null || q === void 0 ? void 0 : q.call(t),
|
|
817
817
|
tagRender: e.tagRender || t.tagRender,
|
|
818
818
|
optionLabelRender: t.optionLabel,
|
|
819
819
|
maxTagPlaceholder: e.maxTagPlaceholder || t.maxTagPlaceholder,
|
|
@@ -830,8 +830,8 @@ ee.install = function(e) {
|
|
|
830
830
|
};
|
|
831
831
|
ee.Option;
|
|
832
832
|
ee.OptGroup;
|
|
833
|
-
const
|
|
834
|
-
const o =
|
|
833
|
+
const xe = (e, g, i) => {
|
|
834
|
+
const o = gt(i);
|
|
835
835
|
return {
|
|
836
836
|
[`${e.componentCls}-${g}`]: {
|
|
837
837
|
color: e[`color${i}`],
|
|
@@ -842,7 +842,7 @@ const Ve = (e, g, i) => {
|
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
844
|
};
|
|
845
|
-
}, cl = (e) =>
|
|
845
|
+
}, cl = (e) => pt(e, (g, i) => {
|
|
846
846
|
let {
|
|
847
847
|
textColor: o,
|
|
848
848
|
lightBorderColor: t,
|
|
@@ -874,7 +874,7 @@ const Ve = (e, g, i) => {
|
|
|
874
874
|
} = e, n = o - i, v = g - i;
|
|
875
875
|
return {
|
|
876
876
|
// Result
|
|
877
|
-
[t]: P(P({},
|
|
877
|
+
[t]: P(P({}, ht(e)), {
|
|
878
878
|
display: "inline-block",
|
|
879
879
|
height: "auto",
|
|
880
880
|
marginInlineEnd: e.marginXS,
|
|
@@ -945,13 +945,13 @@ const Ve = (e, g, i) => {
|
|
|
945
945
|
background: e.tagBorderlessBg
|
|
946
946
|
}
|
|
947
947
|
};
|
|
948
|
-
},
|
|
948
|
+
}, tt = mt("Tag", (e) => {
|
|
949
949
|
const {
|
|
950
950
|
fontSize: g,
|
|
951
951
|
lineHeight: i,
|
|
952
952
|
lineWidth: o,
|
|
953
953
|
fontSizeIcon: t
|
|
954
|
-
} = e, n = Math.round(g * i), v = e.fontSizeSM, m = n - o * 2, p = e.colorFillAlter, f = e.colorText, a =
|
|
954
|
+
} = e, n = Math.round(g * i), v = e.fontSizeSM, m = n - o * 2, p = e.colorFillAlter, f = e.colorText, a = ft(e, {
|
|
955
955
|
tagFontSize: v,
|
|
956
956
|
tagLineHeight: m,
|
|
957
957
|
tagDefaultBg: p,
|
|
@@ -960,7 +960,7 @@ const Ve = (e, g, i) => {
|
|
|
960
960
|
tagPaddingHorizontal: 8,
|
|
961
961
|
tagBorderlessBg: e.colorFillTertiary
|
|
962
962
|
});
|
|
963
|
-
return [ul(a), cl(a),
|
|
963
|
+
return [ul(a), cl(a), xe(a, "success", "Success"), xe(a, "processing", "Info"), xe(a, "error", "Error"), xe(a, "warning", "Warning")];
|
|
964
964
|
}), dl = () => ({
|
|
965
965
|
prefixCls: String,
|
|
966
966
|
checked: {
|
|
@@ -974,7 +974,7 @@ const Ve = (e, g, i) => {
|
|
|
974
974
|
type: Function
|
|
975
975
|
},
|
|
976
976
|
"onUpdate:checked": Function
|
|
977
|
-
}),
|
|
977
|
+
}), Re = he({
|
|
978
978
|
compatConfig: {
|
|
979
979
|
MODE: 3
|
|
980
980
|
},
|
|
@@ -990,12 +990,12 @@ const Ve = (e, g, i) => {
|
|
|
990
990
|
} = g;
|
|
991
991
|
const {
|
|
992
992
|
prefixCls: n
|
|
993
|
-
} =
|
|
993
|
+
} = Be("tag", e), [v, m] = tt(n), p = (a) => {
|
|
994
994
|
const {
|
|
995
995
|
checked: b
|
|
996
996
|
} = e;
|
|
997
997
|
o("update:checked", !b), o("change", !b), o("click", a);
|
|
998
|
-
}, f = A(() =>
|
|
998
|
+
}, f = A(() => pe(n.value, m.value, {
|
|
999
999
|
[`${n.value}-checkable`]: !0,
|
|
1000
1000
|
[`${n.value}-checkable-checked`]: e.checked
|
|
1001
1001
|
}));
|
|
@@ -1025,14 +1025,14 @@ const Ve = (e, g, i) => {
|
|
|
1025
1025
|
onClose: {
|
|
1026
1026
|
type: Function
|
|
1027
1027
|
},
|
|
1028
|
-
onClick:
|
|
1028
|
+
onClick: Ct(),
|
|
1029
1029
|
"onUpdate:visible": Function,
|
|
1030
1030
|
icon: ne.any,
|
|
1031
1031
|
bordered: {
|
|
1032
1032
|
type: Boolean,
|
|
1033
1033
|
default: !0
|
|
1034
1034
|
}
|
|
1035
|
-
}),
|
|
1035
|
+
}), ge = he({
|
|
1036
1036
|
compatConfig: {
|
|
1037
1037
|
MODE: 3
|
|
1038
1038
|
},
|
|
@@ -1050,13 +1050,13 @@ const Ve = (e, g, i) => {
|
|
|
1050
1050
|
const {
|
|
1051
1051
|
prefixCls: n,
|
|
1052
1052
|
direction: v
|
|
1053
|
-
} =
|
|
1053
|
+
} = Be("tag", e), [m, p] = tt(n), f = ve(!0);
|
|
1054
1054
|
Ne(() => {
|
|
1055
1055
|
e.visible !== void 0 && (f.value = e.visible);
|
|
1056
1056
|
});
|
|
1057
1057
|
const a = (c) => {
|
|
1058
1058
|
c.stopPropagation(), o("update:visible", !1), o("close", c), !c.defaultPrevented && e.visible === void 0 && (f.value = !1);
|
|
1059
|
-
}, b = A(() =>
|
|
1059
|
+
}, b = A(() => bt(e.color) || yt(e.color)), V = A(() => pe(n.value, p.value, {
|
|
1060
1060
|
[`${n.value}-${e.color}`]: b.value,
|
|
1061
1061
|
[`${n.value}-has-color`]: e.color && !b.value,
|
|
1062
1062
|
[`${n.value}-hidden`]: !f.value,
|
|
@@ -1069,36 +1069,36 @@ const Ve = (e, g, i) => {
|
|
|
1069
1069
|
var c, S, I;
|
|
1070
1070
|
const {
|
|
1071
1071
|
icon: E = (c = i.icon) === null || c === void 0 ? void 0 : c.call(i),
|
|
1072
|
-
color:
|
|
1072
|
+
color: Y,
|
|
1073
1073
|
closeIcon: te = (S = i.closeIcon) === null || S === void 0 ? void 0 : S.call(i),
|
|
1074
1074
|
closable: R = !1
|
|
1075
1075
|
} = e, r = () => R ? te ? N("span", {
|
|
1076
1076
|
class: `${n.value}-close-icon`,
|
|
1077
1077
|
onClick: a
|
|
1078
|
-
}, [te]) : N(
|
|
1078
|
+
}, [te]) : N(At, {
|
|
1079
1079
|
class: `${n.value}-close-icon`,
|
|
1080
1080
|
onClick: a
|
|
1081
1081
|
}, null) : null, O = {
|
|
1082
|
-
backgroundColor:
|
|
1083
|
-
}, x = E || null, y = (I = i.default) === null || I === void 0 ? void 0 : I.call(i), F = x ? N(
|
|
1082
|
+
backgroundColor: Y && !b.value ? Y : void 0
|
|
1083
|
+
}, x = E || null, y = (I = i.default) === null || I === void 0 ? void 0 : I.call(i), F = x ? N(Ve, null, [x, N("span", null, [y])]) : y, _ = e.onClick !== void 0, L = N("span", j(j({}, t), {}, {
|
|
1084
1084
|
onClick: w,
|
|
1085
1085
|
class: [V.value, t.class],
|
|
1086
1086
|
style: [O, t.style]
|
|
1087
1087
|
}), [F, r()]);
|
|
1088
|
-
return m(_ ? N(
|
|
1088
|
+
return m(_ ? N(St, null, {
|
|
1089
1089
|
default: () => [L]
|
|
1090
1090
|
}) : L);
|
|
1091
1091
|
};
|
|
1092
1092
|
}
|
|
1093
1093
|
});
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
return e.component(
|
|
1094
|
+
ge.CheckableTag = Re;
|
|
1095
|
+
ge.install = function(e) {
|
|
1096
|
+
return e.component(ge.name, ge), e.component(Re.name, Re), e;
|
|
1097
1097
|
};
|
|
1098
1098
|
const ml = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGXSURBVHgBlVNLTgJBEK1qOrjtI4w34AhwAuQEZBJc4yyVBbCRxE2HrZoQT4CcAI7AEeYIbDUM5asGZYj0KJX0J1WvX9eXqUIm/qUpbNp6ZzHT+yzNY1iOGR796w2sc1w3B5Ujoc5D1ns/hzcxImb2OPJPqV3rwn0NYh/DR4mEJBGhxShLN7pEZAF1EsPbmAExr7C1kad9KGy6oF/RpR6R1FIGkzAvw4KPqqv4OC4jP3N1LpZ6R55aGiJd7JES4SF+CquK5JdHWnKE48o6YenjcCw8PtGTbMqtwGWSQ9/8X0p9ZY+M7DShLNKCOq9m2Cb7Ahy9P1N+m1eNgsrEz7AXJ7qQ7Cf/3IBLw71rxQzApIIkUUyAsgzDWyXSEhdcm2tY6N4xuqXxDTwrsCkGXT/VPtuyWSqHuaJtQ8cBuUkH2e0IgDcAmzEeteHD6SDr3eHMoHLKYT/IruuIF0PaR+UczjaIc4rLGpguRmfFTN1dUNncHAZyDEUoP0iclV0nxgLbz+joG32rxeGTJKKs6uFfXaw50XDK2C8hpcmbpfjHLAAAAABJRU5ErkJggg==", fl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGxSURBVHgB1VQ9TsNQDLYTKtYeIUeAjQXRboztESLoTDIGhqZLA1OSua3CEdqRidygPULYGDsipMTYLy9Sq/yIbuDqqe99tr989nMC8NcNu5xBmFiAeUIAF3zsGwBrItP1XDs7mVDICPOtEHFQKhgTD/hvj2RetpEabYRMFioyoqHn3Ksle8FEdVteKyHbSJR57iStANkLpltwMuG+w9c/mZCV7KRnQbgYVJjsBePSN215Z20OINPmXm0J8T2IlqmC9KVwmtOWZjaBfpj0TcivCOgDEYXE0guI6EWor2/Hn+nb5gvqlR3bc7x8KAh86OiTtozZ40d3Eh2CRz0M4tWUySJVFpGrllIFsR4ZsR0S2ihaEMN5uHAaCdUgE/ny5G8eXHkygrEvg2hdjgxmcvbcu1cgY6jOiFNpUYPCYlCqwZnv2oqIoFCBfDHJPFqF3FOrilZvCsFMWtODYlQjLKBQwT3IdxUmKlm1JLGPnLJcc3xQYKqzrQaFpeXQOxroJ3fis5KxEHMrhl0fBrH6HPJ7ynNXh/l3DvnNoY8g77cSGmBkIKOg5+03pmcuI31Z/8N+AJZHvSBz6IiBAAAAAElFTkSuQmCC", gl = { class: "crane-flex-center permission-item-wraper" }, pl = { style: { "flex-shrink": "0" } }, hl = { style: { "max-width": "400px" } }, bl = { class: "crane-text-overflow" }, yl = { style: { "max-width": "400px" } }, Sl = { style: { "max-width": "400px" } }, Cl = { class: "crane-flex-center crane-margin-left-4" }, Al = ["src"], Ol = { class: "crane-weak-color crane-margin-left-4" }, Il = ["src"], wl = { style: { "max-width": "400px" } }, xl = { class: "crane-weak-color crane-margin-left-4 crane-text-overflow" }, Vl = {
|
|
1099
1099
|
key: 6,
|
|
1100
1100
|
class: "crane-weak-color crane-margin-left-12"
|
|
1101
|
-
},
|
|
1101
|
+
}, Ge = "OWNER", Nl = /* @__PURE__ */ he({
|
|
1102
1102
|
__name: "permission-item",
|
|
1103
1103
|
props: {
|
|
1104
1104
|
checkedKeys: {
|
|
@@ -1120,106 +1120,106 @@ const ml = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAA
|
|
|
1120
1120
|
const i = {
|
|
1121
1121
|
L1: {
|
|
1122
1122
|
color: "#1AA83B",
|
|
1123
|
-
text:
|
|
1123
|
+
text: X("levels.L1"),
|
|
1124
1124
|
background: "#E3F9E9"
|
|
1125
1125
|
},
|
|
1126
1126
|
L2: {
|
|
1127
1127
|
color: "#F37D1C",
|
|
1128
|
-
text:
|
|
1128
|
+
text: X("levels.L2"),
|
|
1129
1129
|
background: "#FFE4BA"
|
|
1130
1130
|
},
|
|
1131
1131
|
L3: {
|
|
1132
1132
|
color: "#F2494B",
|
|
1133
|
-
text:
|
|
1133
|
+
text: X("levels.L3"),
|
|
1134
1134
|
background: "#FDCDC5"
|
|
1135
1135
|
}
|
|
1136
1136
|
};
|
|
1137
1137
|
let o = g, t = e;
|
|
1138
|
-
const n =
|
|
1138
|
+
const n = X("status"), v = A(() => t.validTimeOptions.filter((f) => f.value !== "FOREVER")), m = (f) => {
|
|
1139
1139
|
var a, b;
|
|
1140
|
-
return `【${f.categoryName}】:${((b = (a = f.attributeValues) == null ? void 0 : a.map((V) => V.attributeName)) == null ? void 0 : b.join("、")) ||
|
|
1140
|
+
return `【${f.categoryName}】:${((b = (a = f.attributeValues) == null ? void 0 : a.map((V) => V.attributeName)) == null ? void 0 : b.join("、")) || X("empty")}`;
|
|
1141
1141
|
}, p = () => {
|
|
1142
1142
|
o("updateTime", t.item), o("onChangeTime", t.item);
|
|
1143
1143
|
};
|
|
1144
1144
|
return (f, a) => {
|
|
1145
1145
|
var b, V, w;
|
|
1146
|
-
return
|
|
1147
|
-
e.item.securityLevel ? (
|
|
1146
|
+
return G(), ue("div", gl, [
|
|
1147
|
+
e.item.securityLevel ? (G(), Oe(B(ge), {
|
|
1148
1148
|
key: 0,
|
|
1149
1149
|
bordered: !1,
|
|
1150
|
-
style:
|
|
1150
|
+
style: Vt({ color: i[e.item.securityLevel].color, background: i[e.item.securityLevel].background }),
|
|
1151
1151
|
class: "crane-tag-position"
|
|
1152
1152
|
}, {
|
|
1153
1153
|
default: J(() => [
|
|
1154
|
-
|
|
1154
|
+
Pe(H(i[e.item.securityLevel].text), 1)
|
|
1155
1155
|
]),
|
|
1156
1156
|
_: 1
|
|
1157
|
-
}, 8, ["style"])) :
|
|
1158
|
-
|
|
1157
|
+
}, 8, ["style"])) : de("", !0),
|
|
1158
|
+
W("div", pl, H(B(X)(`operationType.${e.item.operationType}`)) + "| ", 1),
|
|
1159
1159
|
N(B(we), null, {
|
|
1160
1160
|
content: J(() => [
|
|
1161
|
-
|
|
1161
|
+
W("div", hl, H(e.item.name), 1)
|
|
1162
1162
|
]),
|
|
1163
1163
|
default: J(() => [
|
|
1164
|
-
|
|
1164
|
+
W("div", bl, H(e.item.shortName), 1)
|
|
1165
1165
|
]),
|
|
1166
1166
|
_: 1
|
|
1167
1167
|
}),
|
|
1168
|
-
e.item.businessApplyType ? (
|
|
1168
|
+
e.item.businessApplyType ? (G(), Oe(B(ge), {
|
|
1169
1169
|
key: 1,
|
|
1170
1170
|
bordered: !1,
|
|
1171
|
-
class:
|
|
1171
|
+
class: Nt(["crane-tag-position crane-margin-left-4 crane-margin-right-0", ["PENDING"].includes(e.item.businessApplyType) ? "" : "crane-disabled-color"])
|
|
1172
1172
|
}, {
|
|
1173
1173
|
default: J(() => {
|
|
1174
1174
|
var c, S, I, E;
|
|
1175
1175
|
return [
|
|
1176
|
-
|
|
1176
|
+
Pe(H(B(n)[e.item.businessApplyType]) + " " + H(e.item.businessApplyType === "TEMP_OWNER" ? `(${((S = (c = e.item) == null ? void 0 : c.ownStatusVO) == null ? void 0 : S.dayDiff) > 0 ? B(X)("lastDays", {
|
|
1177
1177
|
count: (E = (I = e.item) == null ? void 0 : I.ownStatusVO) == null ? void 0 : E.dayDiff
|
|
1178
|
-
}) : B(
|
|
1178
|
+
}) : B(X)("today")})` : ""), 1)
|
|
1179
1179
|
];
|
|
1180
1180
|
}),
|
|
1181
1181
|
_: 1
|
|
1182
|
-
}, 8, ["class"])) :
|
|
1183
|
-
e.item.desc ? (
|
|
1182
|
+
}, 8, ["class"])) : de("", !0),
|
|
1183
|
+
e.item.desc ? (G(), Oe(B(we), { key: 2 }, {
|
|
1184
1184
|
content: J(() => [
|
|
1185
|
-
|
|
1185
|
+
W("div", yl, H(e.item.desc), 1)
|
|
1186
1186
|
]),
|
|
1187
1187
|
default: J(() => [
|
|
1188
1188
|
N(B(kt), { class: "crane-weak-color crane-margin-left-4" })
|
|
1189
1189
|
]),
|
|
1190
1190
|
_: 1
|
|
1191
|
-
})) :
|
|
1192
|
-
(b = e.item.relatedCompleteNames) != null && b.length ? (
|
|
1191
|
+
})) : de("", !0),
|
|
1192
|
+
(b = e.item.relatedCompleteNames) != null && b.length ? (G(), Oe(B(we), { key: 3 }, {
|
|
1193
1193
|
content: J(() => [
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1194
|
+
W("div", Sl, [
|
|
1195
|
+
W("div", null, H(B(X)("adaptDepartment")) + ": ", 1),
|
|
1196
|
+
(G(!0), ue(Ve, null, ze(e.item.relatedCompleteNames, (c) => (G(), ue("div", null, H(c), 1))), 256))
|
|
1197
1197
|
])
|
|
1198
1198
|
]),
|
|
1199
1199
|
default: J(() => [
|
|
1200
|
-
|
|
1201
|
-
|
|
1200
|
+
W("div", Cl, [
|
|
1201
|
+
W("img", {
|
|
1202
1202
|
src: B(ml),
|
|
1203
1203
|
height: "14",
|
|
1204
1204
|
width: "14"
|
|
1205
1205
|
}, null, 8, Al),
|
|
1206
|
-
|
|
1206
|
+
W("span", Ol, H(e.item.relatedCompleteNames.length), 1)
|
|
1207
1207
|
])
|
|
1208
1208
|
]),
|
|
1209
1209
|
_: 1
|
|
1210
|
-
})) :
|
|
1211
|
-
(V = e.item.categoryVOS) != null && V.length ? (
|
|
1210
|
+
})) : de("", !0),
|
|
1211
|
+
(V = e.item.categoryVOS) != null && V.length ? (G(), ue("img", {
|
|
1212
1212
|
key: 4,
|
|
1213
1213
|
src: B(fl),
|
|
1214
1214
|
height: "16",
|
|
1215
1215
|
width: "16",
|
|
1216
1216
|
class: "crane-margin-left-4"
|
|
1217
|
-
}, null, 8, Il)) :
|
|
1218
|
-
(w = e.item.categoryVOS) != null && w.length ? (
|
|
1217
|
+
}, null, 8, Il)) : de("", !0),
|
|
1218
|
+
(w = e.item.categoryVOS) != null && w.length ? (G(), Oe(B(we), { key: 5 }, {
|
|
1219
1219
|
content: J(() => [
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
(
|
|
1220
|
+
W("div", wl, [
|
|
1221
|
+
W("div", null, H(B(X)("categoryTips")), 1),
|
|
1222
|
+
(G(!0), ue(Ve, null, ze(e.item.categoryVOS, (c) => (G(), ue("div", {
|
|
1223
1223
|
key: c.id
|
|
1224
1224
|
}, H(m(c)), 1))), 128))
|
|
1225
1225
|
])
|
|
@@ -1227,27 +1227,27 @@ const ml = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAA
|
|
|
1227
1227
|
default: J(() => {
|
|
1228
1228
|
var c;
|
|
1229
1229
|
return [
|
|
1230
|
-
|
|
1230
|
+
W("div", xl, H((c = e.item.categoryVOS) == null ? void 0 : c.map((S) => S.categoryName).join("、")), 1)
|
|
1231
1231
|
];
|
|
1232
1232
|
}),
|
|
1233
1233
|
_: 1
|
|
1234
|
-
})) :
|
|
1235
|
-
e.checkedKeys.includes(e.item.feature) && !e.item.disabled ? (
|
|
1236
|
-
|
|
1234
|
+
})) : de("", !0),
|
|
1235
|
+
e.checkedKeys.includes(e.item.feature) && !e.item.disabled ? (G(), ue("span", Vl, [
|
|
1236
|
+
Pe(H(B(X)("availableTime")) + ": ", 1),
|
|
1237
1237
|
N(B(ee), {
|
|
1238
1238
|
value: e.item.validTime,
|
|
1239
1239
|
"onUpdate:value": a[0] || (a[0] = (c) => e.item.validTime = c),
|
|
1240
1240
|
style: { width: "100px" },
|
|
1241
|
-
disabled: e.item.businessApplyType ===
|
|
1242
|
-
options: e.item.businessApplyType ===
|
|
1241
|
+
disabled: e.item.businessApplyType === Ge,
|
|
1242
|
+
options: e.item.businessApplyType === Ge ? e.validTimeOptions : v.value,
|
|
1243
1243
|
onChange: p,
|
|
1244
1244
|
size: "small"
|
|
1245
1245
|
}, null, 8, ["value", "disabled", "options"])
|
|
1246
|
-
])) :
|
|
1246
|
+
])) : de("", !0)
|
|
1247
1247
|
]);
|
|
1248
1248
|
};
|
|
1249
1249
|
}
|
|
1250
|
-
}), Dl = /* @__PURE__ */
|
|
1250
|
+
}), Dl = /* @__PURE__ */ Ot(Nl, [["__scopeId", "data-v-fbd29c4b"]]);
|
|
1251
1251
|
export {
|
|
1252
1252
|
Dl as default
|
|
1253
1253
|
};
|