@skyfox2000/webui 1.3.15 → 1.3.17
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/package.json +1 -1
- package/src/components/form/select/index.vue +27 -14
- package/src/components/layout/page/baseLayout.vue +44 -0
- package/src/components/layout/page/basicLayout.vue +11 -44
- package/src/components/layout/page/menuLayout.vue +35 -0
- package/src/typings/option.d.ts +2 -2
- package/src/utils/data.ts +5 -1
- package/src/utils/options.ts +2 -2
- package/vite.config.ts +1 -0
- package/lib/AceEditor.d.ts +0 -1
- package/lib/BasicLayout.d.ts +0 -1
- package/lib/Error403.d.ts +0 -1
- package/lib/Error404.d.ts +0 -1
- package/lib/ExcelForm.d.ts +0 -1
- package/lib/UploadForm.d.ts +0 -1
- package/lib/assets/modules/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/lib/assets/modules/file-upload-D8Ln4vVV.js +0 -204
- package/lib/assets/modules/index-B2AK2Li9.js +0 -380
- package/lib/assets/modules/index-BnDOMkVL.js +0 -109
- package/lib/assets/modules/index-C8qhSdva.js +0 -112
- package/lib/assets/modules/menuTabs-FUxE-a2D.js +0 -671
- package/lib/assets/modules/toolIcon-bJ_WgHLU.js +0 -50
- package/lib/assets/modules/uploadList-BAX79qeV.js +0 -382
- package/lib/assets/modules/uploadList-BNkHE3fR.js +0 -2394
- package/lib/components/common/alert/index.vue.d.ts +0 -13
- package/lib/components/common/button/index.vue.d.ts +0 -41
- package/lib/components/common/icon/appicon.vue.d.ts +0 -11
- package/lib/components/common/icon/fullscreen.vue.d.ts +0 -3
- package/lib/components/common/icon/helper.vue.d.ts +0 -23
- package/lib/components/common/icon/index.vue.d.ts +0 -243
- package/lib/components/common/icon/layoutIcon.vue.d.ts +0 -43
- package/lib/components/common/icon/projectIcon.vue.d.ts +0 -59
- package/lib/components/common/icon/toolIcon.vue.d.ts +0 -43
- package/lib/components/common/index.d.ts +0 -22
- package/lib/components/common/loading/index.vue.d.ts +0 -3
- package/lib/components/common/tooltip/index.vue.d.ts +0 -21
- package/lib/components/content/dialog/index.vue.d.ts +0 -35
- package/lib/components/content/drawer/index.vue.d.ts +0 -28
- package/lib/components/content/form/formItem.vue.d.ts +0 -28
- package/lib/components/content/form/index.vue.d.ts +0 -25
- package/lib/components/content/index.d.ts +0 -22
- package/lib/components/content/search/index.vue.d.ts +0 -32
- package/lib/components/content/search/searchItem.vue.d.ts +0 -23
- package/lib/components/content/table/index.vue.d.ts +0 -127
- package/lib/components/content/table/tableOperate.vue.d.ts +0 -18
- package/lib/components/content/toolbar/icontool.vue.d.ts +0 -7
- package/lib/components/content/toolbar/index.vue.d.ts +0 -18
- package/lib/components/content/tree/index.vue.d.ts +0 -46
- package/lib/components/form/aceEditor/aceConfig.d.ts +0 -8
- package/lib/components/form/autoComplete/index.vue.d.ts +0 -101
- package/lib/components/form/cascader/index.vue.d.ts +0 -80
- package/lib/components/form/checkbox/index.vue.d.ts +0 -100
- package/lib/components/form/datePicker/index.vue.d.ts +0 -6
- package/lib/components/form/index.d.ts +0 -41
- package/lib/components/form/input/index.vue.d.ts +0 -29
- package/lib/components/form/input/inputIcon.vue.d.ts +0 -10
- package/lib/components/form/input/inputNumber.vue.d.ts +0 -3
- package/lib/components/form/input/inputPassword.vue.d.ts +0 -3
- package/lib/components/form/propEditor/index.vue.d.ts +0 -15
- package/lib/components/form/radio/index.vue.d.ts +0 -105
- package/lib/components/form/radio/radioStatus.vue.d.ts +0 -31
- package/lib/components/form/rangePicker/index.vue.d.ts +0 -16
- package/lib/components/form/select/index.vue.d.ts +0 -110
- package/lib/components/form/switch/index.vue.d.ts +0 -76
- package/lib/components/form/textarea/index.vue.d.ts +0 -3
- package/lib/components/form/timePicker/index.vue.d.ts +0 -6
- package/lib/components/form/transfer/index.vue.d.ts +0 -38
- package/lib/components/form/transfer/transferTable.vue.d.ts +0 -38
- package/lib/components/form/treeSelect/index.vue.d.ts +0 -47
- package/lib/components/form/upload/uploadList.vue.d.ts +0 -488
- package/lib/components/index.d.ts +0 -4
- package/lib/components/layout/breadcrumb/index.vue.d.ts +0 -3
- package/lib/components/layout/content/index.vue.d.ts +0 -22
- package/lib/components/layout/datetime/index.vue.d.ts +0 -3
- package/lib/components/layout/header/headerExits.vue.d.ts +0 -3
- package/lib/components/layout/header/index.vue.d.ts +0 -3
- package/lib/components/layout/header/user.vue.d.ts +0 -3
- package/lib/components/layout/index.d.ts +0 -14
- package/lib/components/layout/menu/index.vue.d.ts +0 -6
- package/lib/components/layout/menu/menuTabs.vue.d.ts +0 -3
- package/lib/const/options.d.ts +0 -32
- package/lib/directives/enter-submit.d.ts +0 -4
- package/lib/directives/index.d.ts +0 -2
- package/lib/directives/permission.d.ts +0 -5
- package/lib/es/AceEditor/index.js +0 -167
- package/lib/es/BasicLayout/index.js +0 -101
- package/lib/es/Error403/index.js +0 -39
- package/lib/es/Error404/index.js +0 -39
- package/lib/es/ExcelForm/index.js +0 -491
- package/lib/es/UploadForm/index.js +0 -110
- package/lib/index.d.ts +0 -46
- package/lib/router/index.d.ts +0 -15
- package/lib/stores/appInfo.d.ts +0 -31
- package/lib/stores/hostInfo.d.ts +0 -11
- package/lib/stores/pageInfo.d.ts +0 -18
- package/lib/stores/pinia.d.ts +0 -3
- package/lib/stores/settingInfo.d.ts +0 -8
- package/lib/stores/userInfo.d.ts +0 -25
- package/lib/typings/data.d.ts +0 -80
- package/lib/typings/form.d.ts +0 -206
- package/lib/typings/menu.d.ts +0 -7
- package/lib/typings/option.d.ts +0 -209
- package/lib/typings/page.d.ts +0 -70
- package/lib/typings/table.d.ts +0 -181
- package/lib/typings/tools.d.ts +0 -130
- package/lib/typings/tree.d.ts +0 -72
- package/lib/typings/upload.d.ts +0 -161
- package/lib/typings/urls.d.ts +0 -69
- package/lib/utils/cache.d.ts +0 -23
- package/lib/utils/data.d.ts +0 -6
- package/lib/utils/download.d.ts +0 -6
- package/lib/utils/eventbus.d.ts +0 -16
- package/lib/utils/excel-preview.d.ts +0 -24
- package/lib/utils/excel-view.d.ts +0 -25
- package/lib/utils/export-table.d.ts +0 -12
- package/lib/utils/file-upload.d.ts +0 -17
- package/lib/utils/form-csv.d.ts +0 -18
- package/lib/utils/form-excel.d.ts +0 -36
- package/lib/utils/form-validate.d.ts +0 -29
- package/lib/utils/form.d.ts +0 -9
- package/lib/utils/icon-loader.d.ts +0 -125
- package/lib/utils/isEmpty.d.ts +0 -1
- package/lib/utils/main-openapis.d.ts +0 -8
- package/lib/utils/menu.d.ts +0 -6
- package/lib/utils/options.d.ts +0 -7
- package/lib/utils/page.d.ts +0 -30
- package/lib/utils/table.d.ts +0 -21
- package/lib/utils/tools.d.ts +0 -18
- package/lib/utils/tree.d.ts +0 -3
- package/lib/vite-env.d.ts +0 -8
- package/lib/webui.css +0 -1
- package/lib/webui.es.js +0 -2345
|
@@ -1,382 +0,0 @@
|
|
|
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-BnDOMkVL.js";
|
|
3
|
-
import { a as z, _ as L } from "./toolIcon-bJ_WgHLU.js";
|
|
4
|
-
import { httpPost as D, ResStatus as I } from "@skyfox2000/fapi";
|
|
5
|
-
import { s as ae, _ as se } from "./uploadList-BNkHE3fR.js";
|
|
6
|
-
import { p as R, U as s } from "./file-upload-D8Ln4vVV.js";
|
|
7
|
-
import { combineParams as V } from "@skyfox2000/microbase";
|
|
8
|
-
import k from "vue-m-message";
|
|
9
|
-
import "async-validator";
|
|
10
|
-
import "dayjs";
|
|
11
|
-
import { Upload as ie, Tag as re, Popconfirm as le, Progress as ce } from "ant-design-vue";
|
|
12
|
-
import "vue-draggable-next";
|
|
13
|
-
import { _ as ue } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
-
const pe = (l, w) => {
|
|
15
|
-
const e = document.createElement("a"), h = URL.createObjectURL(l);
|
|
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) => {
|
|
18
|
-
try {
|
|
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
|
|
28
|
-
});
|
|
29
|
-
pe(C, g);
|
|
30
|
-
} else
|
|
31
|
-
k.error("下载文件失败!");
|
|
32
|
-
});
|
|
33
|
-
} catch (h) {
|
|
34
|
-
console.error("下载失败:", h), k.error("文件下载失败,请稍后重试");
|
|
35
|
-
}
|
|
36
|
-
}, me = ["xlsx", "xls", "csv", "txt"], fe = (l, w, e) => {
|
|
37
|
-
const h = w.split(".").pop();
|
|
38
|
-
if (me.includes(h))
|
|
39
|
-
console.log(l);
|
|
40
|
-
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));
|
|
48
|
-
} else
|
|
49
|
-
k.error("文件预览失败!");
|
|
50
|
-
});
|
|
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 = {
|
|
52
|
-
key: 0,
|
|
53
|
-
class: "mr-2"
|
|
54
|
-
}, be = {
|
|
55
|
-
key: 1,
|
|
56
|
-
class: "flex items-center text-blue-500 hover:text-blue-700 mr-1 cursor-pointer"
|
|
57
|
-
}, ke = ["onClick"], Ue = {
|
|
58
|
-
key: 2,
|
|
59
|
-
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 = {
|
|
61
|
-
key: 0,
|
|
62
|
-
class: "text-sm text-nowrap"
|
|
63
|
-
}, Oe = { key: 0 }, ze = /* @__PURE__ */ X({
|
|
64
|
-
__name: "uploadList",
|
|
65
|
-
props: {
|
|
66
|
-
autoUpload: { type: Boolean, default: !1 },
|
|
67
|
-
uploadUrl: {},
|
|
68
|
-
downloadUrl: {},
|
|
69
|
-
previewUrl: {},
|
|
70
|
-
fileList: { default: () => [] },
|
|
71
|
-
placeholder: { default: "" },
|
|
72
|
-
fileExt: {},
|
|
73
|
-
maxFileSize: { default: 20 },
|
|
74
|
-
maxCount: { default: 5 },
|
|
75
|
-
maxCountTip: { type: Boolean, default: !1 },
|
|
76
|
-
maxFileSizeTip: { type: Boolean, default: !0 },
|
|
77
|
-
fileExtTip: { type: Boolean, default: !0 },
|
|
78
|
-
parentPath: {},
|
|
79
|
-
showActionText: { type: Boolean, default: !0 },
|
|
80
|
-
showOnlineSwitch: { type: Boolean, default: !1 }
|
|
81
|
-
},
|
|
82
|
-
emits: ["update:file-list"],
|
|
83
|
-
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(() => {
|
|
85
|
-
var t;
|
|
86
|
-
return (t = e.fileExt) != null && t.length ? e.fileExt.map((o) => `.${o}`).join(",") : "";
|
|
87
|
-
}), C = (t) => {
|
|
88
|
-
var o;
|
|
89
|
-
if (e.fileExt && e.fileExt.length > 0) {
|
|
90
|
-
const a = ((o = t.name.split(".").pop()) == null ? void 0 : o.toLowerCase()) || "";
|
|
91
|
-
if (!e.fileExt.includes(a))
|
|
92
|
-
return k.error("文件类型不支持"), !1;
|
|
93
|
-
}
|
|
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) => {
|
|
96
|
-
t.forEach((o) => {
|
|
97
|
-
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;
|
|
99
|
-
});
|
|
100
|
-
}, Q = M(() => ({
|
|
101
|
-
accept: U.value,
|
|
102
|
-
multiple: !0,
|
|
103
|
-
fileList: r.value,
|
|
104
|
-
"onUpdate:fileList": S,
|
|
105
|
-
beforeUpload: C,
|
|
106
|
-
listType: "text",
|
|
107
|
-
maxCount: e.maxCount,
|
|
108
|
-
showUploadList: !1,
|
|
109
|
-
onChange: (t) => {
|
|
110
|
-
e.autoUpload || (r.value = t.fileList);
|
|
111
|
-
}
|
|
112
|
-
}));
|
|
113
|
-
$(
|
|
114
|
-
() => e.fileList,
|
|
115
|
-
(t) => {
|
|
116
|
-
r.value = t;
|
|
117
|
-
},
|
|
118
|
-
{ deep: !0, immediate: !0 }
|
|
119
|
-
), $(
|
|
120
|
-
() => r.value,
|
|
121
|
-
(t) => {
|
|
122
|
-
g("update:file-list", t);
|
|
123
|
-
},
|
|
124
|
-
{ deep: !0 }
|
|
125
|
-
), $(
|
|
126
|
-
() => e.parentPath,
|
|
127
|
-
(t) => {
|
|
128
|
-
t && r.value.forEach((o) => {
|
|
129
|
-
o.params.FileKey = R.join("/", t, o.fileName);
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
);
|
|
133
|
-
const B = (t) => {
|
|
134
|
-
const o = r.value[t].minioFile, a = {
|
|
135
|
-
api: e.downloadUrl.api,
|
|
136
|
-
authorize: e.downloadUrl.authorize,
|
|
137
|
-
url: e.downloadUrl.url,
|
|
138
|
-
params: {
|
|
139
|
-
Query: {
|
|
140
|
-
FileKey: o.Key
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
};
|
|
144
|
-
de(a);
|
|
145
|
-
}, q = (t) => {
|
|
146
|
-
t.minioFile && (t.minioFile.Status = t.status);
|
|
147
|
-
}, T = (t) => {
|
|
148
|
-
const o = r.value[t].minioFile, a = {
|
|
149
|
-
api: e.previewUrl.api,
|
|
150
|
-
authorize: e.previewUrl.authorize,
|
|
151
|
-
url: e.previewUrl.url,
|
|
152
|
-
params: {
|
|
153
|
-
Query: {
|
|
154
|
-
FileKey: o.Key
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
};
|
|
158
|
-
fe(a, o.FileName);
|
|
159
|
-
}, N = (t) => {
|
|
160
|
-
r.value.splice(t, 1), c.value = !1;
|
|
161
|
-
}, G = (t, o) => {
|
|
162
|
-
if (o === s.Pending) {
|
|
163
|
-
N(t);
|
|
164
|
-
return;
|
|
165
|
-
}
|
|
166
|
-
c.value = !0;
|
|
167
|
-
}, H = () => {
|
|
168
|
-
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
|
-
return [o, t, a].filter(Boolean).join(",");
|
|
170
|
-
}, J = (t) => {
|
|
171
|
-
switch (t) {
|
|
172
|
-
case s.Uploading:
|
|
173
|
-
return "blue";
|
|
174
|
-
case s.Success:
|
|
175
|
-
return "green";
|
|
176
|
-
case s.Error:
|
|
177
|
-
return "red";
|
|
178
|
-
case s.Online:
|
|
179
|
-
return "green";
|
|
180
|
-
case s.Offline:
|
|
181
|
-
return "pink";
|
|
182
|
-
default:
|
|
183
|
-
return "cyan";
|
|
184
|
-
}
|
|
185
|
-
}, W = (t) => {
|
|
186
|
-
switch (t) {
|
|
187
|
-
case s.Uploading:
|
|
188
|
-
return "上传中";
|
|
189
|
-
case s.Success:
|
|
190
|
-
return "上传完成";
|
|
191
|
-
case s.Error:
|
|
192
|
-
return "上传失败";
|
|
193
|
-
case s.Online:
|
|
194
|
-
return "在线";
|
|
195
|
-
case s.Offline:
|
|
196
|
-
return "已下线";
|
|
197
|
-
default:
|
|
198
|
-
return "待上传";
|
|
199
|
-
}
|
|
200
|
-
};
|
|
201
|
-
return (t, o) => {
|
|
202
|
-
var j, K;
|
|
203
|
-
const a = Y("auth");
|
|
204
|
-
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]])
|
|
206
|
-
}, [
|
|
207
|
-
f("div", he, [
|
|
208
|
-
f("div", ve, [
|
|
209
|
-
x((m(), Z(n(ie), ee({
|
|
210
|
-
ref_key: "fileUploader",
|
|
211
|
-
ref: E
|
|
212
|
-
}, Q.value), {
|
|
213
|
-
default: y(() => {
|
|
214
|
-
var i;
|
|
215
|
-
return [
|
|
216
|
-
u(n(ne), {
|
|
217
|
-
class: O([((i = n(p)) == null ? void 0 : i.errClass) + "-text"])
|
|
218
|
-
}, {
|
|
219
|
-
default: y(() => o[2] || (o[2] = [
|
|
220
|
-
F("选择文件")
|
|
221
|
-
])),
|
|
222
|
-
_: 1,
|
|
223
|
-
__: [2]
|
|
224
|
-
}, 8, ["class"])
|
|
225
|
-
];
|
|
226
|
-
}),
|
|
227
|
-
_: 1
|
|
228
|
-
}, 16)), [
|
|
229
|
-
[a, { role: ["Super", "Admin"], permit: ":uploadlist:upload" }]
|
|
230
|
-
])
|
|
231
|
-
]),
|
|
232
|
-
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)
|
|
235
|
-
]),
|
|
236
|
-
f("div", xe, [
|
|
237
|
-
(m(!0), v(te, null, oe(r.value, (i, _) => (m(), v("div", {
|
|
238
|
-
key: _,
|
|
239
|
-
class: "mb-2 pb-1"
|
|
240
|
-
}, [
|
|
241
|
-
f("div", ye, [
|
|
242
|
-
f("div", we, [
|
|
243
|
-
f("span", {
|
|
244
|
-
class: O(["text-gray-700 mr-2", [i.status == n(s).Offline ? "line-through" : ""]])
|
|
245
|
-
}, A(i.fileName ?? i.name), 3),
|
|
246
|
-
f("span", null, [
|
|
247
|
-
u(n(re), {
|
|
248
|
-
color: J(i.status)
|
|
249
|
-
}, {
|
|
250
|
-
default: y(() => [
|
|
251
|
-
F(A(W(i.status)), 1)
|
|
252
|
-
]),
|
|
253
|
-
_: 2
|
|
254
|
-
}, 1032, ["color"])
|
|
255
|
-
])
|
|
256
|
-
]),
|
|
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: "上线或下线" }, {
|
|
260
|
-
default: y(() => [
|
|
261
|
-
x(u(n(se), {
|
|
262
|
-
checked: i.status,
|
|
263
|
-
"onUpdate:checked": (d) => i.status = d,
|
|
264
|
-
data: [
|
|
265
|
-
{ label: "上线", value: n(s).Online },
|
|
266
|
-
{ label: "下线", value: n(s).Offline }
|
|
267
|
-
],
|
|
268
|
-
onChange: (d) => q(i)
|
|
269
|
-
}, null, 8, ["checked", "onUpdate:checked", "data", "onChange"]), [
|
|
270
|
-
[a, { role: ["Super", "Admin"], permit: ":uploadlist:online" }]
|
|
271
|
-
])
|
|
272
|
-
]),
|
|
273
|
-
_: 2
|
|
274
|
-
}, 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: "下载" }, {
|
|
278
|
-
default: y(() => [
|
|
279
|
-
x(u(n(L), {
|
|
280
|
-
icon: "icon-download",
|
|
281
|
-
clickable: "",
|
|
282
|
-
onClick: (d) => B(_)
|
|
283
|
-
}, null, 8, ["onClick"]), [
|
|
284
|
-
[a, { role: ["Super", "Admin"], permit: ":uploadlist:download" }]
|
|
285
|
-
]),
|
|
286
|
-
t.showActionText ? x((m(), v("span", {
|
|
287
|
-
key: 0,
|
|
288
|
-
class: "mr-2 text-sm text-nowrap",
|
|
289
|
-
onClick: (d) => B(_)
|
|
290
|
-
}, o[3] || (o[3] = [
|
|
291
|
-
F("下载")
|
|
292
|
-
]), 8, ke)), [
|
|
293
|
-
[a, { role: ["Super", "Admin"], permit: ":uploadlist:download" }]
|
|
294
|
-
]) : b("", !0)
|
|
295
|
-
]),
|
|
296
|
-
_: 2
|
|
297
|
-
}, 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: "预览" }, {
|
|
301
|
-
default: y(() => [
|
|
302
|
-
x(u(n(L), {
|
|
303
|
-
icon: "icon-eye",
|
|
304
|
-
clickable: "",
|
|
305
|
-
onClick: (d) => T(_)
|
|
306
|
-
}, null, 8, ["onClick"]), [
|
|
307
|
-
[a, { role: ["Super", "Admin"], permit: ":uploadlist:preview" }]
|
|
308
|
-
]),
|
|
309
|
-
t.showActionText ? x((m(), v("span", {
|
|
310
|
-
key: 0,
|
|
311
|
-
class: "mr-2 text-sm text-nowrap",
|
|
312
|
-
onClick: (d) => T(_)
|
|
313
|
-
}, o[4] || (o[4] = [
|
|
314
|
-
F("预览")
|
|
315
|
-
]), 8, ge)), [
|
|
316
|
-
[a, { role: ["Super", "Admin"], permit: ":uploadlist:preview" }]
|
|
317
|
-
]) : b("", !0)
|
|
318
|
-
]),
|
|
319
|
-
_: 2
|
|
320
|
-
}, 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),
|
|
326
|
-
cancelText: "否",
|
|
327
|
-
okText: "是",
|
|
328
|
-
title: "确定删除该文件吗?",
|
|
329
|
-
okButtonProps: { size: "small" },
|
|
330
|
-
cancelButtonProps: { size: "small" },
|
|
331
|
-
onConfirm: (d) => N(_),
|
|
332
|
-
onCancel: o[1] || (o[1] = (d) => c.value = !1)
|
|
333
|
-
}, {
|
|
334
|
-
default: y(() => [
|
|
335
|
-
u(n(z), { title: "删除" }, {
|
|
336
|
-
default: y(() => [
|
|
337
|
-
f("div", {
|
|
338
|
-
onClick: (d) => G(_, i.status)
|
|
339
|
-
}, [
|
|
340
|
-
x(u(n(L), {
|
|
341
|
-
icon: "icon-new",
|
|
342
|
-
angle: 45,
|
|
343
|
-
clickable: ""
|
|
344
|
-
}, null, 512), [
|
|
345
|
-
[a, { role: ["Super", "Admin"], permit: ":uploadlist:delete" }]
|
|
346
|
-
]),
|
|
347
|
-
t.showActionText ? x((m(), v("span", Ee, o[5] || (o[5] = [
|
|
348
|
-
F("删除")
|
|
349
|
-
]))), [
|
|
350
|
-
[a, { role: ["Super", "Admin"], permit: ":uploadlist:delete" }]
|
|
351
|
-
]) : b("", !0)
|
|
352
|
-
], 8, Fe)
|
|
353
|
-
]),
|
|
354
|
-
_: 2
|
|
355
|
-
}, 1024)
|
|
356
|
-
]),
|
|
357
|
-
_: 2
|
|
358
|
-
}, 1032, ["open", "onConfirm"])
|
|
359
|
-
])
|
|
360
|
-
])
|
|
361
|
-
]),
|
|
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,
|
|
365
|
-
"stroke-width": 2,
|
|
366
|
-
"show-info": !1,
|
|
367
|
-
style: { height: "2px" }
|
|
368
|
-
}, null, 8, ["percent"])
|
|
369
|
-
])) : b("", !0)
|
|
370
|
-
]))), 128))
|
|
371
|
-
])
|
|
372
|
-
], 2);
|
|
373
|
-
};
|
|
374
|
-
}
|
|
375
|
-
}), Ve = /* @__PURE__ */ ue(ze, [["__scopeId", "data-v-7d076856"]]);
|
|
376
|
-
export {
|
|
377
|
-
me as C,
|
|
378
|
-
Ve as U,
|
|
379
|
-
de as a,
|
|
380
|
-
pe as d,
|
|
381
|
-
fe as p
|
|
382
|
-
};
|