@pubinfo/module-rbac 2.0.0-rc.4 → 2.0.0-rc.5
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/{ComponentSelect-B1ZyenXP.js → ComponentSelect-Bhl9ciUm.js} +12 -12
- package/dist/ComponentSelect-Bhwuc86o.js +2 -0
- package/dist/ComponentSelect.css +1 -1
- package/dist/DynamicRoutesForm-CE2RPs7y.js +169 -0
- package/dist/DynamicRoutesForm-D35jFnxF.js +4 -0
- package/dist/IconSelect-Ct5FkeHI.js +4 -0
- package/dist/IconSelect-HAhfS6hd.js +661 -0
- package/dist/IconSelect.css +1 -0
- package/dist/{ImportExport-Clbc8xaw.js → ImportExport-ByRTssxP.js} +2 -2
- package/dist/ImportExport-D8uzaOMz.js +4 -0
- package/dist/{MetaForm-BWy4Lpr8.js → MetaForm-BSGuZXgj.js} +2 -2
- package/dist/{MetaForm-DpH9an5A.js → MetaForm-DErrpELP.js} +1 -1
- package/dist/OrgAndPosition-CF7ZJtNB.js +2 -0
- package/dist/{ResourceEdit-0_cYB0iu.js → ResourceEdit-DF-2_zoi.js} +115 -105
- package/dist/ResourceEdit-oAPLPUf0.js +11 -0
- package/dist/{ResourceRelation-DMWa09ae.js → ResourceRelation-BRseTUw2.js} +1 -1
- package/dist/RoleRelation-YaSQQxQ2.js +2 -0
- package/dist/{TenantEdit-D8-Pt7sf.js → TenantEdit-C28473_2.js} +1 -1
- package/dist/{UserAuthorization-DuioGghR.js → UserAuthorization-C4SLMNmh.js} +1 -1
- package/dist/UserEdit-CyCXz7g3.js +4 -0
- package/dist/{UserEdit-C6eNXSCu.js → UserEdit-EOTBOUZu.js} +1 -1
- package/dist/components/ResourceIcones/BoxColorPicker.vue.d.ts +23 -0
- package/dist/components/ResourceIcones/Select.vue.d.ts +48 -2
- package/dist/components/ResourceSelector/hooks/useAppAndResource.d.ts +15 -6
- package/dist/components/RoleSelector/useRole.d.ts +68 -4
- package/dist/context.d.ts +1 -2
- package/dist/{drawerRole-DNsK5a6O.js → drawerRole-CzTW_I2H.js} +1 -1
- package/dist/{drawerRole-BeUNs7cF.js → drawerRole-tan379DU.js} +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +1427 -1431
- package/dist/{resource-CrhX7VRK.js → resource-CyI9ZpmF.js} +9 -8
- package/dist/{role-PjmrOdFd.js → role-B2tKqUvP.js} +2 -2
- package/dist/{role_group-Dlx-6BZF.js → role_group-DqzFHwKx.js} +1 -1
- package/dist/stores/view.d.ts +126 -21
- package/dist/{tenant-BGtOP_wo.js → tenant-C8kVbfgt.js} +2 -2
- package/dist/{toolbar_setting-OemNp6pO.js → toolbar_setting-Dc_h2Mfe.js} +23 -34
- package/dist/toolbar_setting.css +1 -1
- package/dist/{user-JCiGXodF.js → user-Dub4HhCZ.js} +3 -3
- package/dist/utils/routeSystem.d.ts +126 -21
- 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/components/IconSelect.vue.d.ts +10 -0
- package/dist/views/resource/hooks/useMetaForm.d.ts +8 -1
- 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/toolbar_setting/animationData.d.ts +1 -3
- package/dist/views/user/index.vue.d.ts +40 -40
- package/package.json +7 -3
- package/src/components/DirectoryIcones/ComponentsIcones.vue +2 -2
- package/src/components/DirectoryIcones/FolderIcones.vue +2 -2
- package/src/components/DirectoryIcones/ModuleIcones.vue +2 -2
- package/src/components/DirectoryIcones/PackagesIcones.vue +2 -2
- package/src/components/DirectoryIcones/SrcIcones.vue +2 -2
- package/src/components/DirectoryIcones/ViewIcones.vue +2 -2
- package/src/components/ResourceIcones/BoxColorPicker.vue +172 -0
- package/src/components/ResourceIcones/Select.vue +227 -15
- package/src/context.ts +1 -17
- package/src/index.ts +3 -10
- package/src/views/resource/components/ComponentSelect.vue +10 -0
- package/src/views/resource/components/DynamicRoutesForm.vue +0 -8
- package/src/views/resource/components/IconSelect.vue +138 -0
- package/src/views/resource/components/ResourceEdit.vue +34 -28
- package/src/views/toolbar_setting/animationData.ts +0 -4
- package/src/views/toolbar_setting/index.vue +0 -13
- package/dist/ComponentSelect-DlVJI5an.js +0 -2
- package/dist/DynamicRoutesForm-Cu3WhRpA.js +0 -4
- package/dist/DynamicRoutesForm-qjbrykW4.js +0 -376
- package/dist/ImportExport-CtEZTU87.js +0 -4
- package/dist/OrgAndPosition-3lCm4Fyb.js +0 -2
- package/dist/ResourceEdit-CYPzEbqn.js +0 -10
- package/dist/RoleRelation-DySyilcs.js +0 -2
- package/dist/UserEdit-6HYbgtOh.js +0 -4
- /package/dist/{OrgAndPosition-DYxNkasL.js → OrgAndPosition-vnBrq-fn.js} +0 -0
- /package/dist/{ResourceRelation-CZ8hGgOm.js → ResourceRelation-B_4woLmP.js} +0 -0
- /package/dist/{ResourceRelation-DkKdZ3TD.js → ResourceRelation-CKolCnHC.js} +0 -0
- /package/dist/{RoleRelation-B1D1NM_L.js → RoleRelation-DXZxscPY.js} +0 -0
- /package/dist/{TenantEdit-DNJzo8SS.js → TenantEdit-B5_v0C8I.js} +0 -0
- /package/dist/{UserAuthorization-DPHUk69M.js → UserAuthorization-DTgmWH5Q.js} +0 -0
- /package/dist/{dayjs.min-DcxwBe2I.js → dayjs.min-CdDcH50N.js} +0 -0
- /package/dist/{drawerRole-DS7fbx1h.js → drawerRole-CwilBmOE.js} +0 -0
- /package/dist/{drawerRole-BdoMYLYW.js → drawerRole-E1jHM3v-.js} +0 -0
- /package/dist/{enum-D0U38jb6.js → enum-BMY6bmPA.js} +0 -0
- /package/dist/{safe_setting-DpWUCv2p.js → safe_setting-uj9p_wW0.js} +0 -0
- /package/dist/{tabbar_setting-9UKDc1Ev.js → tabbar_setting-HFHrLVgt.js} +0 -0
- /package/dist/{theme_setting-BBLaZ4NS.js → theme_setting-QgpSGXxq.js} +0 -0
- /package/dist/{watermark_setting-C1VFRfbW.js → watermark_setting-BcWy6p2_.js} +0 -0
|
@@ -7,7 +7,6 @@ import SetItem from '../components/setItem.vue';
|
|
|
7
7
|
import {
|
|
8
8
|
darkEnableColorSchemeData,
|
|
9
9
|
darkEnableFullscreenData,
|
|
10
|
-
darkEnableI18nData,
|
|
11
10
|
darkEnableNotificationData,
|
|
12
11
|
darkEnablePageReloadData,
|
|
13
12
|
darkEnableUserPreferencesData,
|
|
@@ -16,7 +15,6 @@ import {
|
|
|
16
15
|
darkNavSearchEnableHotkeysData,
|
|
17
16
|
lightEnableColorSchemeData,
|
|
18
17
|
lightEnableFullscreenData,
|
|
19
|
-
lightEnableI18nData,
|
|
20
18
|
lightEnableNotificationData,
|
|
21
19
|
|
|
22
20
|
lightEnablePageReloadData,
|
|
@@ -43,17 +41,6 @@ const toolbarList = reactive([
|
|
|
43
41
|
lightData: lightEnableNotificationData,
|
|
44
42
|
darkData: darkEnableNotificationData,
|
|
45
43
|
},
|
|
46
|
-
{
|
|
47
|
-
name: '国际化',
|
|
48
|
-
type: 'switch',
|
|
49
|
-
descripe: '',
|
|
50
|
-
parentName: 'toolbar',
|
|
51
|
-
childName: 'enableI18n',
|
|
52
|
-
open: settingsStore.globalSettings.toolbar.enableI18n,
|
|
53
|
-
activeStyle: '',
|
|
54
|
-
lightData: lightEnableI18nData,
|
|
55
|
-
darkData: darkEnableI18nData,
|
|
56
|
-
},
|
|
57
44
|
{
|
|
58
45
|
name: '全屏',
|
|
59
46
|
type: 'switch',
|
|
@@ -1,376 +0,0 @@
|
|
|
1
|
-
import { b as e } from "./ComponentSelect-B1ZyenXP.js";
|
|
2
|
-
import { d as t } from "./enum-D0U38jb6.js";
|
|
3
|
-
import { PubinfoIcon as n, getAllIconModules as r } from "pubinfo";
|
|
4
|
-
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, mergeModels as f, normalizeClass as p, openBlock as m, ref as h, renderList as g, resolveComponent as _, toDisplayString as v, unref as y, useModel as b, watch as x, withCtx as S } from "vue";
|
|
5
|
-
import * as C from "@ant-design/icons-vue";
|
|
6
|
-
import { Empty as w } from "ant-design-vue";
|
|
7
|
-
import { Col as T, Empty as ee, FormItem as E, FormItemRest as D, Input as O, Modal as k, Pagination as A, Tooltip as j } from "ant-design-vue/es";
|
|
8
|
-
const M = { class: "flex gap-4 min-h-[600px]" }, N = { class: "w-58 flex flex-col border-r border-[#e5e7eb] dark:border-[#30363d] pr-3" }, P = { class: "mb-3" }, te = { class: "flex-1 overflow-auto space-y-1 pr-1" }, ne = ["onClick"], F = { class: "truncate max-w-[120px]" }, I = { class: "ml-2 inline-block min-w-6 text-center text-11px rounded bg-[#eef1f5] dark:bg-[#2d3339] px-1 text-[#5d6671] dark:text-[#9aa3ad]" }, L = { class: "flex-1 flex flex-col min-w-0" }, R = { class: "grid grid-cols-6 gap-3 auto-rows-[96px] overflow-auto flex-1 p-1" }, z = { class: "text-12px leading-tight space-y-1" }, B = { class: "font-medium" }, V = {
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "opacity-70"
|
|
11
|
-
}, H = ["onClick"], U = { class: "mt-4 flex justify-center select-none" }, W = {
|
|
12
|
-
key: 1,
|
|
13
|
-
class: "flex-1 flex items-center justify-center"
|
|
14
|
-
};
|
|
15
|
-
var G = /* @__PURE__ */ d({
|
|
16
|
-
name: "ResourceIconesSelect",
|
|
17
|
-
__name: "Select",
|
|
18
|
-
props: {
|
|
19
|
-
modelValue: {},
|
|
20
|
-
modelModifiers: {}
|
|
21
|
-
},
|
|
22
|
-
emits: ["update:modelValue"],
|
|
23
|
-
setup(e) {
|
|
24
|
-
let t = b(e, "modelValue"), d = h(!1);
|
|
25
|
-
function f() {
|
|
26
|
-
d.value = !0;
|
|
27
|
-
}
|
|
28
|
-
function _() {
|
|
29
|
-
d.value = !1;
|
|
30
|
-
}
|
|
31
|
-
function T(e) {
|
|
32
|
-
let t = e.split(/[\\/]/).pop() || e;
|
|
33
|
-
return t.replace(/\.(svg|png|jpe?g)$/i, "");
|
|
34
|
-
}
|
|
35
|
-
let E = a(() => {
|
|
36
|
-
let e = /* @__PURE__ */ new Map(), t = r();
|
|
37
|
-
for (let [n, r] of t.entries()) {
|
|
38
|
-
let t = Object.keys(r).map(T).sort();
|
|
39
|
-
e.set(n, t);
|
|
40
|
-
}
|
|
41
|
-
return e;
|
|
42
|
-
}), G = a(() => Object.keys(C).filter((e) => /(?:Outlined|Filled|TwoTone)$/.test(e)).map((e) => `antd:${e}`).sort()), K = a(() => {
|
|
43
|
-
let e = Array.from(E.value.keys()), t = e.includes("local"), n = e.filter((e) => e !== "local").sort();
|
|
44
|
-
return [
|
|
45
|
-
{
|
|
46
|
-
label: "全部",
|
|
47
|
-
value: "all"
|
|
48
|
-
},
|
|
49
|
-
...t ? [{
|
|
50
|
-
label: "本地",
|
|
51
|
-
value: "local"
|
|
52
|
-
}] : [],
|
|
53
|
-
...n.map((e) => ({
|
|
54
|
-
label: e,
|
|
55
|
-
value: e
|
|
56
|
-
})),
|
|
57
|
-
{
|
|
58
|
-
label: "Ant Design",
|
|
59
|
-
value: "antd"
|
|
60
|
-
}
|
|
61
|
-
];
|
|
62
|
-
}), q = h("all"), J = h(""), Y = a(() => {
|
|
63
|
-
let e = [];
|
|
64
|
-
for (let [t, n] of E.value.entries()) n.forEach((n) => {
|
|
65
|
-
t === "local" ? e.push({
|
|
66
|
-
name: n,
|
|
67
|
-
module: t
|
|
68
|
-
}) : e.push({
|
|
69
|
-
name: `${t}-[${n}]`,
|
|
70
|
-
module: t
|
|
71
|
-
});
|
|
72
|
-
});
|
|
73
|
-
return G.value.forEach((t) => e.push({
|
|
74
|
-
name: t,
|
|
75
|
-
module: "antd"
|
|
76
|
-
})), e;
|
|
77
|
-
}), X = a(() => q.value === "all" ? Y.value : q.value === "antd" ? Y.value.filter((e) => e.module === "antd") : Y.value.filter((e) => e.module === q.value)), Z = a(() => {
|
|
78
|
-
let e = J.value.trim().toLowerCase();
|
|
79
|
-
return e ? X.value.filter((t) => t.name.toLowerCase().includes(e)) : X.value;
|
|
80
|
-
});
|
|
81
|
-
function re(e) {
|
|
82
|
-
return e === "all" ? Y.value.length : e === "antd" ? Y.value.filter((e) => e.module === "antd").length : Y.value.filter((t) => t.module === e).length;
|
|
83
|
-
}
|
|
84
|
-
let Q = h(1), $ = a(() => Math.max(1, Math.ceil(Z.value.length / 30))), ie = a(() => {
|
|
85
|
-
let e = (Q.value - 1) * 30;
|
|
86
|
-
return Z.value.slice(e, e + 30);
|
|
87
|
-
});
|
|
88
|
-
x([J, q], () => {
|
|
89
|
-
Q.value = 1;
|
|
90
|
-
}), x(Z, () => {
|
|
91
|
-
Q.value > $.value && (Q.value = $.value);
|
|
92
|
-
});
|
|
93
|
-
function ae(e) {
|
|
94
|
-
Q.value = e;
|
|
95
|
-
}
|
|
96
|
-
function oe(e) {
|
|
97
|
-
t.value = e.name, _();
|
|
98
|
-
}
|
|
99
|
-
let se = w.PRESENTED_IMAGE_SIMPLE;
|
|
100
|
-
return (e, r) => {
|
|
101
|
-
let a = j, h = O, b = A, x = ee, C = k, w = D;
|
|
102
|
-
return m(), c(i, null, [u(h, {
|
|
103
|
-
value: t.value,
|
|
104
|
-
"onUpdate:value": r[0] ||= (e) => t.value = e,
|
|
105
|
-
onClick: f
|
|
106
|
-
}, {
|
|
107
|
-
addonAfter: S(() => [u(a, null, {
|
|
108
|
-
title: S(() => [u(y(n), {
|
|
109
|
-
name: t.value || "",
|
|
110
|
-
size: "40px",
|
|
111
|
-
class: "cursor-default"
|
|
112
|
-
}, null, 8, ["name"])]),
|
|
113
|
-
default: S(() => [u(y(n), {
|
|
114
|
-
name: t.value || "",
|
|
115
|
-
size: "20px",
|
|
116
|
-
class: "cursor-default"
|
|
117
|
-
}, null, 8, ["name"])]),
|
|
118
|
-
_: 1
|
|
119
|
-
})]),
|
|
120
|
-
_: 1
|
|
121
|
-
}, 8, ["value"]), u(w, null, {
|
|
122
|
-
default: S(() => [u(C, {
|
|
123
|
-
open: d.value,
|
|
124
|
-
"onUpdate:open": r[2] ||= (e) => d.value = e,
|
|
125
|
-
title: "选择图标",
|
|
126
|
-
width: "1200px",
|
|
127
|
-
footer: null,
|
|
128
|
-
"destroy-on-close": "",
|
|
129
|
-
onCancel: _
|
|
130
|
-
}, {
|
|
131
|
-
default: S(() => [l("div", M, [
|
|
132
|
-
s(" 左侧模块列表 "),
|
|
133
|
-
l("div", N, [l("div", P, [u(h, {
|
|
134
|
-
value: J.value,
|
|
135
|
-
"onUpdate:value": r[1] ||= (e) => J.value = e,
|
|
136
|
-
"allow-clear": "",
|
|
137
|
-
bordered: !0,
|
|
138
|
-
placeholder: "搜索图标",
|
|
139
|
-
class: "h-9 text-13px"
|
|
140
|
-
}, {
|
|
141
|
-
prefix: S(() => [u(y(n), {
|
|
142
|
-
name: "i-carbon-search",
|
|
143
|
-
size: "16",
|
|
144
|
-
class: "text-[#7a869a]"
|
|
145
|
-
})]),
|
|
146
|
-
_: 1
|
|
147
|
-
}, 8, ["value"])]), l("div", te, [(m(!0), c(i, null, g(K.value, (e) => (m(), c("div", {
|
|
148
|
-
key: e.value,
|
|
149
|
-
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", q.value === e.value ? "bg-[#eef5ff] dark:bg-[#1e2a33] border-[#1677ff] text-[#1677ff] font-medium" : "text-[#4b5563]"]),
|
|
150
|
-
onClick: (t) => q.value = e.value
|
|
151
|
-
}, [l("span", F, v(e.label), 1), l("span", I, v(re(e.value)), 1)], 10, ne))), 128))])]),
|
|
152
|
-
s(" 主体 "),
|
|
153
|
-
l("div", L, [Z.value.length ? (m(), c(i, { key: 0 }, [
|
|
154
|
-
l("div", R, [(m(!0), c(i, null, g(ie.value, (e) => (m(), o(a, {
|
|
155
|
-
key: `${e.module || ""}:${e.name}`,
|
|
156
|
-
"mouse-enter-delay": .35
|
|
157
|
-
}, {
|
|
158
|
-
title: S(() => [l("div", z, [l("div", B, v(e.name), 1), e.module ? (m(), c("div", V, " 模块: " + v(e.module), 1)) : s("v-if", !0)])]),
|
|
159
|
-
default: S(() => [l("div", {
|
|
160
|
-
class: p(["group relative flex flex-col items-center justify-center cursor-pointer rounded-md", t.value === e.name ? "border-[#1677ff] ring-2 ring-[#1677ff80]" : ""]),
|
|
161
|
-
onClick: (t) => oe(e)
|
|
162
|
-
}, [u(y(n), {
|
|
163
|
-
name: e.name,
|
|
164
|
-
size: "30px"
|
|
165
|
-
}, null, 8, ["name"])], 10, H)]),
|
|
166
|
-
_: 2
|
|
167
|
-
}, 1024))), 128))]),
|
|
168
|
-
s(" 分页 "),
|
|
169
|
-
l("div", U, [u(b, {
|
|
170
|
-
current: Q.value,
|
|
171
|
-
"page-size": 30,
|
|
172
|
-
total: Z.value.length,
|
|
173
|
-
"show-size-changer": !1,
|
|
174
|
-
"show-quick-jumper": "",
|
|
175
|
-
onChange: ae
|
|
176
|
-
}, null, 8, ["current", "total"])])
|
|
177
|
-
], 64)) : (m(), c("div", W, [u(x, {
|
|
178
|
-
image: y(se),
|
|
179
|
-
description: "没有匹配的图标"
|
|
180
|
-
}, null, 8, ["image"])]))])
|
|
181
|
-
])]),
|
|
182
|
-
_: 1
|
|
183
|
-
}, 8, ["open"])]),
|
|
184
|
-
_: 1
|
|
185
|
-
})], 64);
|
|
186
|
-
};
|
|
187
|
-
}
|
|
188
|
-
}), K = G, q = /* @__PURE__ */ d({
|
|
189
|
-
name: "DynamicRoutesForm",
|
|
190
|
-
__name: "DynamicRoutesForm",
|
|
191
|
-
props: /* @__PURE__ */ f({ parent: {} }, {
|
|
192
|
-
modelValue: { default: { meta: {
|
|
193
|
-
url: "",
|
|
194
|
-
component: ""
|
|
195
|
-
} } },
|
|
196
|
-
modelModifiers: {}
|
|
197
|
-
}),
|
|
198
|
-
emits: ["update:modelValue"],
|
|
199
|
-
setup(n) {
|
|
200
|
-
let r = b(n, "modelValue"), l = a(() => {
|
|
201
|
-
let e = r.value.type;
|
|
202
|
-
return {
|
|
203
|
-
path: [
|
|
204
|
-
t.INDEX,
|
|
205
|
-
t.MENU,
|
|
206
|
-
t.MICRO_APP,
|
|
207
|
-
t.NON_MENU,
|
|
208
|
-
t.IFRAME,
|
|
209
|
-
t.LINK
|
|
210
|
-
].includes(e),
|
|
211
|
-
component: [t.MENU, t.NON_MENU].includes(e),
|
|
212
|
-
iframe: [t.IFRAME].includes(e),
|
|
213
|
-
link: [t.LINK].includes(e),
|
|
214
|
-
icon: [
|
|
215
|
-
t.DYNAMIC_APP,
|
|
216
|
-
t.MICRO_APP,
|
|
217
|
-
t.INDEX,
|
|
218
|
-
t.MENU,
|
|
219
|
-
t.IFRAME,
|
|
220
|
-
t.LINK
|
|
221
|
-
].includes(e),
|
|
222
|
-
routeName: [
|
|
223
|
-
t.MENU,
|
|
224
|
-
t.NON_MENU,
|
|
225
|
-
t.IFRAME,
|
|
226
|
-
t.LINK
|
|
227
|
-
].includes(e),
|
|
228
|
-
activeMenu: [
|
|
229
|
-
t.MENU,
|
|
230
|
-
t.NON_MENU,
|
|
231
|
-
t.IFRAME,
|
|
232
|
-
t.LINK
|
|
233
|
-
].includes(e)
|
|
234
|
-
};
|
|
235
|
-
}), d = a(() => !0);
|
|
236
|
-
return (t, n) => {
|
|
237
|
-
let a = O, f = E, p = T;
|
|
238
|
-
return m(), c(i, null, [s(" eslint-disable-next-line "), d.value ? (m(), c(i, { key: 0 }, [
|
|
239
|
-
l.value.path ? (m(), o(p, {
|
|
240
|
-
key: 0,
|
|
241
|
-
span: 12
|
|
242
|
-
}, {
|
|
243
|
-
default: S(() => [u(f, {
|
|
244
|
-
label: "资源路径",
|
|
245
|
-
name: ["meta", "url"],
|
|
246
|
-
rules: [{
|
|
247
|
-
required: !0,
|
|
248
|
-
message: "请输入资源路径"
|
|
249
|
-
}]
|
|
250
|
-
}, {
|
|
251
|
-
default: S(() => [u(a, {
|
|
252
|
-
value: r.value.meta.url,
|
|
253
|
-
"onUpdate:value": n[0] ||= (e) => r.value.meta.url = e,
|
|
254
|
-
placeholder: "请输入资源路径",
|
|
255
|
-
maxlength: 256
|
|
256
|
-
}, null, 8, ["value"])]),
|
|
257
|
-
_: 1
|
|
258
|
-
})]),
|
|
259
|
-
_: 1
|
|
260
|
-
})) : s("v-if", !0),
|
|
261
|
-
l.value.component ? (m(), o(p, {
|
|
262
|
-
key: 1,
|
|
263
|
-
span: 24
|
|
264
|
-
}, {
|
|
265
|
-
default: S(() => [u(f, {
|
|
266
|
-
label: "组件路径",
|
|
267
|
-
name: ["meta", "component"],
|
|
268
|
-
rules: [{
|
|
269
|
-
required: !0,
|
|
270
|
-
message: "请输入组件路径"
|
|
271
|
-
}]
|
|
272
|
-
}, {
|
|
273
|
-
default: S(() => [u(e, {
|
|
274
|
-
modelValue: r.value.meta.component,
|
|
275
|
-
"onUpdate:modelValue": n[1] ||= (e) => r.value.meta.component = e,
|
|
276
|
-
scope: r.value.meta.scope,
|
|
277
|
-
"onUpdate:scope": n[2] ||= (e) => r.value.meta.scope = e
|
|
278
|
-
}, null, 8, ["modelValue", "scope"])]),
|
|
279
|
-
_: 1
|
|
280
|
-
})]),
|
|
281
|
-
_: 1
|
|
282
|
-
})) : s("v-if", !0),
|
|
283
|
-
l.value.link ? (m(), o(p, {
|
|
284
|
-
key: 2,
|
|
285
|
-
span: 24
|
|
286
|
-
}, {
|
|
287
|
-
default: S(() => [u(f, {
|
|
288
|
-
label: "外链地址",
|
|
289
|
-
name: ["meta", "link"]
|
|
290
|
-
}, {
|
|
291
|
-
default: S(() => [u(a, {
|
|
292
|
-
value: r.value.meta.link,
|
|
293
|
-
"onUpdate:value": n[3] ||= (e) => r.value.meta.link = e,
|
|
294
|
-
placeholder: "请输入外链地址",
|
|
295
|
-
maxlength: 256
|
|
296
|
-
}, null, 8, ["value"])]),
|
|
297
|
-
_: 1
|
|
298
|
-
})]),
|
|
299
|
-
_: 1
|
|
300
|
-
})) : s("v-if", !0),
|
|
301
|
-
l.value.iframe ? (m(), o(p, {
|
|
302
|
-
key: 3,
|
|
303
|
-
span: 24
|
|
304
|
-
}, {
|
|
305
|
-
default: S(() => [u(f, {
|
|
306
|
-
label: "内嵌地址",
|
|
307
|
-
name: ["meta", "iframe"]
|
|
308
|
-
}, {
|
|
309
|
-
default: S(() => [u(a, {
|
|
310
|
-
value: r.value.meta.iframe,
|
|
311
|
-
"onUpdate:value": n[4] ||= (e) => r.value.meta.iframe = e,
|
|
312
|
-
placeholder: "请输入内嵌地址",
|
|
313
|
-
maxlength: 256
|
|
314
|
-
}, null, 8, ["value"])]),
|
|
315
|
-
_: 1
|
|
316
|
-
})]),
|
|
317
|
-
_: 1
|
|
318
|
-
})) : s("v-if", !0),
|
|
319
|
-
l.value.icon ? (m(), o(p, {
|
|
320
|
-
key: 4,
|
|
321
|
-
span: 12
|
|
322
|
-
}, {
|
|
323
|
-
default: S(() => [u(f, {
|
|
324
|
-
label: "资源图标",
|
|
325
|
-
name: "icon"
|
|
326
|
-
}, {
|
|
327
|
-
default: S(() => [u(K, {
|
|
328
|
-
modelValue: r.value.icon,
|
|
329
|
-
"onUpdate:modelValue": n[5] ||= (e) => r.value.icon = e
|
|
330
|
-
}, null, 8, ["modelValue"])]),
|
|
331
|
-
_: 1
|
|
332
|
-
})]),
|
|
333
|
-
_: 1
|
|
334
|
-
})) : s("v-if", !0),
|
|
335
|
-
l.value.routeName ? (m(), o(p, {
|
|
336
|
-
key: 5,
|
|
337
|
-
span: 12
|
|
338
|
-
}, {
|
|
339
|
-
default: S(() => [u(f, {
|
|
340
|
-
label: "路由名称",
|
|
341
|
-
name: ["meta", "routeName"]
|
|
342
|
-
}, {
|
|
343
|
-
default: S(() => [u(a, {
|
|
344
|
-
value: r.value.meta.routeName,
|
|
345
|
-
"onUpdate:value": n[6] ||= (e) => r.value.meta.routeName = e,
|
|
346
|
-
placeholder: "请输入路由名称(name)",
|
|
347
|
-
maxlength: 256
|
|
348
|
-
}, null, 8, ["value"])]),
|
|
349
|
-
_: 1
|
|
350
|
-
})]),
|
|
351
|
-
_: 1
|
|
352
|
-
})) : s("v-if", !0),
|
|
353
|
-
l.value.activeMenu ? (m(), o(p, {
|
|
354
|
-
key: 6,
|
|
355
|
-
span: 12
|
|
356
|
-
}, {
|
|
357
|
-
default: S(() => [u(f, {
|
|
358
|
-
label: "激活路径",
|
|
359
|
-
name: ["meta", "activeMenu"],
|
|
360
|
-
tooltip: "跳转到当前路由时,需要激活的菜单路径。 当不在导航菜单中显示时,需要指定激活路径"
|
|
361
|
-
}, {
|
|
362
|
-
default: S(() => [u(a, {
|
|
363
|
-
value: r.value.meta.activeMenu,
|
|
364
|
-
"onUpdate:value": n[7] ||= (e) => r.value.meta.activeMenu = e,
|
|
365
|
-
placeholder: "请输入激活路径",
|
|
366
|
-
maxlength: 256
|
|
367
|
-
}, null, 8, ["value"])]),
|
|
368
|
-
_: 1
|
|
369
|
-
})]),
|
|
370
|
-
_: 1
|
|
371
|
-
})) : s("v-if", !0)
|
|
372
|
-
], 64)) : s("v-if", !0)], 2112);
|
|
373
|
-
};
|
|
374
|
-
}
|
|
375
|
-
}), J = q;
|
|
376
|
-
export { J as b };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import "./cloneDeep-BnvyNhik.js";
|
|
2
|
-
import "./ComponentSelect-B1ZyenXP.js";
|
|
3
|
-
import "./_plugin-vue_export-helper-DziIhCOI.js";
|
|
4
|
-
import "./enum-CYW8g64p.js";
|
|
5
|
-
import "./DynamicRoutesForm-qjbrykW4.js";
|
|
6
|
-
import "./enum-D0U38jb6.js";
|
|
7
|
-
import "./HoverCard-B79q5sly.js";
|
|
8
|
-
import "./MetaForm-DpH9an5A.js";
|
|
9
|
-
import { b as e } from "./ResourceEdit-0_cYB0iu.js";
|
|
10
|
-
export { e as default };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|