@skyfox2000/webui 1.3.20 → 1.4.0

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 (40) hide show
  1. package/lib/assets/modules/{baseLayout-B9dSxkYo.js → baseLayout-DIEq13qJ.js} +6 -6
  2. package/lib/assets/modules/{file-upload-JBIvw5Xx.js → file-upload-DGuLxYSu.js} +2 -2
  3. package/lib/assets/modules/{index-BMkaOjBS.js → index-BPufvr-r.js} +134 -133
  4. package/lib/assets/modules/{index-BOYtm8ib.js → index-CAtotNY6.js} +2 -2
  5. package/lib/assets/modules/{index-BkChvyed.js → index-DVzBH6zL.js} +1 -1
  6. package/lib/assets/modules/{menuTabs-BFPjaQRI.js → menuTabs-DKvoic5x.js} +7 -7
  7. package/lib/assets/modules/{toolIcon-XOgjdQdO.js → toolIcon-Y7Lpx2Hb.js} +1 -1
  8. package/lib/assets/modules/{uploadList-BedljASx.js → uploadList-Bh2SzZzX.js} +710 -701
  9. package/lib/assets/modules/{uploadList-CW7OIDS3.js → uploadList-DG33cpFl.js} +152 -146
  10. package/lib/components/common/icon/index.vue.d.ts +1 -1
  11. package/lib/es/AceEditor/index.js +3 -3
  12. package/lib/es/BasicLayout/index.js +2 -2
  13. package/lib/es/Error403/index.js +1 -1
  14. package/lib/es/Error404/index.js +1 -1
  15. package/lib/es/ExcelForm/index.js +38 -38
  16. package/lib/es/MenuLayout/index.js +2 -2
  17. package/lib/es/UploadForm/index.js +4 -4
  18. package/lib/stores/userInfo.d.ts +3 -1
  19. package/lib/typings/form.d.ts +1 -1
  20. package/lib/typings/tree.d.ts +4 -0
  21. package/lib/utils/micro-openapis.d.ts +35 -0
  22. package/lib/webui.es.js +358 -353
  23. package/package.json +1 -2
  24. package/src/components/content/dialog/excelForm.vue +1 -1
  25. package/src/components/content/form/formItem.vue +5 -0
  26. package/src/components/layout/header/headerExits.vue +1 -1
  27. package/src/stores/appInfo.ts +7 -8
  28. package/src/stores/userInfo.ts +21 -63
  29. package/src/typings/form.d.ts +1 -1
  30. package/src/typings/tree.d.ts +4 -0
  31. package/src/utils/data.ts +6 -0
  32. package/src/utils/download.ts +10 -1
  33. package/src/utils/export-table.ts +5 -0
  34. package/src/utils/form-excel.ts +14 -9
  35. package/src/utils/form.ts +7 -1
  36. package/src/utils/main-openapis.ts +2 -2
  37. package/src/utils/micro-openapis.ts +146 -0
  38. package/src/utils/options.ts +5 -0
  39. package/src/utils/table.ts +7 -2
  40. package/src/utils/tree.ts +4 -2
@@ -1,66 +1,72 @@
1
- import { defineComponent as X, ref as P, computed as M, watch as $, resolveDirective as Y, createElementBlock as v, openBlock as m, normalizeClass as O, unref as n, createElementVNode as f, withDirectives as x, createBlock as Z, mergeProps as ee, withCtx as y, createVNode as u, createTextVNode as F, toDisplayString as A, Fragment as te, renderList as oe, createCommentVNode as b } from "vue";
2
- import { _ as ne } from "./index-BkChvyed.js";
3
- import { a as z, _ as L } from "./toolIcon-XOgjdQdO.js";
4
- import { httpPost as D, ResStatus as I } from "@skyfox2000/fapi";
5
- import { s as ae, _ as se } from "./uploadList-BedljASx.js";
6
- import { p as R, U as s } from "./file-upload-JBIvw5Xx.js";
7
- import { combineParams as V } from "@skyfox2000/microbase";
8
- import k from "vue-m-message";
1
+ import { defineComponent as Z, ref as L, computed as K, watch as P, resolveDirective as ee, createElementBlock as v, openBlock as m, normalizeClass as O, unref as n, createElementVNode as f, withDirectives as x, createBlock as te, mergeProps as oe, withCtx as y, createVNode as p, createTextVNode as E, toDisplayString as $, Fragment as ne, renderList as ae, createCommentVNode as S } from "vue";
2
+ import { _ as se } from "./index-DVzBH6zL.js";
3
+ import { a as z, _ as A } from "./toolIcon-Y7Lpx2Hb.js";
4
+ import { httpPost as R, ResStatus as D } from "@skyfox2000/fapi";
5
+ import { L as V, u as Q, s as ie, _ as re } from "./uploadList-Bh2SzZzX.js";
6
+ import { p as M, U as i } from "./file-upload-DGuLxYSu.js";
7
+ import { combineParams as q } from "@skyfox2000/microbase";
8
+ import g from "vue-m-message";
9
9
  import "async-validator";
10
10
  import "dayjs";
11
- import { Upload as ie, Tag as re, Popconfirm as le, Progress as ce } from "ant-design-vue";
11
+ import { Upload as le, Tag as ce, Popconfirm as ue, Progress as pe } from "ant-design-vue";
12
12
  import "vue-draggable-next";
13
- import { _ as ue } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const pe = (l, w) => {
13
+ import { _ as de } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const me = (l, w) => {
15
15
  const e = document.createElement("a"), h = URL.createObjectURL(l);
16
16
  e.href = h, e.download = w, e.style.display = "none", document.body.appendChild(e), e.click(), URL.revokeObjectURL(h), document.body.removeChild(e);
17
- }, de = (l, w, e) => {
17
+ }, fe = (l, w, e) => {
18
18
  try {
19
19
  e && (l.api || (l.api = e.api), l.authorize === void 0 && (l.authorize = e.authorize));
20
- const h = V(l.params, w);
21
- return D(l, h).then((p) => {
22
- if ((p == null ? void 0 : p.status) === I.SUCCESS && p.data) {
23
- const r = p.data, E = r.Content, g = r.Key.split("/").pop(), c = atob(E), U = [];
24
- for (let S = 0; S < c.length; S++)
25
- U.push(c.charCodeAt(S));
26
- const C = new Blob([new Uint8Array(U)], {
27
- type: r.Type
20
+ const h = q(l.params, w);
21
+ return R(l, h).then((c) => {
22
+ if ((c == null ? void 0 : c.status) === D.SUCCESS && c.data) {
23
+ const s = c.data, U = s.Content, k = s.Key.split("/").pop(), u = atob(U), b = [];
24
+ for (let F = 0; F < u.length; F++)
25
+ b.push(u.charCodeAt(F));
26
+ const C = new Blob([new Uint8Array(b)], {
27
+ type: s.Type
28
28
  });
29
- pe(C, g);
29
+ me(C, k);
30
+ } else if ((c == null ? void 0 : c.errno) == V) {
31
+ Q().logout(!1);
32
+ return;
30
33
  } else
31
- k.error("下载文件失败!");
34
+ g.error("下载文件失败!");
32
35
  });
33
36
  } catch (h) {
34
- console.error("下载失败:", h), k.error("文件下载失败,请稍后重试");
37
+ console.error("下载失败:", h), g.error("文件下载失败,请稍后重试");
35
38
  }
36
- }, me = ["xlsx", "xls", "csv", "txt"], fe = (l, w, e) => {
39
+ }, he = ["xlsx", "xls", "csv", "txt"], ve = (l, w, e) => {
37
40
  const h = w.split(".").pop();
38
- if (me.includes(h))
41
+ if (he.includes(h))
39
42
  console.log(l);
40
43
  else
41
- return k.error("文件类型不支持预览"), !1;
42
- const p = V(l.params, e);
43
- return D(l, p).then((r) => {
44
- if ((r == null ? void 0 : r.status) === I.SUCCESS && r.data) {
45
- const g = r.data.Content, c = atob(g), U = [];
46
- for (let C = 0; C < c.length; C++)
47
- U.push(c.charCodeAt(C));
44
+ return g.error("文件类型不支持预览"), !1;
45
+ const c = q(l.params, e);
46
+ return R(l, c).then((s) => {
47
+ if ((s == null ? void 0 : s.status) === D.SUCCESS && s.data) {
48
+ const k = s.data.Content, u = atob(k), b = [];
49
+ for (let C = 0; C < u.length; C++)
50
+ b.push(u.charCodeAt(C));
51
+ } else if ((s == null ? void 0 : s.errno) == V) {
52
+ Q().logout(!1);
53
+ return;
48
54
  } else
49
- k.error("文件预览失败!");
55
+ g.error("文件预览失败!");
50
56
  });
51
- }, he = { class: "flex items-center justify-between w-full" }, ve = { class: "w-35 mx-3" }, xe = { class: "mt-4 px-3" }, ye = { class: "flex items-center justify-between" }, we = { class: "flex items-center" }, Ce = { class: "flex items-center" }, _e = {
57
+ }, xe = { class: "flex items-center justify-between w-full" }, ye = { class: "w-35 mx-3" }, we = { class: "mt-4 px-3" }, Ce = { class: "flex items-center justify-between" }, _e = { class: "flex items-center" }, Se = { class: "flex items-center" }, ge = {
52
58
  key: 0,
53
59
  class: "mr-2"
54
60
  }, be = {
55
61
  key: 1,
56
62
  class: "flex items-center text-blue-500 hover:text-blue-700 mr-1 cursor-pointer"
57
- }, ke = ["onClick"], Ue = {
63
+ }, Ue = ["onClick"], ke = {
58
64
  key: 2,
59
65
  class: "flex items-center text-blue-500 hover:text-blue-700 mr-1 cursor-pointer"
60
- }, ge = ["onClick"], Se = { class: "flex items-center text-red-500 hover:text-red-700 cursor-pointer" }, Fe = ["onClick"], Ee = {
66
+ }, Fe = ["onClick"], Ee = { class: "flex items-center text-red-500 hover:text-red-700 cursor-pointer" }, Oe = ["onClick"], ze = {
61
67
  key: 0,
62
68
  class: "text-sm text-nowrap"
63
- }, Oe = { key: 0 }, ze = /* @__PURE__ */ X({
69
+ }, Le = { key: 0 }, Pe = /* @__PURE__ */ Z({
64
70
  __name: "uploadList",
65
71
  props: {
66
72
  autoUpload: { type: Boolean, default: !1 },
@@ -81,7 +87,7 @@ const pe = (l, w) => {
81
87
  },
82
88
  emits: ["update:file-list"],
83
89
  setup(l, { emit: w }) {
84
- const e = l, h = ae(), { errInfo: p } = h, r = P(e.fileList), E = P(), g = w, c = P(!1), U = M(() => {
90
+ const e = l, h = ie(), { errInfo: c } = h, s = L(e.fileList), U = L(), k = w, u = L(!1), b = K(() => {
85
91
  var t;
86
92
  return (t = e.fileExt) != null && t.length ? e.fileExt.map((o) => `.${o}`).join(",") : "";
87
93
  }), C = (t) => {
@@ -89,49 +95,49 @@ const pe = (l, w) => {
89
95
  if (e.fileExt && e.fileExt.length > 0) {
90
96
  const a = ((o = t.name.split(".").pop()) == null ? void 0 : o.toLowerCase()) || "";
91
97
  if (!e.fileExt.includes(a))
92
- return k.error("文件类型不支持"), !1;
98
+ return g.error("文件类型不支持"), !1;
93
99
  }
94
- return t.size / 1024 / 1024 > e.maxFileSize ? (k.error(`文件大小超过 ${e.maxFileSize}MB 限制`), !1) : e.maxCount > 1 && r.value.length >= e.maxCount ? (k.error(`最多上传 ${e.maxCount} 个文件`), !1) : (c.value = !1, e.autoUpload);
95
- }, S = (t) => {
100
+ return t.size / 1024 / 1024 > e.maxFileSize ? (g.error(`文件大小超过 ${e.maxFileSize}MB 限制`), !1) : e.maxCount > 1 && s.value.length >= e.maxCount ? (g.error(`最多上传 ${e.maxCount} 个文件`), !1) : (u.value = !1, e.autoUpload);
101
+ }, F = (t) => {
96
102
  t.forEach((o) => {
97
103
  const a = o;
98
- a.fileName || (a.fileName = a.name), e.parentPath && (a.name = R.join("/", e.parentPath, a.fileName)), a.params || (a.params = {}), a.params.FileKey = a.name, a.status = s.Pending;
104
+ a.fileName || (a.fileName = a.name), e.parentPath && (a.name = M.join("/", e.parentPath, a.fileName)), a.params || (a.params = {}), a.params.FileKey = a.name, a.status = i.Pending;
99
105
  });
100
- }, Q = M(() => ({
101
- accept: U.value,
106
+ }, G = K(() => ({
107
+ accept: b.value,
102
108
  multiple: !0,
103
- fileList: r.value,
104
- "onUpdate:fileList": S,
109
+ fileList: s.value,
110
+ "onUpdate:fileList": F,
105
111
  beforeUpload: C,
106
112
  listType: "text",
107
113
  maxCount: e.maxCount,
108
114
  showUploadList: !1,
109
115
  onChange: (t) => {
110
- e.autoUpload || (r.value = t.fileList);
116
+ e.autoUpload || (s.value = t.fileList);
111
117
  }
112
118
  }));
113
- $(
119
+ P(
114
120
  () => e.fileList,
115
121
  (t) => {
116
- r.value = t;
122
+ s.value = t;
117
123
  },
118
124
  { deep: !0, immediate: !0 }
119
- ), $(
120
- () => r.value,
125
+ ), P(
126
+ () => s.value,
121
127
  (t) => {
122
- g("update:file-list", t);
128
+ k("update:file-list", t);
123
129
  },
124
130
  { deep: !0 }
125
- ), $(
131
+ ), P(
126
132
  () => e.parentPath,
127
133
  (t) => {
128
- t && r.value.forEach((o) => {
129
- o.params.FileKey = R.join("/", t, o.fileName);
134
+ t && s.value.forEach((o) => {
135
+ o.params.FileKey = M.join("/", t, o.fileName);
130
136
  });
131
137
  }
132
138
  );
133
139
  const B = (t) => {
134
- const o = r.value[t].minioFile, a = {
140
+ const o = s.value[t].minioFile, a = {
135
141
  api: e.downloadUrl.api,
136
142
  authorize: e.downloadUrl.authorize,
137
143
  url: e.downloadUrl.url,
@@ -141,11 +147,11 @@ const pe = (l, w) => {
141
147
  }
142
148
  }
143
149
  };
144
- de(a);
145
- }, q = (t) => {
150
+ fe(a);
151
+ }, H = (t) => {
146
152
  t.minioFile && (t.minioFile.Status = t.status);
147
153
  }, T = (t) => {
148
- const o = r.value[t].minioFile, a = {
154
+ const o = s.value[t].minioFile, a = {
149
155
  api: e.previewUrl.api,
150
156
  authorize: e.previewUrl.authorize,
151
157
  url: e.previewUrl.url,
@@ -155,69 +161,69 @@ const pe = (l, w) => {
155
161
  }
156
162
  }
157
163
  };
158
- fe(a, o.FileName);
164
+ ve(a, o.FileName);
159
165
  }, N = (t) => {
160
- r.value.splice(t, 1), c.value = !1;
161
- }, G = (t, o) => {
162
- if (o === s.Pending) {
166
+ s.value.splice(t, 1), u.value = !1;
167
+ }, J = (t, o) => {
168
+ if (o === i.Pending) {
163
169
  N(t);
164
170
  return;
165
171
  }
166
- c.value = !0;
167
- }, H = () => {
172
+ u.value = !0;
173
+ }, W = () => {
168
174
  const t = e.fileExt && e.fileExt.length && e.fileExtTip ? `文件必须为 ${e.fileExt.join("/")}` : "", o = e.maxFileSize !== 0 && e.maxFileSizeTip ? `单文件最大 ${e.maxFileSize}MB` : "", a = e.maxCount !== 0 && e.maxCountTip ? `最多 ${e.maxCount} 个文件` : "";
169
175
  return [o, t, a].filter(Boolean).join(",");
170
- }, J = (t) => {
176
+ }, X = (t) => {
171
177
  switch (t) {
172
- case s.Uploading:
178
+ case i.Uploading:
173
179
  return "blue";
174
- case s.Success:
180
+ case i.Success:
175
181
  return "green";
176
- case s.Error:
182
+ case i.Error:
177
183
  return "red";
178
- case s.Online:
184
+ case i.Online:
179
185
  return "green";
180
- case s.Offline:
186
+ case i.Offline:
181
187
  return "pink";
182
188
  default:
183
189
  return "cyan";
184
190
  }
185
- }, W = (t) => {
191
+ }, Y = (t) => {
186
192
  switch (t) {
187
- case s.Uploading:
193
+ case i.Uploading:
188
194
  return "上传中";
189
- case s.Success:
195
+ case i.Success:
190
196
  return "上传完成";
191
- case s.Error:
197
+ case i.Error:
192
198
  return "上传失败";
193
- case s.Online:
199
+ case i.Online:
194
200
  return "在线";
195
- case s.Offline:
201
+ case i.Offline:
196
202
  return "已下线";
197
203
  default:
198
204
  return "待上传";
199
205
  }
200
206
  };
201
207
  return (t, o) => {
202
- var j, K;
203
- const a = Y("auth");
208
+ var j, I;
209
+ const a = ee("auth");
204
210
  return m(), v("div", {
205
- class: O(["w-full border border-solid border-gray-100 mt-1 rounded-md py-5", [(j = n(p)) == null ? void 0 : j.errClass]])
211
+ class: O(["w-full border border-solid border-gray-100 mt-1 rounded-md py-5", [(j = n(c)) == null ? void 0 : j.errClass]])
206
212
  }, [
207
- f("div", he, [
208
- f("div", ve, [
209
- x((m(), Z(n(ie), ee({
213
+ f("div", xe, [
214
+ f("div", ye, [
215
+ x((m(), te(n(le), oe({
210
216
  ref_key: "fileUploader",
211
- ref: E
212
- }, Q.value), {
217
+ ref: U
218
+ }, G.value), {
213
219
  default: y(() => {
214
- var i;
220
+ var r;
215
221
  return [
216
- u(n(ne), {
217
- class: O([((i = n(p)) == null ? void 0 : i.errClass) + "-text"])
222
+ p(n(se), {
223
+ class: O([((r = n(c)) == null ? void 0 : r.errClass) + "-text"])
218
224
  }, {
219
225
  default: y(() => o[2] || (o[2] = [
220
- F("选择文件")
226
+ E("选择文件")
221
227
  ])),
222
228
  _: 1,
223
229
  __: [2]
@@ -230,53 +236,53 @@ const pe = (l, w) => {
230
236
  ])
231
237
  ]),
232
238
  f("div", {
233
- class: O(["flex-1 text-sm text-gray-500", [((K = n(p)) == null ? void 0 : K.errClass) + "-text"]])
234
- }, A(H()), 3)
239
+ class: O(["flex-1 text-sm text-gray-500", [((I = n(c)) == null ? void 0 : I.errClass) + "-text"]])
240
+ }, $(W()), 3)
235
241
  ]),
236
- f("div", xe, [
237
- (m(!0), v(te, null, oe(r.value, (i, _) => (m(), v("div", {
242
+ f("div", we, [
243
+ (m(!0), v(ne, null, ae(s.value, (r, _) => (m(), v("div", {
238
244
  key: _,
239
245
  class: "mb-2 pb-1"
240
246
  }, [
241
- f("div", ye, [
242
- f("div", we, [
247
+ f("div", Ce, [
248
+ f("div", _e, [
243
249
  f("span", {
244
- class: O(["text-gray-700 mr-2", [i.status == n(s).Offline ? "line-through" : ""]])
245
- }, A(i.fileName ?? i.name), 3),
250
+ class: O(["text-gray-700 mr-2", [r.status == n(i).Offline ? "line-through" : ""]])
251
+ }, $(r.fileName ?? r.name), 3),
246
252
  f("span", null, [
247
- u(n(re), {
248
- color: J(i.status)
253
+ p(n(ce), {
254
+ color: X(r.status)
249
255
  }, {
250
256
  default: y(() => [
251
- F(A(W(i.status)), 1)
257
+ E($(Y(r.status)), 1)
252
258
  ]),
253
259
  _: 2
254
260
  }, 1032, ["color"])
255
261
  ])
256
262
  ]),
257
- f("div", Ce, [
258
- t.showOnlineSwitch && (i.status == n(s).Online || i.status == n(s).Offline) ? (m(), v("div", _e, [
259
- u(n(z), { title: "上线或下线" }, {
263
+ f("div", Se, [
264
+ t.showOnlineSwitch && (r.status == n(i).Online || r.status == n(i).Offline) ? (m(), v("div", ge, [
265
+ p(n(z), { title: "上线或下线" }, {
260
266
  default: y(() => [
261
- x(u(n(se), {
262
- checked: i.status,
263
- "onUpdate:checked": (d) => i.status = d,
267
+ x(p(n(re), {
268
+ checked: r.status,
269
+ "onUpdate:checked": (d) => r.status = d,
264
270
  data: [
265
- { label: "上线", value: n(s).Online },
266
- { label: "下线", value: n(s).Offline }
271
+ { label: "上线", value: n(i).Online },
272
+ { label: "下线", value: n(i).Offline }
267
273
  ],
268
- onChange: (d) => q(i)
274
+ onChange: (d) => H(r)
269
275
  }, null, 8, ["checked", "onUpdate:checked", "data", "onChange"]), [
270
276
  [a, { role: ["Super", "Admin"], permit: ":uploadlist:online" }]
271
277
  ])
272
278
  ]),
273
279
  _: 2
274
280
  }, 1024)
275
- ])) : b("", !0),
276
- t.downloadUrl && (i.status == n(s).Online || i.status == n(s).Offline) ? (m(), v("div", be, [
277
- u(n(z), { title: "下载" }, {
281
+ ])) : S("", !0),
282
+ t.downloadUrl && (r.status == n(i).Online || r.status == n(i).Offline) ? (m(), v("div", be, [
283
+ p(n(z), { title: "下载" }, {
278
284
  default: y(() => [
279
- x(u(n(L), {
285
+ x(p(n(A), {
280
286
  icon: "icon-download",
281
287
  clickable: "",
282
288
  onClick: (d) => B(_)
@@ -288,18 +294,18 @@ const pe = (l, w) => {
288
294
  class: "mr-2 text-sm text-nowrap",
289
295
  onClick: (d) => B(_)
290
296
  }, o[3] || (o[3] = [
291
- F("下载")
292
- ]), 8, ke)), [
297
+ E("下载")
298
+ ]), 8, Ue)), [
293
299
  [a, { role: ["Super", "Admin"], permit: ":uploadlist:download" }]
294
- ]) : b("", !0)
300
+ ]) : S("", !0)
295
301
  ]),
296
302
  _: 2
297
303
  }, 1024)
298
- ])) : b("", !0),
299
- t.previewUrl && (i.status == n(s).Online || i.status == n(s).Offline) ? (m(), v("div", Ue, [
300
- u(n(z), { title: "预览" }, {
304
+ ])) : S("", !0),
305
+ t.previewUrl && (r.status == n(i).Online || r.status == n(i).Offline) ? (m(), v("div", ke, [
306
+ p(n(z), { title: "预览" }, {
301
307
  default: y(() => [
302
- x(u(n(L), {
308
+ x(p(n(A), {
303
309
  icon: "icon-eye",
304
310
  clickable: "",
305
311
  onClick: (d) => T(_)
@@ -311,45 +317,45 @@ const pe = (l, w) => {
311
317
  class: "mr-2 text-sm text-nowrap",
312
318
  onClick: (d) => T(_)
313
319
  }, o[4] || (o[4] = [
314
- F("预览")
315
- ]), 8, ge)), [
320
+ E("预览")
321
+ ]), 8, Fe)), [
316
322
  [a, { role: ["Super", "Admin"], permit: ":uploadlist:preview" }]
317
- ]) : b("", !0)
323
+ ]) : S("", !0)
318
324
  ]),
319
325
  _: 2
320
326
  }, 1024)
321
- ])) : b("", !0),
322
- f("div", Se, [
323
- u(n(le), {
324
- open: c.value,
325
- "onUpdate:open": o[0] || (o[0] = (d) => c.value = d),
327
+ ])) : S("", !0),
328
+ f("div", Ee, [
329
+ p(n(ue), {
330
+ open: u.value,
331
+ "onUpdate:open": o[0] || (o[0] = (d) => u.value = d),
326
332
  cancelText: "否",
327
333
  okText: "是",
328
334
  title: "确定删除该文件吗?",
329
335
  okButtonProps: { size: "small" },
330
336
  cancelButtonProps: { size: "small" },
331
337
  onConfirm: (d) => N(_),
332
- onCancel: o[1] || (o[1] = (d) => c.value = !1)
338
+ onCancel: o[1] || (o[1] = (d) => u.value = !1)
333
339
  }, {
334
340
  default: y(() => [
335
- u(n(z), { title: "删除" }, {
341
+ p(n(z), { title: "删除" }, {
336
342
  default: y(() => [
337
343
  f("div", {
338
- onClick: (d) => G(_, i.status)
344
+ onClick: (d) => J(_, r.status)
339
345
  }, [
340
- x(u(n(L), {
346
+ x(p(n(A), {
341
347
  icon: "icon-new",
342
348
  angle: 45,
343
349
  clickable: ""
344
350
  }, null, 512), [
345
351
  [a, { role: ["Super", "Admin"], permit: ":uploadlist:delete" }]
346
352
  ]),
347
- t.showActionText ? x((m(), v("span", Ee, o[5] || (o[5] = [
348
- F("删除")
353
+ t.showActionText ? x((m(), v("span", ze, o[5] || (o[5] = [
354
+ E("删除")
349
355
  ]))), [
350
356
  [a, { role: ["Super", "Admin"], permit: ":uploadlist:delete" }]
351
- ]) : b("", !0)
352
- ], 8, Fe)
357
+ ]) : S("", !0)
358
+ ], 8, Oe)
353
359
  ]),
354
360
  _: 2
355
361
  }, 1024)
@@ -359,24 +365,24 @@ const pe = (l, w) => {
359
365
  ])
360
366
  ])
361
367
  ]),
362
- i.status !== n(s).Online && i.status !== n(s).Offline && i.status !== n(s).Success ? (m(), v("div", Oe, [
363
- u(n(ce), {
364
- percent: i.percent,
368
+ r.status !== n(i).Online && r.status !== n(i).Offline && r.status !== n(i).Success ? (m(), v("div", Le, [
369
+ p(n(pe), {
370
+ percent: r.percent,
365
371
  "stroke-width": 2,
366
372
  "show-info": !1,
367
373
  style: { height: "2px" }
368
374
  }, null, 8, ["percent"])
369
- ])) : b("", !0)
375
+ ])) : S("", !0)
370
376
  ]))), 128))
371
377
  ])
372
378
  ], 2);
373
379
  };
374
380
  }
375
- }), Ve = /* @__PURE__ */ ue(ze, [["__scopeId", "data-v-7d076856"]]);
381
+ }), qe = /* @__PURE__ */ de(Pe, [["__scopeId", "data-v-7d076856"]]);
376
382
  export {
377
- me as C,
378
- Ve as U,
379
- de as a,
380
- pe as d,
381
- fe as p
383
+ he as C,
384
+ qe as U,
385
+ fe as a,
386
+ me as d,
387
+ ve as p
382
388
  };
@@ -229,8 +229,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
229
229
  "onUpdate:iconIndex"?: ((...args: any[]) => any) | undefined;
230
230
  }>, {
231
231
  fontsize: string;
232
- icons: string[];
233
232
  size: string | String[];
233
+ icons: string[];
234
234
  className: string;
235
235
  iconIndex: number;
236
236
  clickable: boolean;
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as F, defineAsyncComponent as M, ref as m, watch as V, onMounted as J, createElementBlock as x, openBlock as p, Fragment as K, createElementVNode as v, createVNode as _, toDisplayString as W, unref as i, createBlock as P, withKeys as f, normalizeClass as N, withModifiers as w, withCtx as z, createCommentVNode as L } from "vue";
2
2
  import "ant-design-vue";
3
- import { _ as q } from "../../assets/modules/toolIcon-XOgjdQdO.js";
3
+ import { _ as q } from "../../assets/modules/toolIcon-Y7Lpx2Hb.js";
4
4
  import "@skyfox2000/fapi";
5
- import "../../assets/modules/uploadList-BedljASx.js";
5
+ import "../../assets/modules/uploadList-Bh2SzZzX.js";
6
6
  import "@skyfox2000/microbase";
7
7
  import "vue-m-message";
8
8
  import "async-validator";
9
9
  import "dayjs";
10
- import { _ as D } from "../../assets/modules/index-BOYtm8ib.js";
10
+ import { _ as D } from "../../assets/modules/index-CAtotNY6.js";
11
11
  import "vue-draggable-next";
12
12
  const h = async (s) => window.ace ? window.ace : new Promise((l, t) => {
13
13
  const o = document.createElement("script");
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as f, ref as d, watch as _, onMounted as v, resolveComponent as h, createBlock as o, openBlock as t, withCtx as s, createElementVNode as C, normalizeClass as x, createVNode as w, KeepAlive as y, unref as n, resolveDynamicComponent as I } from "vue";
2
- import { _ as g } from "../../assets/modules/baseLayout-B9dSxkYo.js";
3
- import { ad as A, a as S } from "../../assets/modules/uploadList-BedljASx.js";
2
+ import { _ as g } from "../../assets/modules/baseLayout-DIEq13qJ.js";
3
+ import { ae as A, a as S } from "../../assets/modules/uploadList-Bh2SzZzX.js";
4
4
  import "@skyfox2000/microbase";
5
5
  import "@skyfox2000/fapi";
6
6
  import b from "vue-m-message";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, createBlock as p, openBlock as m, unref as r, withCtx as e, createVNode as n, createTextVNode as a } from "vue";
2
- import { r as s } from "../../assets/modules/uploadList-BedljASx.js";
2
+ import { r as s } from "../../assets/modules/uploadList-Bh2SzZzX.js";
3
3
  import "@skyfox2000/microbase";
4
4
  import "@skyfox2000/fapi";
5
5
  import "vue-m-message";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, createBlock as p, openBlock as m, unref as r, withCtx as e, createVNode as n, createTextVNode as a } from "vue";
2
- import { r as s } from "../../assets/modules/uploadList-BedljASx.js";
2
+ import { r as s } from "../../assets/modules/uploadList-Bh2SzZzX.js";
3
3
  import "@skyfox2000/microbase";
4
4
  import "@skyfox2000/fapi";
5
5
  import "vue-m-message";