smart-admin-web 10.22.0 → 10.23.1

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 (34) hide show
  1. package/dist/components/FormContainer/index.vue.js +67 -67
  2. package/dist/components/FormContainer/index.vue.js.map +1 -1
  3. package/dist/components/SidePanelDrawer/index.vue.d.ts +25 -0
  4. package/dist/components/SidePanelDrawer/index.vue.js +40 -0
  5. package/dist/components/SidePanelDrawer/index.vue.js.map +1 -0
  6. package/dist/components/SidePanelDrawer/index3.vue.js +6 -0
  7. package/dist/components/SidePanelDrawer/index3.vue.js.map +1 -0
  8. package/dist/composables/useShellBreakpoint.js +14 -13
  9. package/dist/composables/useShellBreakpoint.js.map +1 -1
  10. package/dist/composables/useSidePanel.d.ts +9 -0
  11. package/dist/composables/useSidePanel.js +12 -0
  12. package/dist/composables/useSidePanel.js.map +1 -0
  13. package/dist/index.d.ts +2 -0
  14. package/dist/index.js +295 -290
  15. package/dist/index.js.map +1 -1
  16. package/dist/layouts/default.vue.js +2 -2
  17. package/dist/layouts/default2.vue.js.map +1 -1
  18. package/dist/lib/runtime.js +1 -1
  19. package/dist/style.css +1 -1
  20. package/dist/utils/tree.d.ts +1 -2
  21. package/dist/utils/tree.js.map +1 -1
  22. package/dist/views/system/menu/index.vue.js +1 -1
  23. package/dist/views/system/menu/index2.vue.js +151 -161
  24. package/dist/views/system/menu/index2.vue.js.map +1 -1
  25. package/dist/views/system/org/index.vue.js +2 -2
  26. package/dist/views/system/org/index2.vue.js +176 -182
  27. package/dist/views/system/org/index2.vue.js.map +1 -1
  28. package/dist/views/system/user/index.vue.js +2 -2
  29. package/dist/views/system/user/index2.vue.js +269 -281
  30. package/dist/views/system/user/index2.vue.js.map +1 -1
  31. package/package.json +3 -3
  32. package/dist/utils/treeCard.d.ts +0 -6
  33. package/dist/utils/treeCard.js +0 -9
  34. package/dist/utils/treeCard.js.map +0 -1
@@ -1,69 +1,65 @@
1
- import { defineComponent as me, ref as s, shallowRef as j, computed as M, watch as pe, reactive as fe, h as d, resolveDirective as ve, openBlock as P, createElementBlock as ye, createVNode as r, unref as o, withCtx as n, createBlock as V, createTextVNode as x, toDisplayString as p, createCommentVNode as ge, withDirectives as he, createSlots as be, createElementVNode as K } from "vue";
2
- import { useMessage as we, NSpace as G, NButton as f, NDropdown as ke, NForm as W, NFormItem as m, NInput as A, NInputNumber as _e, NSwitch as xe, NModal as Ie } from "naive-ui";
3
- import { SmartTable as Ce } from "smart-naive-table";
4
- import { useI18n as Ne } from "vue-i18n";
1
+ import { defineComponent as se, ref as s, shallowRef as H, computed as de, reactive as ue, h as d, resolveDirective as ce, openBlock as F, createElementBlock as me, createVNode as a, unref as o, withCtx as n, createTextVNode as x, toDisplayString as m, withDirectives as pe, createBlock as fe, createSlots as ve, createElementVNode as j } from "vue";
2
+ import { useMessage as ye, NSpace as M, NButton as p, NDropdown as ge, NForm as V, NFormItem as c, NInput as E, NInputNumber as he, NSwitch as be, NModal as we } from "naive-ui";
3
+ import { SmartTable as ke } from "smart-naive-table";
4
+ import { useI18n as _e } from "vue-i18n";
5
5
  import I from "../../../components/AppIcon.vue.js";
6
- import Te from "../../../components/DictSelect/index.vue.js";
7
- import Se from "../../../components/DictTag/index.vue.js";
8
- import Ee from "../../../components/FormContainer/index.vue.js";
6
+ import xe from "../../../components/DictSelect/index.vue.js";
7
+ import Ie from "../../../components/DictTag/index.vue.js";
8
+ import Ce from "../../../components/FormContainer/index.vue.js";
9
9
  /* empty css */
10
- import Pe from "../../../components/OrgTreeSelect/index.vue.js";
11
- import Ae from "../../../components/StatusSwitch/index.vue.js";
12
- import { useConfirm as Ue } from "../../../composables/useConfirm.js";
13
- import { useShellBreakpoint as Oe } from "../../../composables/useShellBreakpoint.js";
14
- import { orgApi as v } from "../../../api/index.js";
15
- import { useAuthStore as ze } from "../../../stores/auth.js";
16
- import { translateError as J } from "../../../utils/error.js";
17
- import { SEARCH_ACTIONS as Q, deriveHeaderFilters as Re } from "../../../utils/tableFilter.js";
18
- import { TABLE_MIN_ROW_HEIGHT as Be, TABLE_TOOLBAR as De } from "../../../utils/tableToolbar.js";
19
- import { flattenTree as Le, expandableIds as X, buildTree as $e } from "../../../utils/tree.js";
20
- import { indentByDepth as qe } from "../../../utils/treeCard.js";
21
- import { filterTreeByParams as He } from "../../../utils/treeFilter.js";
22
- const Fe = { class: "view fill-page" }, je = { class: "form-hint" }, Me = { class: "copy-tip" }, vo = /* @__PURE__ */ me({
10
+ import Ne from "../../../components/OrgTreeSelect/index.vue.js";
11
+ import Te from "../../../components/StatusSwitch/index.vue.js";
12
+ import { useConfirm as Se } from "../../../composables/useConfirm.js";
13
+ import { orgApi as f } from "../../../api/index.js";
14
+ import { useAuthStore as Ee } from "../../../stores/auth.js";
15
+ import { translateError as K } from "../../../utils/error.js";
16
+ import { SEARCH_ACTIONS as G, deriveHeaderFilters as Pe } from "../../../utils/tableFilter.js";
17
+ import { TABLE_MIN_ROW_HEIGHT as Ae, TABLE_TOOLBAR as Ue } from "../../../utils/tableToolbar.js";
18
+ import { expandableIds as W, buildTree as Oe } from "../../../utils/tree.js";
19
+ import { filterTreeByParams as ze } from "../../../utils/treeFilter.js";
20
+ const Re = { class: "view fill-page" }, Be = { class: "form-hint" }, De = { class: "copy-tip" }, ro = /* @__PURE__ */ se({
23
21
  __name: "index",
24
- setup(Ve) {
25
- const { t } = Ne(), C = we(), { run: Y, confirm: Z } = Ue(), y = ze(), N = s(!1), U = j([]);
26
- async function ee() {
22
+ setup(Le) {
23
+ const { t: l } = _e(), C = ye(), { run: J, confirm: Q } = Se(), v = Ee(), N = s(!1), P = H([]);
24
+ async function X() {
27
25
  N.value = !0;
28
26
  try {
29
- U.value = $e(await v.list());
27
+ P.value = Oe(await f.list());
30
28
  } catch (e) {
31
- C.error(J(e));
29
+ C.error(K(e));
32
30
  } finally {
33
31
  N.value = !1;
34
32
  }
35
33
  }
36
- const O = s(), g = () => {
34
+ const A = s(), h = () => {
37
35
  var e;
38
- return (e = O.value) == null ? void 0 : e.refresh();
39
- }, oe = {
36
+ return (e = A.value) == null ? void 0 : e.refresh();
37
+ }, Y = {
40
38
  name: (e) => e.name,
41
39
  code: (e) => e.code
42
- }, { bp: te } = Oe(), T = M(() => te.value === "narrow"), le = async (e) => {
43
- await ee();
44
- const l = He(U.value, e, oe), u = T.value ? Le(l) : l;
45
- return { items: u, total: u.length };
46
- };
47
- pe(T, () => g());
48
- const h = s([]), z = j([]);
49
- function ae(e) {
50
- z.value = e, h.value = X(e);
40
+ }, Z = async (e) => {
41
+ await X();
42
+ const t = ze(P.value, e, Y);
43
+ return { items: t, total: t.length };
44
+ }, y = s([]), U = H([]);
45
+ function ee(e) {
46
+ U.value = e, y.value = W(e);
51
47
  }
52
- const S = M(() => h.value.length > 0), re = () => h.value = S.value ? [] : X(z.value), w = s(!1), R = s(null), c = s(null), ne = {
48
+ const T = de(() => y.value.length > 0), oe = () => y.value = T.value ? [] : W(U.value), b = s(!1), O = s(null), u = s(null), le = {
53
49
  name: {
54
50
  required: !0,
55
51
  whitespace: !0,
56
- message: () => t("org.nameRequired"),
52
+ message: () => l("org.nameRequired"),
57
53
  trigger: ["input", "blur"]
58
54
  }
59
- }, B = () => ({
55
+ }, z = () => ({
60
56
  parentId: 0,
61
57
  name: "",
62
58
  code: "",
63
59
  category: null,
64
60
  sort: 0,
65
61
  enabled: !0
66
- }), i = fe(B()), D = (e) => ({
62
+ }), i = ue(z()), R = (e) => ({
67
63
  parentId: e.parentId,
68
64
  name: e.name,
69
65
  code: e.code,
@@ -71,42 +67,42 @@ const Fe = { class: "view fill-page" }, je = { class: "form-hint" }, Me = { clas
71
67
  sort: e.sort,
72
68
  enabled: e.enabled
73
69
  });
74
- function L(e = 0) {
75
- c.value = null, Object.assign(i, B(), { parentId: e }), w.value = !0;
70
+ function B(e = 0) {
71
+ u.value = null, Object.assign(i, z(), { parentId: e }), b.value = !0;
76
72
  }
77
- function ie(e) {
78
- c.value = e.id, Object.assign(i, D(e)), w.value = !0;
73
+ function te(e) {
74
+ u.value = e.id, Object.assign(i, R(e)), b.value = !0;
79
75
  }
80
- async function se() {
76
+ async function ae() {
81
77
  var e;
82
- await ((e = R.value) == null ? void 0 : e.validate());
78
+ await ((e = O.value) == null ? void 0 : e.validate());
83
79
  try {
84
- const l = { ...i, parentId: i.parentId ?? 0 };
85
- c.value === null ? await v.add(l) : await v.update(c.value, l), C.success(t("org.saved")), await g();
86
- } catch (l) {
87
- return C.error(J(l)), !1;
80
+ const t = { ...i, parentId: i.parentId ?? 0 };
81
+ u.value === null ? await f.add(t) : await f.update(u.value, t), C.success(l("org.saved")), await h();
82
+ } catch (t) {
83
+ return C.error(K(t)), !1;
88
84
  }
89
85
  }
90
- const b = s(!1), $ = s(0), q = s(""), k = s("");
91
- function de(e) {
92
- $.value = e.id, q.value = e.name, k.value = e.name + t("common.copySuffix"), b.value = !0;
86
+ const g = s(!1), D = s(0), L = s(""), w = s("");
87
+ function re(e) {
88
+ D.value = e.id, L.value = e.name, w.value = e.name + l("common.copySuffix"), g.value = !0;
93
89
  }
94
- async function ce() {
95
- await Y(() => v.copy($.value, { name: k.value }), t("org.copied")) && (b.value = !1, g());
90
+ async function ne() {
91
+ await J(() => f.copy(D.value, { name: w.value }), l("org.copied")) && (g.value = !1, h());
96
92
  }
97
- const ue = (e) => Z({
98
- content: t("org.deleteConfirm", { name: e.name }),
93
+ const ie = (e) => Q({
94
+ content: l("org.deleteConfirm", { name: e.name }),
99
95
  type: "error",
100
- action: () => v.remove(e.id),
101
- successMsg: t("org.deleted")
102
- }).then((l) => {
103
- l && g();
104
- }), E = (e) => () => d(I, { icon: e, size: 16 }), H = [
96
+ action: () => f.remove(e.id),
97
+ successMsg: l("org.deleted")
98
+ }).then((t) => {
99
+ t && h();
100
+ }), S = (e) => () => d(I, { icon: e, size: 16 }), $ = [
105
101
  // 序号与树列同固定左侧:固定列必须在最左连续,否则横向滚动时树列会压在序号列上。
106
- { type: "index", title: () => t("common.rowNo"), width: 64, align: "center", fixed: "left" },
102
+ { type: "index", title: () => l("common.rowNo"), width: 64, align: "center", fixed: "left" },
107
103
  // 树列左对齐,展开缩进才好读;fixed 是为了横向滚动时不丢失「这是哪一行」。
108
104
  {
109
- title: () => t("org.name"),
105
+ title: () => l("org.name"),
110
106
  key: "name",
111
107
  // 树的缩进和展开箭头落在这一列:不指定时 Naive 取第一个没有 type 的列,正好是 64px 宽的序号列,
112
108
  // 层级一深序号就被缩进挤出列外
@@ -115,81 +111,80 @@ const Fe = { class: "view fill-page" }, je = { class: "form-hint" }, Me = { clas
115
111
  width: 260,
116
112
  fixed: "left",
117
113
  ellipsis: { tooltip: !0 },
118
- render: (e) => qe(e, e.name),
119
- search: { actions: Q.fuzzy }
114
+ search: { actions: G.fuzzy }
120
115
  },
121
116
  {
122
- title: () => t("org.code"),
117
+ title: () => l("org.code"),
123
118
  key: "code",
124
119
  ellipsis: { tooltip: !0 },
125
120
  render: (e) => d("span", { class: "mono muted" }, e.code),
126
- search: { actions: Q.fuzzy }
121
+ search: { actions: G.fuzzy }
127
122
  },
128
123
  {
129
- title: () => t("org.category"),
124
+ title: () => l("org.category"),
130
125
  key: "category",
131
126
  width: 100,
132
- render: (e) => d(Se, { typeCode: "org_category", value: e.category })
127
+ render: (e) => d(Ie, { typeCode: "org_category", value: e.category })
133
128
  },
134
129
  {
135
- title: () => t("org.sort"),
130
+ title: () => l("org.sort"),
136
131
  key: "sort",
137
132
  width: 80,
138
133
  render: (e) => d("span", { class: "num muted" }, e.sort)
139
134
  },
140
135
  {
141
- title: () => t("common.status"),
136
+ title: () => l("common.status"),
142
137
  key: "enabled",
143
138
  width: 90,
144
- render: (e) => d(Ae, {
139
+ render: (e) => d(Te, {
145
140
  value: e.enabled,
146
- disabled: !y.hasPerm("PUT:/api/v1/sys/org/{id}"),
147
- request: (l) => v.update(e.id, { ...D(e), enabled: l }),
141
+ disabled: !v.hasPerm("PUT:/api/v1/sys/org/{id}"),
142
+ request: (t) => f.update(e.id, { ...R(e), enabled: t }),
148
143
  // 重拉而非往行对象上写:搜索态下的祖先行是 filterTree 的浅拷贝,写它不会回到源树(开关会弹回去)。
149
144
  // StatusSwitch 是悲观更新(请求成功才 emit),所以这里重拉一次就是最终态,和本页其余变更的做法一致。
150
- "onUpdate:value": () => g()
145
+ "onUpdate:value": () => h()
151
146
  })
152
147
  },
153
148
  // 操作收敛成「编辑 + 更多▾」:4 个操作塞 260px 会换行、行高参差,且没 fixed 时横向滚动够不着。
154
149
  {
155
- title: () => t("common.operation"),
150
+ title: () => l("common.operation"),
156
151
  key: "op",
157
152
  width: 150,
158
153
  fixed: "right",
159
154
  render: (e) => {
160
- const l = y.hasPerm("POST:/api/v1/sys/org/add"), u = y.hasPerm("POST:/api/v1/sys/org/{id}/copy"), a = y.hasPerm("DELETE:/api/v1/sys/org/{id}"), F = [
161
- l ? { key: "addChild", label: t("org.addChild"), icon: E("ph:plus") } : null,
162
- u ? { key: "copy", label: t("org.copy"), icon: E("ph:copy") } : null,
163
- (l || u) && a ? { type: "divider", key: "divider" } : null,
164
- a ? {
155
+ const t = v.hasPerm("POST:/api/v1/sys/org/add"), k = v.hasPerm("POST:/api/v1/sys/org/{id}/copy"), r = v.hasPerm("DELETE:/api/v1/sys/org/{id}"), q = [
156
+ t ? { key: "addChild", label: l("org.addChild"), icon: S("ph:plus") } : null,
157
+ k ? { key: "copy", label: l("org.copy"), icon: S("ph:copy") } : null,
158
+ (t || k) && r ? { type: "divider", key: "divider" } : null,
159
+ r ? {
165
160
  key: "delete",
166
- label: t("common.delete"),
167
- icon: E("ph:trash"),
161
+ label: l("common.delete"),
162
+ icon: S("ph:trash"),
168
163
  props: { style: "color: var(--err)" }
169
164
  } : null
170
165
  ].filter(
171
166
  (_) => _ !== null
172
167
  );
173
- return d(G, { size: 2, wrapItem: !1, justify: "center" }, () => [
174
- y.hasPerm("PUT:/api/v1/sys/org/{id}") ? d(
175
- f,
176
- { size: "small", quaternary: !0, type: "primary", onClick: () => ie(e) },
177
- () => t("common.edit")
168
+ return d(M, { size: 2, wrapItem: !1, justify: "center" }, () => [
169
+ v.hasPerm("PUT:/api/v1/sys/org/{id}") ? d(
170
+ p,
171
+ { size: "small", quaternary: !0, type: "primary", onClick: () => te(e) },
172
+ () => l("common.edit")
178
173
  ) : null,
179
- F.length ? d(
180
- ke,
174
+ q.length ? d(
175
+ ge,
181
176
  {
182
177
  trigger: "click",
183
- options: F,
178
+ options: q,
184
179
  onSelect: (_) => {
185
- _ === "addChild" ? L(e.id) : _ === "copy" ? de(e) : ue(e);
180
+ _ === "addChild" ? B(e.id) : _ === "copy" ? re(e) : ie(e);
186
181
  }
187
182
  },
188
183
  () => d(
189
- f,
184
+ p,
190
185
  { size: "small", quaternary: !0, type: "primary", iconPlacement: "right" },
191
186
  {
192
- default: () => t("common.more"),
187
+ default: () => l("common.more"),
193
188
  icon: () => d(I, { icon: "ph:caret-down", size: 12 })
194
189
  }
195
190
  )
@@ -198,164 +193,163 @@ const Fe = { class: "view fill-page" }, je = { class: "form-hint" }, Me = { clas
198
193
  }
199
194
  }
200
195
  ];
201
- return Re(H), (e, l) => {
202
- const u = ve("auth");
203
- return P(), ye("div", Fe, [
204
- r(o(Ce), {
196
+ return Pe($), (e, t) => {
197
+ const k = ce("auth");
198
+ return F(), me("div", Re, [
199
+ a(o(ke), {
205
200
  ref_key: "tableRef",
206
- ref: O,
207
- columns: H,
208
- fetcher: le,
201
+ ref: A,
202
+ columns: $,
203
+ fetcher: Z,
209
204
  loading: N.value,
210
205
  "row-key": "id",
211
206
  pagination: !1,
212
207
  search: { container: "table" },
213
- toolbar: o(De),
208
+ toolbar: o(Ue),
214
209
  "fill-height": "",
215
- "min-row-height": o(Be),
210
+ "min-row-height": o(Ae),
216
211
  "card-on-narrow": "",
217
212
  "storage-key": "sys-org",
218
- "expanded-row-keys": h.value,
219
- "onUpdate:expandedRowKeys": l[1] || (l[1] = (a) => h.value = a),
220
- onLoaded: ae
213
+ "expanded-row-keys": y.value,
214
+ "onUpdate:expandedRowKeys": t[1] || (t[1] = (r) => y.value = r),
215
+ onLoaded: ee
221
216
  }, {
222
217
  "toolbar-right": n(() => [
223
- T.value ? ge("", !0) : (P(), V(o(f), {
224
- key: 0,
218
+ a(o(p), {
225
219
  secondary: "",
226
- onClick: re
220
+ onClick: oe
227
221
  }, {
228
222
  icon: n(() => [
229
- r(I, {
230
- icon: S.value ? "ph:arrows-in-line-vertical" : "ph:arrows-out-line-vertical",
223
+ a(I, {
224
+ icon: T.value ? "ph:arrows-in-line-vertical" : "ph:arrows-out-line-vertical",
231
225
  size: 16
232
226
  }, null, 8, ["icon"])
233
227
  ]),
234
228
  default: n(() => [
235
- x(" " + p(S.value ? o(t)("common.collapseAll") : o(t)("common.expandAll")), 1)
229
+ x(" " + m(T.value ? o(l)("common.collapseAll") : o(l)("common.expandAll")), 1)
236
230
  ]),
237
231
  _: 1
238
- })),
239
- he((P(), V(o(f), {
232
+ }),
233
+ pe((F(), fe(o(p), {
240
234
  type: "primary",
241
- onClick: l[0] || (l[0] = (a) => L(0))
235
+ onClick: t[0] || (t[0] = (r) => B(0))
242
236
  }, {
243
237
  icon: n(() => [
244
- r(I, {
238
+ a(I, {
245
239
  icon: "ph:plus",
246
240
  size: 16
247
241
  })
248
242
  ]),
249
243
  default: n(() => [
250
- x(" " + p(o(t)("common.add")), 1)
244
+ x(" " + m(o(l)("common.add")), 1)
251
245
  ]),
252
246
  _: 1
253
247
  })), [
254
- [u, "POST:/api/v1/sys/org/add"]
248
+ [k, "POST:/api/v1/sys/org/add"]
255
249
  ])
256
250
  ]),
257
251
  _: 1
258
252
  }, 8, ["loading", "toolbar", "min-row-height", "expanded-row-keys"]),
259
- r(Ee, {
260
- show: w.value,
261
- "onUpdate:show": l[8] || (l[8] = (a) => w.value = a),
262
- title: c.value === null ? o(t)("org.addTitle") : o(t)("org.editTitle"),
253
+ a(Ce, {
254
+ show: b.value,
255
+ "onUpdate:show": t[8] || (t[8] = (r) => b.value = r),
256
+ title: u.value === null ? o(l)("org.addTitle") : o(l)("org.editTitle"),
263
257
  width: 480,
264
- "on-confirm": se,
265
- "confirm-text": o(t)("common.save")
258
+ "on-confirm": ae,
259
+ "confirm-text": o(l)("common.save")
266
260
  }, {
267
261
  default: n(() => [
268
- r(o(W), {
262
+ a(o(V), {
269
263
  ref_key: "formRef",
270
- ref: R,
264
+ ref: O,
271
265
  model: i,
272
- rules: ne,
266
+ rules: le,
273
267
  "label-placement": "left",
274
268
  "label-width": 80
275
269
  }, {
276
270
  default: n(() => [
277
- r(o(m), {
278
- label: o(t)("org.parent")
271
+ a(o(c), {
272
+ label: o(l)("org.parent")
279
273
  }, {
280
274
  default: n(() => [
281
- r(Pe, {
275
+ a(Ne, {
282
276
  value: i.parentId,
283
- "onUpdate:value": l[2] || (l[2] = (a) => i.parentId = a),
277
+ "onUpdate:value": t[2] || (t[2] = (r) => i.parentId = r),
284
278
  clearable: "",
285
- "exclude-subtree-of": c.value,
286
- placeholder: o(t)("org.parentPlaceholder")
279
+ "exclude-subtree-of": u.value,
280
+ placeholder: o(l)("org.parentPlaceholder")
287
281
  }, null, 8, ["value", "exclude-subtree-of", "placeholder"])
288
282
  ]),
289
283
  _: 1
290
284
  }, 8, ["label"]),
291
- r(o(m), {
292
- label: o(t)("org.name"),
285
+ a(o(c), {
286
+ label: o(l)("org.name"),
293
287
  path: "name"
294
288
  }, {
295
289
  default: n(() => [
296
- r(o(A), {
290
+ a(o(E), {
297
291
  value: i.name,
298
- "onUpdate:value": l[3] || (l[3] = (a) => i.name = a),
299
- placeholder: o(t)("org.name")
292
+ "onUpdate:value": t[3] || (t[3] = (r) => i.name = r),
293
+ placeholder: o(l)("org.name")
300
294
  }, null, 8, ["value", "placeholder"])
301
295
  ]),
302
296
  _: 1
303
297
  }, 8, ["label"]),
304
- r(o(m), {
305
- label: o(t)("org.code")
306
- }, be({
298
+ a(o(c), {
299
+ label: o(l)("org.code")
300
+ }, ve({
307
301
  default: n(() => [
308
- r(o(A), {
302
+ a(o(E), {
309
303
  value: i.code,
310
- "onUpdate:value": l[4] || (l[4] = (a) => i.code = a),
311
- placeholder: o(t)("org.codePlaceholder"),
312
- disabled: c.value !== null
304
+ "onUpdate:value": t[4] || (t[4] = (r) => i.code = r),
305
+ placeholder: o(l)("org.codePlaceholder"),
306
+ disabled: u.value !== null
313
307
  }, null, 8, ["value", "placeholder", "disabled"])
314
308
  ]),
315
309
  _: 2
316
310
  }, [
317
- c.value !== null ? {
311
+ u.value !== null ? {
318
312
  name: "feedback",
319
313
  fn: n(() => [
320
- K("span", je, p(o(t)("org.codeImmutableHint")), 1)
314
+ j("span", Be, m(o(l)("org.codeImmutableHint")), 1)
321
315
  ]),
322
316
  key: "0"
323
317
  } : void 0
324
318
  ]), 1032, ["label"]),
325
- r(o(m), {
326
- label: o(t)("org.category")
319
+ a(o(c), {
320
+ label: o(l)("org.category")
327
321
  }, {
328
322
  default: n(() => [
329
- r(Te, {
323
+ a(xe, {
330
324
  value: i.category,
331
- "onUpdate:value": l[5] || (l[5] = (a) => i.category = a),
325
+ "onUpdate:value": t[5] || (t[5] = (r) => i.category = r),
332
326
  "type-code": "org_category",
333
327
  clearable: "",
334
- placeholder: o(t)("org.categoryPlaceholder")
328
+ placeholder: o(l)("org.categoryPlaceholder")
335
329
  }, null, 8, ["value", "placeholder"])
336
330
  ]),
337
331
  _: 1
338
332
  }, 8, ["label"]),
339
- r(o(m), {
340
- label: o(t)("org.sort")
333
+ a(o(c), {
334
+ label: o(l)("org.sort")
341
335
  }, {
342
336
  default: n(() => [
343
- r(o(_e), {
337
+ a(o(he), {
344
338
  value: i.sort,
345
- "onUpdate:value": l[6] || (l[6] = (a) => i.sort = a),
339
+ "onUpdate:value": t[6] || (t[6] = (r) => i.sort = r),
346
340
  min: 0,
347
341
  style: { width: "160px" }
348
342
  }, null, 8, ["value"])
349
343
  ]),
350
344
  _: 1
351
345
  }, 8, ["label"]),
352
- r(o(m), {
353
- label: o(t)("common.status")
346
+ a(o(c), {
347
+ label: o(l)("common.status")
354
348
  }, {
355
349
  default: n(() => [
356
- r(o(xe), {
350
+ a(o(be), {
357
351
  value: i.enabled,
358
- "onUpdate:value": l[7] || (l[7] = (a) => i.enabled = a)
352
+ "onUpdate:value": t[7] || (t[7] = (r) => i.enabled = r)
359
353
  }, null, 8, ["value"])
360
354
  ]),
361
355
  _: 1
@@ -366,34 +360,34 @@ const Fe = { class: "view fill-page" }, je = { class: "form-hint" }, Me = { clas
366
360
  ]),
367
361
  _: 1
368
362
  }, 8, ["show", "title", "confirm-text"]),
369
- r(o(Ie), {
370
- show: b.value,
371
- "onUpdate:show": l[11] || (l[11] = (a) => b.value = a),
363
+ a(o(we), {
364
+ show: g.value,
365
+ "onUpdate:show": t[11] || (t[11] = (r) => g.value = r),
372
366
  preset: "card",
373
- title: o(t)("org.copyTitle"),
367
+ title: o(l)("org.copyTitle"),
374
368
  style: { width: "min(420px, calc(100vw - 24px))" },
375
369
  bordered: !1,
376
370
  "mask-closable": !1,
377
371
  segmented: { footer: "soft" }
378
372
  }, {
379
373
  footer: n(() => [
380
- r(o(G), { justify: "end" }, {
374
+ a(o(M), { justify: "end" }, {
381
375
  default: n(() => [
382
- r(o(f), {
376
+ a(o(p), {
383
377
  secondary: "",
384
- onClick: l[10] || (l[10] = (a) => b.value = !1)
378
+ onClick: t[10] || (t[10] = (r) => g.value = !1)
385
379
  }, {
386
380
  default: n(() => [
387
- x(p(o(t)("common.cancel")), 1)
381
+ x(m(o(l)("common.cancel")), 1)
388
382
  ]),
389
383
  _: 1
390
384
  }),
391
- r(o(f), {
385
+ a(o(p), {
392
386
  type: "primary",
393
- onClick: ce
387
+ onClick: ne
394
388
  }, {
395
389
  default: n(() => [
396
- x(p(o(t)("common.confirm")), 1)
390
+ x(m(o(l)("common.confirm")), 1)
397
391
  ]),
398
392
  _: 1
399
393
  })
@@ -402,20 +396,20 @@ const Fe = { class: "view fill-page" }, je = { class: "form-hint" }, Me = { clas
402
396
  })
403
397
  ]),
404
398
  default: n(() => [
405
- K("p", Me, p(o(t)("org.copyConfirm", { name: q.value })), 1),
406
- r(o(W), {
399
+ j("p", De, m(o(l)("org.copyConfirm", { name: L.value })), 1),
400
+ a(o(V), {
407
401
  "label-placement": "top",
408
402
  "require-mark-placement": "left"
409
403
  }, {
410
404
  default: n(() => [
411
- r(o(m), {
412
- label: o(t)("org.copyNameLabel")
405
+ a(o(c), {
406
+ label: o(l)("org.copyNameLabel")
413
407
  }, {
414
408
  default: n(() => [
415
- r(o(A), {
416
- value: k.value,
417
- "onUpdate:value": l[9] || (l[9] = (a) => k.value = a),
418
- placeholder: o(t)("org.copyNameLabel")
409
+ a(o(E), {
410
+ value: w.value,
411
+ "onUpdate:value": t[9] || (t[9] = (r) => w.value = r),
412
+ placeholder: o(l)("org.copyNameLabel")
419
413
  }, null, 8, ["value", "placeholder"])
420
414
  ]),
421
415
  _: 1
@@ -431,6 +425,6 @@ const Fe = { class: "view fill-page" }, je = { class: "form-hint" }, Me = { clas
431
425
  }
432
426
  });
433
427
  export {
434
- vo as default
428
+ ro as default
435
429
  };
436
430
  //# sourceMappingURL=index2.vue.js.map