xto-fronted 0.4.90 → 0.4.91

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.
Files changed (120) hide show
  1. package/dist/assets/404-Bq0LY5Cd.js +1 -0
  2. package/dist/assets/404-Cw_4ZCL6.css +1 -0
  3. package/dist/assets/{index-BDgOY6Rp.js → index-7ZZxpSfk.js} +1 -1
  4. package/dist/assets/index-BJUe8VUp.js +1 -0
  5. package/dist/assets/{index-Bz0BgZQ1.js → index-BlOR_ICg.js} +1 -1
  6. package/dist/assets/index-BlRslYYI.css +1 -0
  7. package/dist/assets/index-BudArKxR.css +1 -0
  8. package/dist/assets/{index-CwRA10ac.js → index-BzbOWBCV.js} +1 -1
  9. package/dist/assets/index-CFhWBbxk.css +1 -0
  10. package/dist/assets/{index-CfpZmcpk.css → index-CH6aTfYg.css} +1 -1
  11. package/dist/assets/{index-BIoRANs0.js → index-CT5f37nN.js} +1 -1
  12. package/dist/assets/index-Ce-kjtEM.js +2 -0
  13. package/dist/assets/{index-t-2Y0KhA.css → index-Cpew6d-v.css} +1 -1
  14. package/dist/assets/index-DkkuYBgT.css +1 -0
  15. package/dist/assets/index-vfvEFrCH.css +1 -0
  16. package/dist/assets/{index-CwJSA85U.js → index-wVLLAoVp.js} +1 -1
  17. package/dist/assets/vendor-DZmPBJ9d.js +16 -0
  18. package/dist/assets/vue-vendor-DjmFuEnG.js +29 -0
  19. package/dist/assets/{xto-base-PwLGsxxb.js → xto-base-B5HYOo6i.js} +1 -1
  20. package/dist/assets/{xto-core-CtL4zKiV.js → xto-core-DZYp_YAR.js} +1 -1
  21. package/dist/assets/{xto-data-bCXQa7fT.js → xto-data-ogck6x_i.js} +1 -1
  22. package/dist/assets/{xto-feedback-CPydp0kn.js → xto-feedback-C0-6cAL6.js} +1 -1
  23. package/dist/assets/{xto-form-bywohdAf.js → xto-form-IDg_78Vf.js} +1 -1
  24. package/dist/assets/{xto-navigation-Bbdpine9.js → xto-navigation-CPYLzfu7.js} +1 -1
  25. package/dist/index.html +9 -9
  26. package/package.json +91 -91
  27. package/src/App.vue +48 -48
  28. package/src/assets/styles/_dark.scss +639 -572
  29. package/src/assets/styles/_root.scss +183 -183
  30. package/src/assets/styles/_variables.scss +69 -69
  31. package/src/assets/styles/index.scss +460 -460
  32. package/src/components/Layout/Sidebar.vue +198 -198
  33. package/src/components/Layout/TopMenu.vue +1170 -1170
  34. package/src/components/Layout/index.vue +192 -192
  35. package/src/directives/permission.ts +12 -3
  36. package/src/index.ts +100 -100
  37. package/src/router/layoutRoute.ts +59 -59
  38. package/src/stores/menu.ts +64 -3
  39. package/src/types/json-bigint.d.ts +18 -18
  40. package/src/utils/permission.ts +12 -5
  41. package/src/views/dashboard/index.vue +545 -545
  42. package/src/views/error/403.vue +251 -251
  43. package/src/views/error/404.vue +253 -253
  44. package/src/views/login/index.vue +586 -586
  45. package/src/views/system/menu/index.vue +690 -690
  46. package/src/views/system/role/index.vue +583 -583
  47. package/src/views/system/user/index.vue +655 -655
  48. package/dist/App.vue.d.ts +0 -2
  49. package/dist/api/auth.d.ts +0 -8
  50. package/dist/api/system.d.ts +0 -16
  51. package/dist/api/user.d.ts +0 -13
  52. package/dist/assets/404-C9Uh6Uu-.css +0 -1
  53. package/dist/assets/404-zjGLLssH.js +0 -1
  54. package/dist/assets/index-B5xc4gQB.css +0 -1
  55. package/dist/assets/index-CAdztNsv.css +0 -1
  56. package/dist/assets/index-CCXrcISf.css +0 -1
  57. package/dist/assets/index-D8NDxq9d.js +0 -1
  58. package/dist/assets/index-DEB6-Iv_.js +0 -2
  59. package/dist/assets/index-DM4Ezclc.css +0 -1
  60. package/dist/assets/index-DYv7nImj.css +0 -1
  61. package/dist/assets/vendor-CUVPinTg.js +0 -13
  62. package/dist/assets/vue-vendor-DeJXJVbN.js +0 -29
  63. package/dist/components/Layout/Footer.vue.d.ts +0 -2
  64. package/dist/components/Layout/Header.vue.d.ts +0 -5
  65. package/dist/components/Layout/MixTopMenu.vue.d.ts +0 -5
  66. package/dist/components/Layout/Sidebar.vue.d.ts +0 -11
  67. package/dist/components/Layout/SidebarMenuItem.vue.d.ts +0 -5
  68. package/dist/components/Layout/Tabs.vue.d.ts +0 -2
  69. package/dist/components/Layout/TopMenu.vue.d.ts +0 -5
  70. package/dist/components/Layout/index.vue.d.ts +0 -2
  71. package/dist/composables/useApp.d.ts +0 -29
  72. package/dist/composables/useAuth.d.ts +0 -6
  73. package/dist/composables/useForm.d.ts +0 -20
  74. package/dist/composables/useI18n.d.ts +0 -30
  75. package/dist/composables/useTable.d.ts +0 -29
  76. package/dist/directives/permission.d.ts +0 -4
  77. package/dist/enums/index.d.ts +0 -32
  78. package/dist/index-58aI1w0v.js +0 -515
  79. package/dist/index-A_B_Ap_A.js +0 -4240
  80. package/dist/index-BAmYUT0G.js +0 -189
  81. package/dist/index-BRvi9qW-.js +0 -515
  82. package/dist/index-BVGW4DDQ.js +0 -189
  83. package/dist/index-Bmf0YbVq.js +0 -189
  84. package/dist/index-C2-a5KSQ.js +0 -4233
  85. package/dist/index-CeZ0CSSs.js +0 -641
  86. package/dist/index-D25KzR0I.js +0 -479
  87. package/dist/index-DEYOivza.js +0 -641
  88. package/dist/index-DReodgBw.js +0 -4233
  89. package/dist/index-DjERNRXX.js +0 -515
  90. package/dist/index-LSdsO2Ox.js +0 -479
  91. package/dist/index-gBlRG4kk.js +0 -479
  92. package/dist/index-xWU3J3OH.js +0 -641
  93. package/dist/index.d.ts +0 -59
  94. package/dist/index.es.js +0 -95
  95. package/dist/index.umd.js +0 -8
  96. package/dist/main.d.ts +0 -0
  97. package/dist/router/dynamicRoutes.d.ts +0 -30
  98. package/dist/router/guards.d.ts +0 -17
  99. package/dist/router/index.d.ts +0 -6
  100. package/dist/router/layoutRoute.d.ts +0 -22
  101. package/dist/router/staticRoutes.d.ts +0 -2
  102. package/dist/stores/app.d.ts +0 -93
  103. package/dist/stores/auth.d.ts +0 -41
  104. package/dist/stores/index.d.ts +0 -10
  105. package/dist/stores/locale.d.ts +0 -42
  106. package/dist/stores/menu.d.ts +0 -77
  107. package/dist/stores/user.d.ts +0 -92
  108. package/dist/style.css +0 -1
  109. package/dist/utils/auth.d.ts +0 -27
  110. package/dist/utils/config.d.ts +0 -30
  111. package/dist/utils/permission.d.ts +0 -18
  112. package/dist/utils/request.d.ts +0 -29
  113. package/dist/utils/storage.d.ts +0 -24
  114. package/dist/views/dashboard/index.vue.d.ts +0 -2
  115. package/dist/views/error/403.vue.d.ts +0 -2
  116. package/dist/views/error/404.vue.d.ts +0 -2
  117. package/dist/views/login/index.vue.d.ts +0 -4
  118. package/dist/views/system/menu/index.vue.d.ts +0 -4
  119. package/dist/views/system/role/index.vue.d.ts +0 -4
  120. package/dist/views/system/user/index.vue.d.ts +0 -4
@@ -1,479 +0,0 @@
1
- import { defineComponent as P, ref as m, reactive as A, computed as O, onMounted as j, openBlock as _, createElementBlock as k, createElementVNode as e, createVNode as o, unref as l, withCtx as a, withKeys as q, createTextVNode as u, toDisplayString as c, Fragment as K, renderList as G, normalizeClass as J } from "vue";
2
- import { Form as N, FormItem as v, Input as x, Select as Q, Switch as S } from "@xto/form";
3
- import { Tag as W, Pagination as X } from "@xto/data";
4
- import { Popconfirm as Y, Modal as Z, Message as B } from "@xto/feedback";
5
- import { Space as L, Button as f } from "@xto/base";
6
- import { S as d, a as ee, _ as te } from "./index-A_B_Ap_A.js";
7
- const le = { class: "role-page" }, se = { class: "search-section" }, oe = { class: "table-section" }, ae = { class: "table-toolbar" }, ne = { class: "toolbar-left" }, ie = { class: "toolbar-right" }, de = { class: "table-count" }, re = { class: "table-wrapper" }, ue = { class: "data-table" }, ce = { key: 0 }, pe = { key: 1 }, me = { class: "col-id" }, ve = { class: "id-badge" }, fe = { class: "col-name" }, ge = { class: "role-name" }, ye = { class: "col-code" }, _e = { class: "col-desc" }, ke = { class: "desc-text" }, he = { class: "col-status" }, xe = { class: "status-switch" }, Ve = { class: "col-time" }, be = { class: "time-text" }, Ee = { class: "col-actions" }, Ce = { class: "pagination-wrapper" }, Be = { class: "status-field" }, Le = { class: "status-label" }, De = /* @__PURE__ */ P({
8
- __name: "index",
9
- setup(we) {
10
- const z = [
11
- { id: 1, name: "超级管理员", code: "admin", description: "拥有所有权限", status: d.ENABLED, permissions: ["*"], createTime: "2024-01-01 10:00:00" },
12
- { id: 2, name: "编辑", code: "editor", description: "内容编辑权限", status: d.ENABLED, permissions: ["user:read", "user:write"], createTime: "2024-01-02 10:00:00" },
13
- { id: 3, name: "访客", code: "viewer", description: "只读权限", status: d.ENABLED, permissions: ["user:read"], createTime: "2024-01-03 10:00:00" }
14
- ], V = m(!1), b = m([]), E = m(0), g = m(1), h = m(10), r = A({
15
- keyword: "",
16
- status: void 0
17
- }), y = m(!1), M = O(() => i.id ? "编辑角色" : "新增角色"), i = A({
18
- id: 0,
19
- name: "",
20
- code: "",
21
- description: "",
22
- status: d.ENABLED,
23
- permissions: []
24
- }), U = {
25
- name: [
26
- { required: !0, message: "请输入角色名称", trigger: "blur" }
27
- ],
28
- code: [
29
- { required: !0, message: "请输入角色编码", trigger: "blur" }
30
- ]
31
- }, D = m(), p = () => {
32
- V.value = !0, setTimeout(() => {
33
- let n = [...z];
34
- r.keyword && (n = n.filter(
35
- (t) => t.name.includes(r.keyword) || t.code.includes(r.keyword)
36
- )), r.status !== void 0 && (n = n.filter((t) => t.status === r.status)), E.value = n.length, b.value = n.slice((g.value - 1) * h.value, g.value * h.value), V.value = !1;
37
- }, 300);
38
- }, w = () => {
39
- g.value = 1, p();
40
- }, T = () => {
41
- r.keyword = "", r.status = void 0, g.value = 1, p();
42
- }, I = () => {
43
- Object.assign(i, {
44
- id: 0,
45
- name: "",
46
- code: "",
47
- description: "",
48
- status: d.ENABLED,
49
- permissions: []
50
- }), y.value = !0;
51
- }, H = (n) => {
52
- Object.assign(i, n), y.value = !0;
53
- }, R = (n) => {
54
- B.success("删除成功"), p();
55
- }, $ = async () => {
56
- var n;
57
- try {
58
- await ((n = D.value) == null ? void 0 : n.validate()), B.success(i.id ? "编辑成功" : "新增成功"), y.value = !1, p();
59
- } catch (t) {
60
- console.error(t);
61
- }
62
- }, F = (n) => {
63
- B.success(`已${n.status === d.ENABLED ? "启用" : "禁用"}角色 ${n.name}`);
64
- };
65
- return j(() => {
66
- p();
67
- }), (n, t) => (_(), k("div", le, [
68
- e("div", se, [
69
- o(l(N), {
70
- model: r,
71
- inline: "",
72
- class: "search-form"
73
- }, {
74
- default: a(() => [
75
- o(l(v), { label: "关键词" }, {
76
- default: a(() => [
77
- o(l(x), {
78
- modelValue: r.keyword,
79
- "onUpdate:modelValue": t[0] || (t[0] = (s) => r.keyword = s),
80
- placeholder: "角色名称/编码",
81
- clearable: "",
82
- onKeyup: q(w, ["enter"])
83
- }, null, 8, ["modelValue"])
84
- ]),
85
- _: 1
86
- }),
87
- o(l(v), { label: "状态" }, {
88
- default: a(() => [
89
- o(l(Q), {
90
- modelValue: r.status,
91
- "onUpdate:modelValue": t[1] || (t[1] = (s) => r.status = s),
92
- options: l(ee),
93
- placeholder: "请选择",
94
- clearable: ""
95
- }, null, 8, ["modelValue", "options"])
96
- ]),
97
- _: 1
98
- }),
99
- o(l(v), null, {
100
- default: a(() => [
101
- o(l(L), null, {
102
- default: a(() => [
103
- o(l(f), {
104
- type: "primary",
105
- onClick: w
106
- }, {
107
- icon: a(() => [...t[10] || (t[10] = [
108
- e("svg", {
109
- viewBox: "0 0 24 24",
110
- fill: "none",
111
- stroke: "currentColor",
112
- "stroke-width": "2"
113
- }, [
114
- e("circle", {
115
- cx: "11",
116
- cy: "11",
117
- r: "8"
118
- }),
119
- e("path", { d: "M21 21l-4.35-4.35" })
120
- ], -1)
121
- ])]),
122
- default: a(() => [
123
- t[11] || (t[11] = u(" 搜索 ", -1))
124
- ]),
125
- _: 1
126
- }),
127
- o(l(f), { onClick: T }, {
128
- icon: a(() => [...t[12] || (t[12] = [
129
- e("svg", {
130
- viewBox: "0 0 24 24",
131
- fill: "none",
132
- stroke: "currentColor",
133
- "stroke-width": "2"
134
- }, [
135
- e("path", { d: "M3 12a9 9 0 109-9 9.75 9.75 0 00-6.74 2.74L3 8" }),
136
- e("path", { d: "M3 3v5h5" })
137
- ], -1)
138
- ])]),
139
- default: a(() => [
140
- t[13] || (t[13] = u(" 重置 ", -1))
141
- ]),
142
- _: 1
143
- })
144
- ]),
145
- _: 1
146
- })
147
- ]),
148
- _: 1
149
- })
150
- ]),
151
- _: 1
152
- }, 8, ["model"])
153
- ]),
154
- e("div", oe, [
155
- e("div", ae, [
156
- e("div", ne, [
157
- o(l(f), {
158
- type: "primary",
159
- onClick: I
160
- }, {
161
- icon: a(() => [...t[14] || (t[14] = [
162
- e("svg", {
163
- viewBox: "0 0 24 24",
164
- fill: "none",
165
- stroke: "currentColor",
166
- "stroke-width": "2"
167
- }, [
168
- e("line", {
169
- x1: "12",
170
- y1: "5",
171
- x2: "12",
172
- y2: "19"
173
- }),
174
- e("line", {
175
- x1: "5",
176
- y1: "12",
177
- x2: "19",
178
- y2: "12"
179
- })
180
- ], -1)
181
- ])]),
182
- default: a(() => [
183
- t[15] || (t[15] = u(" 新增角色 ", -1))
184
- ]),
185
- _: 1
186
- })
187
- ]),
188
- e("div", ie, [
189
- e("span", de, "共 " + c(E.value) + " 条数据", 1)
190
- ])
191
- ]),
192
- e("div", re, [
193
- e("table", ue, [
194
- t[22] || (t[22] = e("thead", null, [
195
- e("tr", null, [
196
- e("th", { class: "col-id" }, "ID"),
197
- e("th", { class: "col-name" }, "角色名称"),
198
- e("th", { class: "col-code" }, "角色编码"),
199
- e("th", { class: "col-desc" }, "描述"),
200
- e("th", { class: "col-status" }, "状态"),
201
- e("th", { class: "col-time" }, "创建时间"),
202
- e("th", { class: "col-actions" }, "操作")
203
- ])
204
- ], -1)),
205
- e("tbody", null, [
206
- V.value ? (_(), k("tr", ce, [...t[16] || (t[16] = [
207
- e("td", {
208
- colspan: "7",
209
- class: "loading-cell"
210
- }, [
211
- e("div", { class: "loading-content" }, [
212
- e("div", { class: "loading-spinner" }),
213
- e("span", null, "加载中...")
214
- ])
215
- ], -1)
216
- ])])) : b.value.length === 0 ? (_(), k("tr", pe, [...t[17] || (t[17] = [
217
- e("td", {
218
- colspan: "7",
219
- class: "empty-cell"
220
- }, [
221
- e("div", { class: "empty-content" }, [
222
- e("svg", {
223
- viewBox: "0 0 64 41",
224
- fill: "none"
225
- }, [
226
- e("g", { transform: "translate(0 1)" }, [
227
- e("ellipse", {
228
- fill: "#f5f5f5",
229
- cx: "32",
230
- cy: "33",
231
- rx: "32",
232
- ry: "7"
233
- }),
234
- e("g", {
235
- stroke: "var(--color-text-placeholder)",
236
- "stroke-width": "2"
237
- }, [
238
- e("path", { d: "M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z" }),
239
- e("path", {
240
- d: "M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35H11.95C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",
241
- fill: "var(--color-fill)"
242
- })
243
- ])
244
- ])
245
- ]),
246
- e("span", null, "暂无数据")
247
- ])
248
- ], -1)
249
- ])])) : (_(!0), k(K, { key: 2 }, G(b.value, (s) => (_(), k("tr", {
250
- key: s.id,
251
- class: "data-row"
252
- }, [
253
- e("td", me, [
254
- e("span", ve, c(s.id), 1)
255
- ]),
256
- e("td", fe, [
257
- e("span", ge, c(s.name), 1)
258
- ]),
259
- e("td", ye, [
260
- o(l(W), {
261
- type: "primary",
262
- size: "small"
263
- }, {
264
- default: a(() => [
265
- u(c(s.code), 1)
266
- ]),
267
- _: 2
268
- }, 1024)
269
- ]),
270
- e("td", _e, [
271
- e("span", ke, c(s.description), 1)
272
- ]),
273
- e("td", he, [
274
- e("div", xe, [
275
- o(l(S), {
276
- "model-value": s.status === l(d).ENABLED,
277
- "onUpdate:modelValue": (C) => {
278
- s.status = C ? l(d).ENABLED : l(d).DISABLED, F(s);
279
- }
280
- }, null, 8, ["model-value", "onUpdate:modelValue"]),
281
- e("span", {
282
- class: J(["status-text", { enabled: s.status === l(d).ENABLED }])
283
- }, c(s.status === l(d).ENABLED ? "已启用" : "已禁用"), 3)
284
- ])
285
- ]),
286
- e("td", Ve, [
287
- e("span", be, c(s.createTime), 1)
288
- ]),
289
- e("td", Ee, [
290
- o(l(L), { class: "action-buttons" }, {
291
- default: a(() => [
292
- o(l(f), {
293
- type: "primary",
294
- link: "",
295
- size: "small",
296
- onClick: (C) => H(s)
297
- }, {
298
- icon: a(() => [...t[18] || (t[18] = [
299
- e("svg", {
300
- viewBox: "0 0 24 24",
301
- fill: "none",
302
- stroke: "currentColor",
303
- "stroke-width": "2"
304
- }, [
305
- e("path", { d: "M11 4H4a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7" }),
306
- e("path", { d: "M18.5 2.5a2.121 2.121 0 013 3L12 15l-4 1 1-4 9.5-9.5z" })
307
- ], -1)
308
- ])]),
309
- default: a(() => [
310
- t[19] || (t[19] = u(" 编辑 ", -1))
311
- ]),
312
- _: 1
313
- }, 8, ["onClick"]),
314
- o(l(Y), {
315
- title: "确定删除该角色吗?",
316
- onConfirm: (C) => R(s.id)
317
- }, {
318
- default: a(() => [
319
- o(l(f), {
320
- type: "danger",
321
- link: "",
322
- size: "small"
323
- }, {
324
- icon: a(() => [...t[20] || (t[20] = [
325
- e("svg", {
326
- viewBox: "0 0 24 24",
327
- fill: "none",
328
- stroke: "currentColor",
329
- "stroke-width": "2"
330
- }, [
331
- e("polyline", { points: "3,6 5,6 21,6" }),
332
- e("path", { d: "M19 6v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6m3 0V4a2 2 0 012-2h4a2 2 0 012 2v2" }),
333
- e("line", {
334
- x1: "10",
335
- y1: "11",
336
- x2: "10",
337
- y2: "17"
338
- }),
339
- e("line", {
340
- x1: "14",
341
- y1: "11",
342
- x2: "14",
343
- y2: "17"
344
- })
345
- ], -1)
346
- ])]),
347
- default: a(() => [
348
- t[21] || (t[21] = u(" 删除 ", -1))
349
- ]),
350
- _: 1
351
- })
352
- ]),
353
- _: 1
354
- }, 8, ["onConfirm"])
355
- ]),
356
- _: 2
357
- }, 1024)
358
- ])
359
- ]))), 128))
360
- ])
361
- ])
362
- ]),
363
- e("div", Ce, [
364
- o(l(X), {
365
- "current-page": g.value,
366
- "onUpdate:currentPage": t[2] || (t[2] = (s) => g.value = s),
367
- "page-size": h.value,
368
- "onUpdate:pageSize": t[3] || (t[3] = (s) => h.value = s),
369
- total: E.value,
370
- "page-sizes": [10, 20, 50, 100],
371
- layout: "total, sizes, prev, pager, next",
372
- onCurrentChange: p,
373
- onSizeChange: p
374
- }, null, 8, ["current-page", "page-size", "total"])
375
- ])
376
- ]),
377
- o(l(Z), {
378
- modelValue: y.value,
379
- "onUpdate:modelValue": t[9] || (t[9] = (s) => y.value = s),
380
- title: M.value,
381
- width: "520px",
382
- class: "role-modal"
383
- }, {
384
- footer: a(() => [
385
- o(l(L), null, {
386
- default: a(() => [
387
- o(l(f), {
388
- onClick: t[8] || (t[8] = (s) => y.value = !1)
389
- }, {
390
- default: a(() => [...t[23] || (t[23] = [
391
- u("取消", -1)
392
- ])]),
393
- _: 1
394
- }),
395
- o(l(f), {
396
- type: "primary",
397
- onClick: $
398
- }, {
399
- default: a(() => [...t[24] || (t[24] = [
400
- u("确定", -1)
401
- ])]),
402
- _: 1
403
- })
404
- ]),
405
- _: 1
406
- })
407
- ]),
408
- default: a(() => [
409
- o(l(N), {
410
- ref_key: "formRef",
411
- ref: D,
412
- model: i,
413
- rules: U,
414
- "label-width": "80px",
415
- class: "role-form"
416
- }, {
417
- default: a(() => [
418
- o(l(v), {
419
- label: "角色名称",
420
- prop: "name"
421
- }, {
422
- default: a(() => [
423
- o(l(x), {
424
- modelValue: i.name,
425
- "onUpdate:modelValue": t[4] || (t[4] = (s) => i.name = s),
426
- placeholder: "请输入角色名称"
427
- }, null, 8, ["modelValue"])
428
- ]),
429
- _: 1
430
- }),
431
- o(l(v), {
432
- label: "角色编码",
433
- prop: "code"
434
- }, {
435
- default: a(() => [
436
- o(l(x), {
437
- modelValue: i.code,
438
- "onUpdate:modelValue": t[5] || (t[5] = (s) => i.code = s),
439
- placeholder: "请输入角色编码"
440
- }, null, 8, ["modelValue"])
441
- ]),
442
- _: 1
443
- }),
444
- o(l(v), { label: "描述" }, {
445
- default: a(() => [
446
- o(l(x), {
447
- modelValue: i.description,
448
- "onUpdate:modelValue": t[6] || (t[6] = (s) => i.description = s),
449
- placeholder: "请输入描述"
450
- }, null, 8, ["modelValue"])
451
- ]),
452
- _: 1
453
- }),
454
- o(l(v), { label: "状态" }, {
455
- default: a(() => [
456
- e("div", Be, [
457
- o(l(S), {
458
- modelValue: i.status,
459
- "onUpdate:modelValue": t[7] || (t[7] = (s) => i.status = s),
460
- "active-value": l(d).ENABLED,
461
- "inactive-value": l(d).DISABLED
462
- }, null, 8, ["modelValue", "active-value", "inactive-value"]),
463
- e("span", Le, c(i.status === l(d).ENABLED ? "启用" : "禁用"), 1)
464
- ])
465
- ]),
466
- _: 1
467
- })
468
- ]),
469
- _: 1
470
- }, 8, ["model"])
471
- ]),
472
- _: 1
473
- }, 8, ["modelValue", "title"])
474
- ]));
475
- }
476
- }), Te = /* @__PURE__ */ te(De, [["__scopeId", "data-v-935244f1"]]);
477
- export {
478
- Te as default
479
- };