@pubinfo/module-rbac 2.0.1 → 2.0.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/{IconSelect-D50456Yh.js → IconSelect-BMlRIxBx.js} +117 -114
- package/dist/{IconSelect-BEetYi8i.js → IconSelect-BeZfjsl0.js} +1 -1
- package/dist/IconSelect.css +1 -1
- package/dist/{ResourceEdit-BVdRFGOK.js → ResourceEdit-BSaHxlbT.js} +1 -1
- package/dist/{ResourceEdit-JPc5dCoU.js → ResourceEdit-Beu0QLBf.js} +2 -2
- package/dist/components/ResourceSelector/hooks/useAppAndResource.d.ts +6 -15
- package/dist/components/RoleSelector/useRole.d.ts +4 -68
- package/dist/index.css +1 -1
- package/dist/index.js +9 -9
- package/dist/{resource-Bzx2Tx8m.js → resource-UmUb9yZa.js} +2 -2
- package/dist/stores/view.d.ts +21 -126
- package/dist/utils/routeSystem.d.ts +21 -126
- package/dist/views/blackWhiteList/index.vue.d.ts +40 -40
- package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +4 -4
- package/dist/views/data-permission/index.vue.d.ts +44 -44
- package/dist/views/dictionary/index.vue.d.ts +40 -40
- package/dist/views/dictionary/itemlist.vue.d.ts +40 -40
- package/dist/views/group/index.vue.d.ts +40 -40
- package/dist/views/log_center/components/browserType.vue.d.ts +2 -2
- package/dist/views/log_center/components/loginHistoryDetail.vue.d.ts +2 -2
- package/dist/views/log_center/components/operateHistoryDetail.vue.d.ts +2 -2
- package/dist/views/log_center/login_history.vue.d.ts +40 -40
- package/dist/views/log_center/operate_history.vue.d.ts +40 -40
- package/dist/views/position/index.vue.d.ts +40 -40
- package/dist/views/region/index.vue.d.ts +40 -40
- package/dist/views/resource/hooks/useMetaForm.d.ts +1 -8
- package/dist/views/resource/index.vue.d.ts +40 -40
- package/dist/views/role/components/ResourceRelation.vue.d.ts +40 -40
- package/dist/views/role/index.vue.d.ts +80 -80
- package/dist/views/role_group/index.vue.d.ts +40 -40
- package/dist/views/tenant/index.vue.d.ts +40 -40
- package/dist/views/user/index.vue.d.ts +40 -40
- package/package.json +3 -3
- package/src/components/ResourceIcones/Select.vue +76 -67
|
@@ -189,13 +189,10 @@ const le = { class: "flex gap-4 min-h-[600px]" }, ue = { class: "w-58 flex flex-
|
|
|
189
189
|
}, we = {
|
|
190
190
|
key: 0,
|
|
191
191
|
class: "relative w-60 flex flex-col border-l border-[#e5e7eb] dark:border-[#30363d] pl-4 min-h-0"
|
|
192
|
-
}, Te = { class: "flex flex-col flex-1 w-full rounded-md border border-dashed border-[#d0d7de] dark:border-[#30363d] text-12px text-[#6b7280] dark:text-[#94a3b8] p-3 overflow-hidden" }, Ee = { class: "shrink-0 flex justify-center items-center pb-4 border-b border-b-dashed border-b-[#d0d7de] dark:border-b-[#30363d]" }, De = { class: "w-8 h-8 flex justify-center items-center" }, Oe = { class: "w-8 h-8 flex justify-center items-center" }, ke = { class: "w-8 h-8 flex justify-center items-center" }, Ae = { class: "flex-1 w-full mt-3 px-2 overflow-auto space-y-3" }, je = { class: "flex flex-col justify-start w-full opacity-100" }, Me = { class: "flex items-center gap-3 w-full" }, Ne = { class: "flex flex-col" },
|
|
193
|
-
key: 0,
|
|
194
|
-
class: "text-8px opacity-70"
|
|
195
|
-
}, Re = { class: "w-full mt-auto flex aspect-square" }, ze = { class: "flex-1 w-full h-full py-4 rounded-md border-t border-t-dashed border-t-[#d0d7de] dark:border-t-[#30363d] flex flex-col items-center gap-2" }, Be = {
|
|
192
|
+
}, Te = { class: "flex flex-col flex-1 w-full rounded-md border border-dashed border-[#d0d7de] dark:border-[#30363d] text-12px text-[#6b7280] dark:text-[#94a3b8] p-3 overflow-hidden" }, Ee = { class: "shrink-0 flex justify-center items-center pb-4 border-b border-b-dashed border-b-[#d0d7de] dark:border-b-[#30363d]" }, De = { class: "w-8 h-8 flex justify-center items-center" }, Oe = { class: "w-8 h-8 flex justify-center items-center" }, ke = { class: "w-8 h-8 flex justify-center items-center" }, Ae = { class: "flex-1 w-full mt-3 px-2 overflow-auto space-y-3" }, je = { class: "flex flex-col justify-start w-full opacity-100" }, Me = { class: "flex items-center gap-3 mb-0! w-full flex-col" }, Ne = { class: "flex" }, Pe = { class: "text-12px opacity-70 w-14 shrink-0 flex items-center" }, Fe = { class: "flex flex-col" }, Ie = { class: "relative inline-flex items-center" }, Le = ["disabled"], Re = ["value", "disabled"], ze = { class: "w-full mt-auto flex aspect-square" }, Be = { class: "flex-1 w-full h-full py-4 rounded-md border-t border-t-dashed border-t-[#d0d7de] dark:border-t-[#30363d] flex flex-col items-center gap-2" }, Ve = {
|
|
196
193
|
key: 0,
|
|
197
194
|
class: "w-full h-full flex items-center justify-center"
|
|
198
|
-
},
|
|
195
|
+
}, He = { class: "mt-4 flex justify-end gap-2" };
|
|
199
196
|
var U = /* @__PURE__ */ f({
|
|
200
197
|
name: "ResourceIconesSelect",
|
|
201
198
|
__name: "Select",
|
|
@@ -295,10 +292,10 @@ var U = /* @__PURE__ */ f({
|
|
|
295
292
|
let e = q.value.trim().toLowerCase();
|
|
296
293
|
return e ? Y.value.filter((t) => t.name.toLowerCase().includes(e)) : Y.value;
|
|
297
294
|
});
|
|
298
|
-
function
|
|
295
|
+
function Ue(e) {
|
|
299
296
|
return e === "all" ? J.value.length : e === "antd" ? J.value.filter((e) => e.module === "antd").length : J.value.filter((t) => t.module === e).length;
|
|
300
297
|
}
|
|
301
|
-
let Z = _(1), Q = a(() => Math.max(1, Math.ceil(X.value.length / 30))),
|
|
298
|
+
let Z = _(1), Q = a(() => Math.max(1, Math.ceil(X.value.length / 30))), We = a(() => {
|
|
302
299
|
let e = (Z.value - 1) * 30;
|
|
303
300
|
return X.value.slice(e, e + 30);
|
|
304
301
|
});
|
|
@@ -307,14 +304,14 @@ var U = /* @__PURE__ */ f({
|
|
|
307
304
|
}), w(X, () => {
|
|
308
305
|
Z.value > Q.value && (Z.value = Q.value);
|
|
309
306
|
});
|
|
310
|
-
function
|
|
307
|
+
function Ge(e) {
|
|
311
308
|
Z.value = e;
|
|
312
309
|
}
|
|
313
|
-
function
|
|
310
|
+
function Ke(e) {
|
|
314
311
|
j.value = e.name;
|
|
315
312
|
}
|
|
316
|
-
let
|
|
317
|
-
function
|
|
313
|
+
let qe = D.PRESENTED_IMAGE_SIMPLE;
|
|
314
|
+
function Je() {
|
|
318
315
|
if (!(j.value || "").startsWith("antd:")) return;
|
|
319
316
|
let e = L.value;
|
|
320
317
|
e && (e.style.width = "16px", e.style.height = "16px", e.click());
|
|
@@ -373,17 +370,17 @@ var U = /* @__PURE__ */ f({
|
|
|
373
370
|
key: e.value,
|
|
374
371
|
class: p(["flex items-center justify-between px-3 py-2 rounded-md cursor-pointer text-13px border border-transparent hover:bg-[#f3f6fa] dark:hover:bg-[#262c33] transition", K.value === e.value ? "bg-[#eef5ff] dark:bg-[#1e2a33] border-[#1677ff] text-[#1677ff] font-medium" : "text-[#4b5563]"]),
|
|
375
372
|
onClick: (t) => K.value = e.value
|
|
376
|
-
}, [l("span", me, x(e.label), 1), l("span", he, x(
|
|
373
|
+
}, [l("span", me, x(e.label), 1), l("span", he, x(Ue(e.value)), 1)], 10, pe))), 128))])]),
|
|
377
374
|
s(" 主体 "),
|
|
378
375
|
l("div", ge, [X.value.length ? (h(), c(i, { key: 0 }, [
|
|
379
|
-
l("div", _e, [(h(!0), c(i, null, v(
|
|
376
|
+
l("div", _e, [(h(!0), c(i, null, v(We.value, (e) => (h(), o(a, {
|
|
380
377
|
key: `${e.module || ""}:${e.name}`,
|
|
381
378
|
"mouse-enter-delay": .35
|
|
382
379
|
}, {
|
|
383
380
|
title: T(() => [l("div", ve, [l("div", ye, x(e.name), 1), e.module ? (h(), c("div", be, " 模块: " + x(e.module), 1)) : s("v-if", !0)])]),
|
|
384
381
|
default: T(() => [l("div", {
|
|
385
382
|
class: p(["group relative flex flex-col items-center justify-center cursor-pointer rounded-md border", j.value === e.name ? "border-solid border-[#1677ff]" : "border-dashed border-[#e5e7eb] dark:border-[#30363d]"]),
|
|
386
|
-
onClick: (t) =>
|
|
383
|
+
onClick: (t) => Ke(e)
|
|
387
384
|
}, [d(S(n), {
|
|
388
385
|
name: e.name,
|
|
389
386
|
size: "30px"
|
|
@@ -397,107 +394,113 @@ var U = /* @__PURE__ */ f({
|
|
|
397
394
|
total: X.value.length,
|
|
398
395
|
"show-size-changer": !1,
|
|
399
396
|
"show-quick-jumper": "",
|
|
400
|
-
onChange:
|
|
397
|
+
onChange: Ge
|
|
401
398
|
}, null, 8, ["current", "total"])])
|
|
402
399
|
], 64)) : (h(), c("div", Ce, [d(_, {
|
|
403
|
-
image: S(
|
|
400
|
+
image: S(qe),
|
|
404
401
|
description: "没有匹配的图标"
|
|
405
402
|
}, null, 8, ["image"])]))]),
|
|
406
403
|
s(" 右侧预留区域 "),
|
|
407
|
-
j.value ? (h(), c("div", we, [
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
}, null, 8, ["name"])])]),
|
|
441
|
-
_: 1
|
|
442
|
-
})
|
|
443
|
-
]),
|
|
444
|
-
_: 1
|
|
445
|
-
}, 8, ["value"])]),
|
|
446
|
-
s(" 中间配置:保持在中部,可滚动,占据剩余空间 "),
|
|
447
|
-
l("div", Ae, [
|
|
448
|
-
s(" 背景设置:始终显示;当 boxType 为 null 时禁用 "),
|
|
449
|
-
l("div", je, [r[8] ||= l("div", { class: "text-12px mb-2 opacity-70" }, " 背景设置 ", -1), d(ce, {
|
|
450
|
-
angle: N.value,
|
|
451
|
-
"onUpdate:angle": r[2] ||= (e) => N.value = e,
|
|
452
|
-
background: P.value,
|
|
453
|
-
"onUpdate:background": r[3] ||= (e) => P.value = e,
|
|
454
|
-
radius: F.value,
|
|
455
|
-
"onUpdate:radius": r[4] ||= (e) => F.value = e,
|
|
456
|
-
disabled: M.value === "null"
|
|
457
|
-
}, null, 8, [
|
|
458
|
-
"angle",
|
|
459
|
-
"background",
|
|
460
|
-
"radius",
|
|
461
|
-
"disabled"
|
|
462
|
-
])]),
|
|
463
|
-
s(" 图标颜色设置:始终显示;非 AntD 图标时禁用 "),
|
|
464
|
-
l("div", Me, [r[9] ||= l("label", { class: "text-12px opacity-70 w-14 shrink-0" }, "图标色", -1), l("div", Ne, [d(f, {
|
|
465
|
-
value: I.value,
|
|
466
|
-
"onUpdate:value": r[6] ||= (e) => I.value = e,
|
|
467
|
-
"allow-clear": "",
|
|
468
|
-
placeholder: M.value === "null" ? "默认" : "#ffffff",
|
|
469
|
-
size: "small",
|
|
470
|
-
class: "flex-1 min-w-0",
|
|
471
|
-
disabled: !$.value
|
|
472
|
-
}, {
|
|
473
|
-
prefix: T(() => [l("div", Pe, [l("button", {
|
|
474
|
-
type: "button",
|
|
475
|
-
disabled: !$.value,
|
|
476
|
-
class: p(["w-4 h-4 rounded border border-gray-300 dark:border-gray-700", $.value ? "" : "opacity-50 cursor-not-allowed"]),
|
|
477
|
-
style: m({ background: I.value || "#ffffff" }),
|
|
478
|
-
onClick: qe
|
|
479
|
-
}, null, 14, Fe), l("input", {
|
|
480
|
-
ref_key: "iconColorPickerRef",
|
|
481
|
-
ref: L,
|
|
482
|
-
type: "color",
|
|
483
|
-
value: I.value || "#ffffff",
|
|
484
|
-
disabled: !$.value,
|
|
485
|
-
class: "absolute left-0 top-0 opacity-0 pointer-events-none",
|
|
486
|
-
style: {
|
|
487
|
-
width: "16px",
|
|
488
|
-
height: "16px"
|
|
489
|
-
},
|
|
490
|
-
onInput: r[5] ||= (e) => I.value = e.target.value
|
|
491
|
-
}, null, 40, Ie)])]),
|
|
404
|
+
j.value ? (h(), c("div", we, [l("div", Te, [
|
|
405
|
+
s(" 选项:固定顶部 "),
|
|
406
|
+
l("div", Ee, [d(C, {
|
|
407
|
+
value: M.value,
|
|
408
|
+
"onUpdate:value": r[1] ||= (e) => M.value = e,
|
|
409
|
+
class: "flex justify-center items-center"
|
|
410
|
+
}, {
|
|
411
|
+
default: T(() => [
|
|
412
|
+
d(b, { value: "null" }, {
|
|
413
|
+
default: T(() => [l("div", De, [d(S(n), {
|
|
414
|
+
name: j.value,
|
|
415
|
+
size: 16
|
|
416
|
+
}, null, 8, ["name", "size"])])]),
|
|
417
|
+
_: 1
|
|
418
|
+
}),
|
|
419
|
+
d(b, { value: "square" }, {
|
|
420
|
+
default: T(() => [l("div", Oe, [d(S(n), {
|
|
421
|
+
name: j.value,
|
|
422
|
+
box: "square",
|
|
423
|
+
size: 24,
|
|
424
|
+
radius: "6px",
|
|
425
|
+
color: "#ffffff"
|
|
426
|
+
}, null, 8, ["name"])])]),
|
|
427
|
+
_: 1
|
|
428
|
+
}),
|
|
429
|
+
d(b, { value: "prism" }, {
|
|
430
|
+
default: T(() => [l("div", ke, [d(S(n), {
|
|
431
|
+
name: j.value,
|
|
432
|
+
box: "prism",
|
|
433
|
+
size: 24,
|
|
434
|
+
color: "#ffffff",
|
|
435
|
+
radius: "2px"
|
|
436
|
+
}, null, 8, ["name"])])]),
|
|
492
437
|
_: 1
|
|
493
|
-
}
|
|
494
|
-
"value",
|
|
495
|
-
"placeholder",
|
|
496
|
-
"disabled"
|
|
497
|
-
]), $.value ? s("v-if", !0) : (h(), c("span", Le, "仅 Ant Design 图标有效"))])])
|
|
438
|
+
})
|
|
498
439
|
]),
|
|
440
|
+
_: 1
|
|
441
|
+
}, 8, ["value"])]),
|
|
442
|
+
s(" 中间配置:保持在中部,可滚动,占据剩余空间 "),
|
|
443
|
+
l("div", Ae, [
|
|
444
|
+
s(" 背景设置:始终显示;当 boxType 为 null 时禁用 "),
|
|
445
|
+
l("div", je, [r[8] ||= l("div", { class: "text-12px mb-2 opacity-70" }, " 背景设置 ", -1), d(ce, {
|
|
446
|
+
angle: N.value,
|
|
447
|
+
"onUpdate:angle": r[2] ||= (e) => N.value = e,
|
|
448
|
+
background: P.value,
|
|
449
|
+
"onUpdate:background": r[3] ||= (e) => P.value = e,
|
|
450
|
+
radius: F.value,
|
|
451
|
+
"onUpdate:radius": r[4] ||= (e) => F.value = e,
|
|
452
|
+
disabled: M.value === "null"
|
|
453
|
+
}, null, 8, [
|
|
454
|
+
"angle",
|
|
455
|
+
"background",
|
|
456
|
+
"radius",
|
|
457
|
+
"disabled"
|
|
458
|
+
])]),
|
|
459
|
+
s(" 图标颜色设置:始终显示;非 AntD 图标时禁用 "),
|
|
460
|
+
l("div", Me, [l("div", Ne, [l("label", Pe, [r[10] ||= u(" 图标色 "), d(a, null, {
|
|
461
|
+
title: T(() => r[9] ||= [u(" 仅 Ant Design 图标有效 ")]),
|
|
462
|
+
default: T(() => [d(S(n), {
|
|
463
|
+
name: "i-carbon-information",
|
|
464
|
+
size: "12px",
|
|
465
|
+
class: "ml-1 cursor-help"
|
|
466
|
+
})]),
|
|
467
|
+
_: 1
|
|
468
|
+
})]), l("div", Fe, [d(f, {
|
|
469
|
+
value: I.value,
|
|
470
|
+
"onUpdate:value": r[6] ||= (e) => I.value = e,
|
|
471
|
+
"allow-clear": "",
|
|
472
|
+
placeholder: M.value === "null" ? "默认" : "#ffffff",
|
|
473
|
+
size: "small",
|
|
474
|
+
class: "flex-1 min-w-0",
|
|
475
|
+
disabled: !$.value
|
|
476
|
+
}, {
|
|
477
|
+
prefix: T(() => [l("div", Ie, [l("button", {
|
|
478
|
+
type: "button",
|
|
479
|
+
disabled: !$.value,
|
|
480
|
+
class: p(["w-4 h-4 rounded border border-gray-300 dark:border-gray-700", $.value ? "" : "opacity-50 cursor-not-allowed"]),
|
|
481
|
+
style: m({ background: I.value || "#ffffff" }),
|
|
482
|
+
onClick: Je
|
|
483
|
+
}, null, 14, Le), l("input", {
|
|
484
|
+
ref_key: "iconColorPickerRef",
|
|
485
|
+
ref: L,
|
|
486
|
+
type: "color",
|
|
487
|
+
value: I.value || "#ffffff",
|
|
488
|
+
disabled: !$.value,
|
|
489
|
+
class: "absolute left-0 top-0 opacity-0 pointer-events-none",
|
|
490
|
+
style: {
|
|
491
|
+
width: "16px",
|
|
492
|
+
height: "16px"
|
|
493
|
+
},
|
|
494
|
+
onInput: r[5] ||= (e) => I.value = e.target.value
|
|
495
|
+
}, null, 40, Re)])]),
|
|
496
|
+
_: 1
|
|
497
|
+
}, 8, [
|
|
498
|
+
"value",
|
|
499
|
+
"placeholder",
|
|
500
|
+
"disabled"
|
|
501
|
+
])])])]),
|
|
499
502
|
s(" 预览:固定底部 "),
|
|
500
|
-
l("div",
|
|
503
|
+
l("div", ze, [l("div", Be, [j.value ? (h(), c("div", Ve, [M.value === "null" ? (h(), o(S(n), {
|
|
501
504
|
key: 0,
|
|
502
505
|
name: j.value,
|
|
503
506
|
size: 80,
|
|
@@ -521,19 +524,19 @@ var U = /* @__PURE__ */ f({
|
|
|
521
524
|
]))])) : s("v-if", !0)])])
|
|
522
525
|
]),
|
|
523
526
|
s(" 侧栏底部操作按钮 "),
|
|
524
|
-
l("div",
|
|
525
|
-
default: T(() => r[
|
|
527
|
+
l("div", He, [d(w, { onClick: B }, {
|
|
528
|
+
default: T(() => r[11] ||= [u(" 取消 ")]),
|
|
526
529
|
_: 1,
|
|
527
|
-
__: [
|
|
530
|
+
__: [11]
|
|
528
531
|
}), d(w, {
|
|
529
532
|
type: "primary",
|
|
530
533
|
onClick: V
|
|
531
534
|
}, {
|
|
532
|
-
default: T(() => r[
|
|
535
|
+
default: T(() => r[12] ||= [u(" 确定 ")]),
|
|
533
536
|
_: 1,
|
|
534
|
-
__: [
|
|
537
|
+
__: [12]
|
|
535
538
|
})])
|
|
536
|
-
])) : s("v-if", !0)
|
|
539
|
+
])])) : s("v-if", !0)
|
|
537
540
|
])]),
|
|
538
541
|
_: 1
|
|
539
542
|
}, 8, ["open"])]),
|
|
@@ -541,7 +544,7 @@ var U = /* @__PURE__ */ f({
|
|
|
541
544
|
})], 64);
|
|
542
545
|
};
|
|
543
546
|
}
|
|
544
|
-
}), W = /* @__PURE__ */ e(U, [["__scopeId", "data-v-
|
|
547
|
+
}), W = /* @__PURE__ */ e(U, [["__scopeId", "data-v-f63b9031"]]);
|
|
545
548
|
const G = ["onClick"], K = ["onClick"], q = { class: "flex flex-col items-center justify-center" };
|
|
546
549
|
var J = /* @__PURE__ */ f({
|
|
547
550
|
name: "ResourceIconSelect",
|
package/dist/IconSelect.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-v-
|
|
1
|
+
[data-v-f63b9031] .ant-radio-group{align-items:center;display:inline-flex}[data-v-f63b9031] .ant-radio-button-wrapper{flex:none;justify-content:center;align-items:center;padding:4px 10px;display:inline-flex;height:auto!important;line-height:1!important}[data-v-f63b9031] .ant-radio-button-wrapper>span{justify-content:center;align-items:center;display:inline-flex}
|
|
@@ -3,7 +3,7 @@ import { am as t, t as n, x as r, y as i } from "./index.js";
|
|
|
3
3
|
import { c as a, d as ee } from "./enum-CYW8g64p.js";
|
|
4
4
|
import { b as o, c as s, d as c, e as l } from "./enum-BMY6bmPA.js";
|
|
5
5
|
import { b as u } from "./DynamicRoutesForm-CE2RPs7y.js";
|
|
6
|
-
import { b as d } from "./IconSelect-
|
|
6
|
+
import { b as d } from "./IconSelect-BMlRIxBx.js";
|
|
7
7
|
import { b as f, c as p, d as m } from "./MetaForm-DErrpELP.js";
|
|
8
8
|
import { computed as h, createBlock as g, createCommentVNode as _, createElementBlock as te, createTextVNode as v, createVNode as y, defineComponent as b, isRef as x, openBlock as S, reactive as C, ref as w, resolveComponent as T, toDisplayString as E, unref as D, withCtx as O } from "vue";
|
|
9
9
|
import { DatabaseOutlined as k } from "@ant-design/icons-vue";
|
|
@@ -5,7 +5,7 @@ import "./enum-CYW8g64p.js";
|
|
|
5
5
|
import "./enum-BMY6bmPA.js";
|
|
6
6
|
import "./DynamicRoutesForm-CE2RPs7y.js";
|
|
7
7
|
import "./HoverCard-B79q5sly.js";
|
|
8
|
-
import "./IconSelect-
|
|
8
|
+
import "./IconSelect-BMlRIxBx.js";
|
|
9
9
|
import "./MetaForm-DErrpELP.js";
|
|
10
|
-
import { b as e } from "./ResourceEdit-
|
|
10
|
+
import { b as e } from "./ResourceEdit-BSaHxlbT.js";
|
|
11
11
|
export { e as default };
|
|
@@ -11,24 +11,15 @@ export interface SelectedResourceInfo {
|
|
|
11
11
|
name: string;
|
|
12
12
|
}
|
|
13
13
|
export default function useAppAndResource(mode?: ResourceMode): {
|
|
14
|
-
appList:
|
|
14
|
+
appList: Ref<API.PubResource[] | {
|
|
15
15
|
label: string | undefined;
|
|
16
16
|
value: string | undefined;
|
|
17
|
-
}[], API.PubResource[] | {
|
|
18
|
-
label: string | undefined;
|
|
19
|
-
value: string | undefined;
|
|
20
|
-
}[]>;
|
|
21
|
-
resourceModelRef: globalThis.Ref<any, any>;
|
|
22
|
-
treeData: globalThis.Ref<TreeNode[], TreeNode[]>;
|
|
23
|
-
resourceMap: globalThis.Ref<StringMap<string>, StringMap<string>>;
|
|
24
|
-
selectedResources: globalThis.Ref<{
|
|
25
|
-
id: string;
|
|
26
|
-
name: string;
|
|
27
|
-
}[], SelectedResourceInfo[] | {
|
|
28
|
-
id: string;
|
|
29
|
-
name: string;
|
|
30
17
|
}[]>;
|
|
31
|
-
|
|
18
|
+
resourceModelRef: any;
|
|
19
|
+
treeData: Ref<TreeNode[]>;
|
|
20
|
+
resourceMap: Ref<StringMap<string>>;
|
|
21
|
+
selectedResources: any;
|
|
22
|
+
isDataPermissionMode: any;
|
|
32
23
|
getAppList: () => void;
|
|
33
24
|
updateTreeDataAndResourceMap: (appId: string) => Promise<void>;
|
|
34
25
|
setSelectedResources: (resources: SelectedResourceInfo[]) => void;
|
|
@@ -1,77 +1,13 @@
|
|
|
1
1
|
export type Role = API.PubRole;
|
|
2
2
|
export declare function useRole(): {
|
|
3
|
-
loading:
|
|
3
|
+
loading: import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ShallowRef<boolean>;
|
|
4
4
|
setLoading: (value?: boolean | undefined) => boolean;
|
|
5
|
-
roles:
|
|
6
|
-
id?: string | undefined;
|
|
7
|
-
name?: string | undefined;
|
|
8
|
-
code?: string | undefined;
|
|
9
|
-
description?: string | undefined;
|
|
10
|
-
enable?: boolean | undefined;
|
|
11
|
-
createdBy?: string | undefined;
|
|
12
|
-
createTime?: string | undefined;
|
|
13
|
-
updatedBy?: string | undefined;
|
|
14
|
-
updateTime?: string | undefined;
|
|
15
|
-
deleted?: boolean | undefined;
|
|
16
|
-
viewScope?: string | undefined;
|
|
17
|
-
createOrgId?: string | undefined;
|
|
18
|
-
createOrgName?: string | undefined;
|
|
19
|
-
appId?: string | undefined;
|
|
20
|
-
tenantId?: string | undefined;
|
|
21
|
-
}[], API.PubRole[] | {
|
|
22
|
-
id?: string | undefined;
|
|
23
|
-
name?: string | undefined;
|
|
24
|
-
code?: string | undefined;
|
|
25
|
-
description?: string | undefined;
|
|
26
|
-
enable?: boolean | undefined;
|
|
27
|
-
createdBy?: string | undefined;
|
|
28
|
-
createTime?: string | undefined;
|
|
29
|
-
updatedBy?: string | undefined;
|
|
30
|
-
updateTime?: string | undefined;
|
|
31
|
-
deleted?: boolean | undefined;
|
|
32
|
-
viewScope?: string | undefined;
|
|
33
|
-
createOrgId?: string | undefined;
|
|
34
|
-
createOrgName?: string | undefined;
|
|
35
|
-
appId?: string | undefined;
|
|
36
|
-
tenantId?: string | undefined;
|
|
37
|
-
}[]>;
|
|
5
|
+
roles: any;
|
|
38
6
|
getData: () => Promise<void>;
|
|
39
7
|
};
|
|
40
8
|
export declare function useRoleGroup(): {
|
|
41
|
-
loading:
|
|
9
|
+
loading: import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ShallowRef<boolean>;
|
|
42
10
|
setLoading: (value?: boolean | undefined) => boolean;
|
|
43
|
-
roles:
|
|
44
|
-
id?: string | undefined;
|
|
45
|
-
name?: string | undefined;
|
|
46
|
-
code?: string | undefined;
|
|
47
|
-
description?: string | undefined;
|
|
48
|
-
enable?: boolean | undefined;
|
|
49
|
-
createdBy?: string | undefined;
|
|
50
|
-
createTime?: string | undefined;
|
|
51
|
-
updatedBy?: string | undefined;
|
|
52
|
-
updateTime?: string | undefined;
|
|
53
|
-
deleted?: boolean | undefined;
|
|
54
|
-
viewScope?: string | undefined;
|
|
55
|
-
createOrgId?: string | undefined;
|
|
56
|
-
createOrgName?: string | undefined;
|
|
57
|
-
appId?: string | undefined;
|
|
58
|
-
tenantId?: string | undefined;
|
|
59
|
-
}[], API.PubRole[] | {
|
|
60
|
-
id?: string | undefined;
|
|
61
|
-
name?: string | undefined;
|
|
62
|
-
code?: string | undefined;
|
|
63
|
-
description?: string | undefined;
|
|
64
|
-
enable?: boolean | undefined;
|
|
65
|
-
createdBy?: string | undefined;
|
|
66
|
-
createTime?: string | undefined;
|
|
67
|
-
updatedBy?: string | undefined;
|
|
68
|
-
updateTime?: string | undefined;
|
|
69
|
-
deleted?: boolean | undefined;
|
|
70
|
-
viewScope?: string | undefined;
|
|
71
|
-
createOrgId?: string | undefined;
|
|
72
|
-
createOrgName?: string | undefined;
|
|
73
|
-
appId?: string | undefined;
|
|
74
|
-
tenantId?: string | undefined;
|
|
75
|
-
}[]>;
|
|
11
|
+
roles: any;
|
|
76
12
|
getData: (id: string) => Promise<void>;
|
|
77
13
|
};
|