@skyfox2000/webui 1.0.14 → 1.2.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.
- package/lib/assets/modules/file-upload-CBUcsUnR.js +170 -0
- package/lib/assets/modules/form-validate-CgX7aR7T.js +297 -0
- package/lib/assets/modules/index-Civhd8xG.js +112 -0
- package/lib/assets/modules/index-DQMdt51R.js +726 -0
- package/lib/assets/modules/{index-BEWJ_qAH.js → index-DmWrkTXX.js} +1 -1
- package/lib/assets/modules/{menuTabs-BXdbFZor.js → menuTabs-BRYvFWA-.js} +131 -121
- package/lib/assets/modules/settingInfo-BZakNKIN.js +999 -0
- package/lib/assets/modules/uploadList-B7XoxGOh.js +278 -0
- package/lib/components/common/icon/index.vue.d.ts +1 -1
- package/lib/components/content/dialog/index.vue.d.ts +1 -1
- package/lib/components/content/drawer/index.vue.d.ts +1 -1
- package/lib/components/content/form/index.vue.d.ts +1 -1
- package/lib/components/content/search/index.vue.d.ts +1 -1
- package/lib/components/content/table/index.vue.d.ts +1 -1
- package/lib/components/content/table/tableOperate.vue.d.ts +1 -1
- package/lib/components/content/toolbar/icontool.vue.d.ts +1 -1
- package/lib/components/content/toolbar/index.vue.d.ts +1 -1
- package/lib/components/content/tree/index.vue.d.ts +1 -1
- package/lib/components/form/transfer/transferTable.vue.d.ts +1 -1
- package/lib/components/form/treeSelect/index.vue.d.ts +1 -1
- package/lib/components/form/upload/uploadList.vue.d.ts +1 -1
- package/lib/const/options.d.ts +32 -0
- package/lib/directives/enter-submit.d.ts +4 -0
- package/lib/directives/index.d.ts +2 -0
- package/lib/directives/permission.d.ts +5 -0
- package/lib/es/AceEditor/index.js +9 -8
- package/lib/es/BasicLayout/index.js +28 -24
- package/lib/es/Error403/index.js +15 -10
- package/lib/es/Error404/index.js +15 -10
- package/lib/es/ExcelForm/index.js +380 -175
- package/lib/es/UploadForm/index.js +23 -20
- package/lib/index.d.ts +42 -2
- package/lib/router/index.d.ts +16 -0
- package/lib/stores/appInfo.d.ts +34 -0
- package/lib/stores/hostInfo.d.ts +9 -0
- package/lib/stores/pageInfo.d.ts +18 -0
- package/lib/stores/pinia.d.ts +3 -0
- package/lib/stores/settingInfo.d.ts +8 -0
- package/lib/stores/userInfo.d.ts +21 -0
- package/lib/typings/data.d.ts +80 -0
- package/lib/typings/form.d.ts +171 -0
- package/lib/typings/menu.d.ts +7 -0
- package/lib/typings/option.d.ts +175 -0
- package/lib/typings/page.d.ts +69 -0
- package/lib/typings/table.d.ts +181 -0
- package/lib/typings/tools.d.ts +130 -0
- package/lib/typings/tree.d.ts +72 -0
- package/lib/typings/upload.d.ts +161 -0
- package/lib/typings/urls.d.ts +69 -0
- package/lib/utils/cache.d.ts +23 -0
- package/lib/utils/data.d.ts +6 -0
- package/lib/utils/download.d.ts +4 -0
- package/lib/utils/eventbus.d.ts +16 -0
- package/lib/utils/export-table.d.ts +12 -0
- package/lib/utils/file-upload.d.ts +15 -0
- package/lib/utils/form-excel.d.ts +30 -0
- package/lib/utils/form-validate.d.ts +29 -0
- package/lib/utils/form.d.ts +9 -0
- package/lib/utils/icon-loader.d.ts +125 -0
- package/lib/utils/isEmpty.d.ts +1 -0
- package/lib/utils/main-openapis.d.ts +9 -0
- package/lib/utils/menu.d.ts +6 -0
- package/lib/utils/options.d.ts +10 -0
- package/lib/utils/page.d.ts +25 -0
- package/lib/utils/table.d.ts +21 -0
- package/lib/utils/tools.d.ts +18 -0
- package/lib/utils/tree.d.ts +3 -0
- package/lib/vite-env.d.ts +8 -0
- package/lib/webui.css +1 -1
- package/lib/webui.es.js +890 -724
- package/package.json +7 -6
- package/src/components/common/icon/appicon.vue +1 -1
- package/src/components/common/icon/fullscreen.vue +2 -1
- package/src/components/common/icon/index.vue +1 -1
- package/src/components/common/icon/layoutIcon.vue +1 -1
- package/src/components/common/icon/projectIcon.vue +1 -1
- package/src/components/common/icon/toolIcon.vue +1 -1
- package/src/components/content/dialog/excelForm.vue +2 -2
- package/src/components/content/dialog/index.vue +1 -1
- package/src/components/content/dialog/uploadForm.vue +7 -6
- package/src/components/content/drawer/index.vue +43 -18
- package/src/components/content/form/formItem.vue +1 -1
- package/src/components/content/form/index.vue +1 -1
- package/src/components/content/search/index.vue +1 -1
- package/src/components/content/search/searchItem.vue +1 -1
- package/src/components/content/table/index.vue +3 -3
- package/src/components/content/table/tableOperate.vue +2 -2
- package/src/components/content/toolbar/icontool.vue +2 -2
- package/src/components/content/toolbar/index.vue +3 -2
- package/src/components/content/tree/index.vue +1 -1
- package/src/components/error/error403.vue +2 -2
- package/src/components/error/error404.vue +2 -2
- package/src/components/form/autoComplete/index.vue +1 -1
- package/src/components/form/cascader/index.vue +1 -2
- package/src/components/form/checkbox/index.vue +11 -5
- package/src/components/form/datePicker/index.vue +1 -1
- package/src/components/form/input/index.vue +1 -1
- package/src/components/form/input/inputNumber.vue +1 -1
- package/src/components/form/input/inputPassword.vue +1 -1
- package/src/components/form/radio/index.vue +1 -1
- package/src/components/form/radio/radioStatus.vue +1 -1
- package/src/components/form/rangePicker/index.vue +1 -1
- package/src/components/form/select/index.vue +1 -1
- package/src/components/form/switch/index.vue +7 -3
- package/src/components/form/textarea/index.vue +1 -1
- package/src/components/form/transfer/index.vue +1 -1
- package/src/components/form/transfer/transferTable.vue +42 -22
- package/src/components/form/treeSelect/index.vue +2 -3
- package/src/components/form/upload/uploadList.vue +1 -1
- package/src/components/layout/breadcrumb/index.vue +1 -1
- package/src/components/layout/header/headerExits.vue +1 -1
- package/src/components/layout/header/index.vue +1 -1
- package/src/components/layout/header/user.vue +2 -1
- package/src/components/layout/menu/index.vue +9 -3
- package/src/components/layout/menu/menuTabs.vue +10 -12
- package/src/components/layout/page/basicLayout.vue +1 -1
- package/src/const/options.ts +114 -0
- package/src/directives/enter-submit.ts +13 -0
- package/src/directives/index.ts +26 -0
- package/src/directives/permission.ts +144 -0
- package/src/index.ts +201 -0
- package/src/router/index.ts +196 -0
- package/src/stores/appInfo.ts +471 -0
- package/src/stores/hostInfo.ts +117 -0
- package/src/stores/pageInfo.ts +131 -0
- package/src/stores/pinia.ts +10 -0
- package/src/stores/settingInfo.ts +53 -0
- package/src/stores/userInfo.ts +392 -0
- package/src/typings/data.d.ts +81 -0
- package/src/typings/form.d.ts +172 -0
- package/src/typings/menu.d.ts +7 -0
- package/src/typings/option.d.ts +177 -0
- package/src/typings/page.d.ts +70 -0
- package/src/typings/table.d.ts +182 -0
- package/src/typings/tools.d.ts +131 -0
- package/src/typings/tree.d.ts +73 -0
- package/src/typings/upload.d.ts +162 -0
- package/src/typings/urls.d.ts +70 -0
- package/src/utils/cache.ts +175 -0
- package/src/utils/data.ts +189 -0
- package/src/utils/download.ts +80 -0
- package/src/utils/eventbus.ts +78 -0
- package/src/utils/export-table.ts +155 -0
- package/src/utils/file-upload.ts +304 -0
- package/src/utils/form-excel.ts +523 -0
- package/src/utils/form-validate.ts +368 -0
- package/src/utils/form.ts +188 -0
- package/src/utils/icon-loader.ts +412 -0
- package/src/utils/isEmpty.ts +18 -0
- package/src/utils/main-openapis.ts +72 -0
- package/src/utils/menu.ts +89 -0
- package/src/utils/options.ts +324 -0
- package/src/utils/page.ts +262 -0
- package/src/utils/table.ts +274 -0
- package/src/utils/tools.ts +362 -0
- package/src/utils/tree.ts +28 -0
- package/tsconfig.json +1 -8
- package/vite.config.ts +7 -4
- package/lib/assets/modules/index-BahGnrAq.js +0 -415
- package/lib/assets/modules/index-BoKIa2sr.js +0 -109
- package/lib/assets/modules/index-D47Ci-T3.js +0 -107
- package/lib/assets/modules/uploadList-Dzlg47V0.js +0 -182
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import { ResStatus as w, httpPost as $ } from "@skyfox2000/fapi";
|
|
2
|
+
import { d as Q, b as j, c as B, _ as T } from "./form-validate-CgX7aR7T.js";
|
|
3
|
+
import { s as M } from "./index-DQMdt51R.js";
|
|
4
|
+
import { b as A, r as G } from "./settingInfo-BZakNKIN.js";
|
|
5
|
+
import { combineParams as z } from "@skyfox2000/microbase";
|
|
6
|
+
import { defineComponent as V, ref as F, computed as O, watch as I, createElementBlock as m, openBlock as d, createElementVNode as l, createVNode as x, unref as c, mergeProps as q, withCtx as L, createTextVNode as P, toDisplayString as b, Fragment as H, renderList as J, normalizeClass as W, createCommentVNode as g } from "vue";
|
|
7
|
+
import { Upload as X, Tag as Y, Progress as Z } from "ant-design-vue";
|
|
8
|
+
import { U as n, p as C } from "./file-upload-CBUcsUnR.js";
|
|
9
|
+
import y from "vue-m-message";
|
|
10
|
+
import "async-validator";
|
|
11
|
+
import "dayjs";
|
|
12
|
+
import "./index-DmWrkTXX.js";
|
|
13
|
+
const Fe = (t, s) => {
|
|
14
|
+
const e = A();
|
|
15
|
+
return t.filter((a) => {
|
|
16
|
+
if (a.role && !e.hasRole(a.role) || a.permit && !e.hasPermit(G.currentRoute.value.path, a.permit))
|
|
17
|
+
return !1;
|
|
18
|
+
if (!s) {
|
|
19
|
+
if (a.visible === !1)
|
|
20
|
+
return !1;
|
|
21
|
+
if (typeof a.visible == "function")
|
|
22
|
+
return a.visible();
|
|
23
|
+
}
|
|
24
|
+
return !0;
|
|
25
|
+
});
|
|
26
|
+
}, Oe = (t) => (t.remotePage = !1, ee(t).then((s) => s.rows)), ee = (t) => {
|
|
27
|
+
t.gridQuery || (t.gridQuery = {});
|
|
28
|
+
const s = t.remotePage ? "find" : "list";
|
|
29
|
+
return Q(t, {
|
|
30
|
+
urlKey: s,
|
|
31
|
+
url: t.gridUrl,
|
|
32
|
+
params: t.gridQuery,
|
|
33
|
+
loadingState: t.isGridLoading,
|
|
34
|
+
processParams: (e) => {
|
|
35
|
+
var u;
|
|
36
|
+
return t.remotePage && (e.Query.$limit = [(t.pageNo.value - 1) * t.pageSize.value, t.pageSize.value]), z((u = t.gridUrl) == null ? void 0 : u.params, e, t.gridQuery);
|
|
37
|
+
}
|
|
38
|
+
}).then((e) => {
|
|
39
|
+
if ((e == null ? void 0 : e.status) === w.SUCCESS) {
|
|
40
|
+
let a = e.data;
|
|
41
|
+
return a.rows ? (t.tableData.value = a.rows, t.total.value = a.total) : (t.tableData.value = e.data, t.total.value = e.data.length, a = {
|
|
42
|
+
total: t.total.value,
|
|
43
|
+
rows: e.data
|
|
44
|
+
}, t.afterLoad && t.afterLoad(a)), a;
|
|
45
|
+
}
|
|
46
|
+
return t.tableData.value = [], t.total.value = 0, {
|
|
47
|
+
total: 0,
|
|
48
|
+
rows: []
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
}, te = (t, s, e = {}) => j(t, {
|
|
52
|
+
urlKey: "update",
|
|
53
|
+
url: t.updateUrl,
|
|
54
|
+
params: {
|
|
55
|
+
Query: { [t.primaryKey]: s[t.primaryKey] },
|
|
56
|
+
Data: s
|
|
57
|
+
},
|
|
58
|
+
loadingState: t.isGridSaving,
|
|
59
|
+
...e
|
|
60
|
+
}).then((a) => ((a == null ? void 0 : a.status) === w.SUCCESS && setTimeout(() => {
|
|
61
|
+
t.reload.value = !0, t.afterUpdate && t.afterUpdate(s);
|
|
62
|
+
}, 50), a)), Pe = (t, s) => {
|
|
63
|
+
const e = {};
|
|
64
|
+
return e[t.primaryKey] = s[t.primaryKey], e[t.statusKey] = s[t.statusKey], te(t, e, {
|
|
65
|
+
loadingText: !1,
|
|
66
|
+
hideErrorToast: !0
|
|
67
|
+
});
|
|
68
|
+
}, ge = (t, s) => {
|
|
69
|
+
let e = t.editor;
|
|
70
|
+
t.rowData.value = s, e && (M(e, s), e.visible.value = !0);
|
|
71
|
+
}, ze = (t, s) => B(t, s, {
|
|
72
|
+
url: t.deleteUrl,
|
|
73
|
+
primaryKey: t.primaryKey
|
|
74
|
+
}).then((e) => ((e == null ? void 0 : e.status) === w.SUCCESS && setTimeout(() => {
|
|
75
|
+
t.reload.value = !0, t.afterDelete && !Array.isArray(s) && t.afterDelete(s);
|
|
76
|
+
}, 50), e)), ae = (t, s) => {
|
|
77
|
+
const e = document.createElement("a"), a = URL.createObjectURL(t);
|
|
78
|
+
e.href = a, e.download = s, e.style.display = "none", document.body.appendChild(e), e.click(), URL.revokeObjectURL(a), document.body.removeChild(e);
|
|
79
|
+
}, oe = (t, s, e) => {
|
|
80
|
+
try {
|
|
81
|
+
const a = z(t.params, s);
|
|
82
|
+
return $(t, a).then((u) => {
|
|
83
|
+
if ((u == null ? void 0 : u.status) === w.SUCCESS && u.data) {
|
|
84
|
+
const f = u.data, S = f.Content, _ = f.FileName, h = atob(S), v = [];
|
|
85
|
+
for (let p = 0; p < h.length; p++)
|
|
86
|
+
v.push(h.charCodeAt(p));
|
|
87
|
+
const U = new Blob([new Uint8Array(v)], {
|
|
88
|
+
type: f.Type
|
|
89
|
+
});
|
|
90
|
+
ae(U, _);
|
|
91
|
+
} else
|
|
92
|
+
y.error("下载文件失败!");
|
|
93
|
+
});
|
|
94
|
+
} catch (a) {
|
|
95
|
+
console.error("下载失败:", a), y.error("文件下载失败,请稍后重试");
|
|
96
|
+
}
|
|
97
|
+
}, se = { class: "w-full border border-solid border-gray-100 mt-1 rounded-md py-5" }, ne = { class: "flex items-center justify-between w-full" }, re = { class: "w-35 mx-3" }, ie = { class: "flex-1 text-sm text-gray-500" }, le = { class: "mt-4 px-3" }, ue = { class: "flex items-center justify-between" }, ce = { class: "flex items-center" }, fe = { class: "flex items-center" }, pe = ["onClick"], me = ["onClick"], de = ["onClick"], Ke = /* @__PURE__ */ V({
|
|
98
|
+
__name: "uploadList",
|
|
99
|
+
props: {
|
|
100
|
+
autoUpload: { type: Boolean, default: !1 },
|
|
101
|
+
downloadUrl: {},
|
|
102
|
+
fileList: { default: () => [] },
|
|
103
|
+
placeholder: { default: "" },
|
|
104
|
+
fileExt: {},
|
|
105
|
+
maxFileSize: { default: 20 },
|
|
106
|
+
maxCount: { default: 5 },
|
|
107
|
+
parentPath: {}
|
|
108
|
+
},
|
|
109
|
+
emits: ["update:file-list"],
|
|
110
|
+
setup(t, { emit: s }) {
|
|
111
|
+
const e = t, a = F(e.fileList), u = F(), f = s, S = O(() => {
|
|
112
|
+
var o;
|
|
113
|
+
return (o = e.fileExt) != null && o.length ? e.fileExt.map((i) => `.${i}`).join(",") : "";
|
|
114
|
+
}), _ = (o) => {
|
|
115
|
+
var i;
|
|
116
|
+
if (e.fileExt && e.fileExt.length > 0) {
|
|
117
|
+
const r = ((i = o.name.split(".").pop()) == null ? void 0 : i.toLowerCase()) || "";
|
|
118
|
+
if (!e.fileExt.includes(r))
|
|
119
|
+
return y.error("文件类型不支持"), !1;
|
|
120
|
+
}
|
|
121
|
+
return o.size / 1024 / 1024 > e.maxFileSize ? (y.error(`文件大小超过 ${e.maxFileSize}MB 限制`), !1) : e.maxCount > 1 && a.value.length >= e.maxCount ? (y.error(`最多上传 ${e.maxCount} 个文件`), !1) : e.autoUpload;
|
|
122
|
+
}, h = (o) => {
|
|
123
|
+
o.forEach((i) => {
|
|
124
|
+
i.fileName || (i.fileName = i.name), e.parentPath && (i.name = C.join("/", e.parentPath, i.fileName));
|
|
125
|
+
});
|
|
126
|
+
}, v = O(() => ({
|
|
127
|
+
accept: S.value,
|
|
128
|
+
multiple: !0,
|
|
129
|
+
fileList: a.value,
|
|
130
|
+
"onUpdate:fileList": h,
|
|
131
|
+
beforeUpload: _,
|
|
132
|
+
listType: "text",
|
|
133
|
+
maxCount: e.maxCount,
|
|
134
|
+
showUploadList: !1,
|
|
135
|
+
onChange: (o) => {
|
|
136
|
+
e.autoUpload || (a.value = o.fileList);
|
|
137
|
+
}
|
|
138
|
+
}));
|
|
139
|
+
I(
|
|
140
|
+
() => a.value,
|
|
141
|
+
(o) => {
|
|
142
|
+
f("update:file-list", o);
|
|
143
|
+
},
|
|
144
|
+
{ deep: !0 }
|
|
145
|
+
);
|
|
146
|
+
const U = (o) => {
|
|
147
|
+
const i = a.value[o].minioFile, r = {
|
|
148
|
+
api: e.downloadUrl.api,
|
|
149
|
+
authorize: e.downloadUrl.authorize,
|
|
150
|
+
url: e.downloadUrl.url,
|
|
151
|
+
// url: props.pageData.urls.download!.url,
|
|
152
|
+
params: {
|
|
153
|
+
Query: {
|
|
154
|
+
FileKey: i.Key
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
oe(r);
|
|
159
|
+
}, p = (o) => {
|
|
160
|
+
o.status = o.status === n.Offline ? n.Online : n.Offline, o.minioFile.Status = o.status;
|
|
161
|
+
}, K = (o) => {
|
|
162
|
+
a.value.splice(o, 1);
|
|
163
|
+
}, D = () => {
|
|
164
|
+
const o = e.fileExt && e.fileExt.length ? `文件必须为 ${e.fileExt.join("/")}` : "", i = e.maxFileSize !== 0 ? `单文件最大 ${e.maxFileSize}MB` : "", r = e.maxCount !== 0 ? `最多 ${e.maxCount} 个文件` : "";
|
|
165
|
+
return [i, o, r].filter(Boolean).join(",");
|
|
166
|
+
}, N = (o) => {
|
|
167
|
+
switch (o) {
|
|
168
|
+
case n.Uploading:
|
|
169
|
+
return "blue";
|
|
170
|
+
case n.Success:
|
|
171
|
+
return "green";
|
|
172
|
+
case n.Error:
|
|
173
|
+
return "red";
|
|
174
|
+
case n.Online:
|
|
175
|
+
return "green";
|
|
176
|
+
case n.Offline:
|
|
177
|
+
return "pink";
|
|
178
|
+
default:
|
|
179
|
+
return "cyan";
|
|
180
|
+
}
|
|
181
|
+
}, R = (o) => {
|
|
182
|
+
switch (o) {
|
|
183
|
+
case n.Uploading:
|
|
184
|
+
return "上传中";
|
|
185
|
+
case n.Success:
|
|
186
|
+
return "已完成";
|
|
187
|
+
case n.Error:
|
|
188
|
+
return "上传失败";
|
|
189
|
+
case n.Online:
|
|
190
|
+
return "在线";
|
|
191
|
+
case n.Offline:
|
|
192
|
+
return "已下线";
|
|
193
|
+
default:
|
|
194
|
+
return "待上传";
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
return (o, i) => (d(), m("div", se, [
|
|
198
|
+
l("div", ne, [
|
|
199
|
+
l("div", re, [
|
|
200
|
+
x(c(X), q({
|
|
201
|
+
ref_key: "fileUploader",
|
|
202
|
+
ref: u
|
|
203
|
+
}, v.value), {
|
|
204
|
+
default: L(() => [
|
|
205
|
+
x(c(T), null, {
|
|
206
|
+
default: L(() => i[0] || (i[0] = [
|
|
207
|
+
P("选择文件")
|
|
208
|
+
])),
|
|
209
|
+
_: 1,
|
|
210
|
+
__: [0]
|
|
211
|
+
})
|
|
212
|
+
]),
|
|
213
|
+
_: 1
|
|
214
|
+
}, 16)
|
|
215
|
+
]),
|
|
216
|
+
l("div", ie, b(D()), 1)
|
|
217
|
+
]),
|
|
218
|
+
l("div", le, [
|
|
219
|
+
(d(!0), m(H, null, J(a.value, (r, E) => (d(), m("div", {
|
|
220
|
+
key: E,
|
|
221
|
+
class: "mb-2 pb-1"
|
|
222
|
+
}, [
|
|
223
|
+
l("div", ue, [
|
|
224
|
+
l("div", ce, [
|
|
225
|
+
l("span", {
|
|
226
|
+
class: W(["text-gray-700 mr-2", [r.status == c(n).Offline ? "line-through" : ""]])
|
|
227
|
+
}, b(r.fileName ?? r.name), 3),
|
|
228
|
+
l("span", null, [
|
|
229
|
+
x(c(Y), {
|
|
230
|
+
color: N(r.status)
|
|
231
|
+
}, {
|
|
232
|
+
default: L(() => [
|
|
233
|
+
P(b(R(r.status)), 1)
|
|
234
|
+
]),
|
|
235
|
+
_: 2
|
|
236
|
+
}, 1032, ["color"])
|
|
237
|
+
])
|
|
238
|
+
]),
|
|
239
|
+
l("div", fe, [
|
|
240
|
+
r.status == c(n).Offline || r.status == c(n).Online ? (d(), m("span", {
|
|
241
|
+
key: 0,
|
|
242
|
+
class: "text-blue-500 hover:text-blue-700 mr-4 cursor-pointer",
|
|
243
|
+
onClick: (k) => p(r)
|
|
244
|
+
}, b(r.status == c(n).Offline ? "上线" : "下线"), 9, pe)) : g("", !0),
|
|
245
|
+
r.status == c(n).Offline || r.status == c(n).Online ? (d(), m("span", {
|
|
246
|
+
key: 1,
|
|
247
|
+
class: "text-blue-500 hover:text-blue-700 mr-4 cursor-pointer",
|
|
248
|
+
onClick: (k) => U(E)
|
|
249
|
+
}, "下载", 8, me)) : g("", !0),
|
|
250
|
+
l("span", {
|
|
251
|
+
class: "text-red-500 hover:text-red-700 cursor-pointer",
|
|
252
|
+
onClick: (k) => K(E)
|
|
253
|
+
}, "删除", 8, de)
|
|
254
|
+
])
|
|
255
|
+
]),
|
|
256
|
+
l("div", null, [
|
|
257
|
+
x(c(Z), {
|
|
258
|
+
percent: r.percent,
|
|
259
|
+
"stroke-width": 2,
|
|
260
|
+
"show-info": !1,
|
|
261
|
+
style: { height: "2px" }
|
|
262
|
+
}, null, 8, ["percent"])
|
|
263
|
+
])
|
|
264
|
+
]))), 128))
|
|
265
|
+
])
|
|
266
|
+
]));
|
|
267
|
+
}
|
|
268
|
+
});
|
|
269
|
+
export {
|
|
270
|
+
Ke as _,
|
|
271
|
+
ze as a,
|
|
272
|
+
Oe as b,
|
|
273
|
+
Pe as c,
|
|
274
|
+
te as d,
|
|
275
|
+
Fe as f,
|
|
276
|
+
ee as g,
|
|
277
|
+
ge as o
|
|
278
|
+
};
|
|
@@ -235,9 +235,9 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
235
235
|
iconIndex: number;
|
|
236
236
|
clickable: boolean;
|
|
237
237
|
flip: boolean;
|
|
238
|
-
autoSwitch: boolean;
|
|
239
238
|
fontsize: string;
|
|
240
239
|
className: string;
|
|
240
|
+
autoSwitch: boolean;
|
|
241
241
|
spin: boolean;
|
|
242
242
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
243
243
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorControl } from '
|
|
1
|
+
import { EditorControl } from '../../../index';
|
|
2
2
|
import { AnyData } from '../../../../../502417_fapi';
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
4
|
type __VLS_Props = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorControl } from '
|
|
1
|
+
import { EditorControl } from '../../../index';
|
|
2
2
|
import { AnyData } from '../../../../../502417_fapi';
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
4
|
type __VLS_Props = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorControl } from '
|
|
1
|
+
import { EditorControl } from '../../../index';
|
|
2
2
|
import { AnyData } from '../../../../../502417_fapi';
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
4
|
type __VLS_Props = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GridControl } from '
|
|
1
|
+
import { GridControl } from '../../../index';
|
|
2
2
|
import { AnyData } from '../../../../../502417_fapi';
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
4
|
type __VLS_Props = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TableProps, TableColumnType } from 'ant-design-vue';
|
|
2
|
-
import { GridControl } from '
|
|
2
|
+
import { GridControl } from '../../../index';
|
|
3
3
|
import { AnyData } from '../../../../../502417_fapi';
|
|
4
4
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
5
5
|
type __VLS_Props = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GridControl } from '
|
|
1
|
+
import { GridControl } from '../../../index';
|
|
2
2
|
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
3
|
declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorControl, GridControl } from '
|
|
1
|
+
import { EditorControl, GridControl } from '../../../index';
|
|
2
2
|
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
3
|
declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TreeControl } from '
|
|
1
|
+
import { TreeControl } from '../../../index';
|
|
2
2
|
import { TreeDataNode } from 'ant-design-vue/es/vc-tree-select/interface';
|
|
3
3
|
import { EventDataNode } from 'ant-design-vue/es/vc-tree/interface';
|
|
4
4
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AnyData } from '../../../../../502417_fapi';
|
|
2
|
-
import { GridControl } from '
|
|
2
|
+
import { GridControl } from '../../../index';
|
|
3
3
|
import { PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
4
|
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
5
5
|
autoload: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
import { SelectValue, TreeControl } from '
|
|
2
|
+
import { SelectValue, TreeControl } from '../../../index';
|
|
3
3
|
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
4
4
|
multiple: {
|
|
5
5
|
type: BooleanConstructor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UploadFile } from '
|
|
1
|
+
import { UploadFile } from '../../../index';
|
|
2
2
|
import { IUrlInfo } from '../../../../../502417_fapi';
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
|
|
4
4
|
import { UploadType, FileType, HttpRequestHeader, ShowUploadListInterface, UploadListType, UploadLocale, UploadListProgressProps, ItemRender } from 'ant-design-vue/es/upload/interface';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare class OPTIONS {
|
|
2
|
+
private static dict;
|
|
3
|
+
static Keys: {
|
|
4
|
+
EnableDisable: string;
|
|
5
|
+
SuccessResult: string;
|
|
6
|
+
YesNo: string;
|
|
7
|
+
MaleFemale: string;
|
|
8
|
+
};
|
|
9
|
+
static getOptions: (key: string) => Record<string, any>[];
|
|
10
|
+
static getOptionItem: (key: string, value: string | number) => Record<string, any> | undefined;
|
|
11
|
+
static setOptions: (key: string, list: Record<string, any>[]) => void;
|
|
12
|
+
static EnableDisable: {
|
|
13
|
+
label: string;
|
|
14
|
+
text: string;
|
|
15
|
+
value: number;
|
|
16
|
+
}[];
|
|
17
|
+
static SuccessResult: {
|
|
18
|
+
label: string;
|
|
19
|
+
text: string;
|
|
20
|
+
value: number;
|
|
21
|
+
}[];
|
|
22
|
+
static YesNo: {
|
|
23
|
+
label: string;
|
|
24
|
+
text: string;
|
|
25
|
+
value: number;
|
|
26
|
+
}[];
|
|
27
|
+
static MaleFemale: {
|
|
28
|
+
label: string;
|
|
29
|
+
text: string;
|
|
30
|
+
value: string;
|
|
31
|
+
}[];
|
|
32
|
+
}
|
|
@@ -1,14 +1,15 @@
|
|
|
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
|
-
import { _ as q } from "../../assets/modules/index-
|
|
2
|
+
import { _ as q } from "../../assets/modules/index-Civhd8xG.js";
|
|
3
3
|
import "ant-design-vue";
|
|
4
|
-
import { _ as D } from "../../assets/modules/index-
|
|
4
|
+
import { _ as D } from "../../assets/modules/index-DmWrkTXX.js";
|
|
5
5
|
import "@skyfox2000/fapi";
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
6
|
+
import "../../assets/modules/settingInfo-BZakNKIN.js";
|
|
7
|
+
import "@skyfox2000/microbase";
|
|
8
8
|
import "vue-m-message";
|
|
9
|
-
import "
|
|
9
|
+
import "async-validator";
|
|
10
10
|
import "dayjs";
|
|
11
|
-
import "
|
|
11
|
+
import "vue-draggable-next";
|
|
12
|
+
import "../../assets/modules/index-DQMdt51R.js";
|
|
12
13
|
const h = async (s) => window.ace ? window.ace : new Promise((l, t) => {
|
|
13
14
|
const o = document.createElement("script");
|
|
14
15
|
o.src = `${s}ace/ace.js`, o.async = !0, o.onload = () => {
|
|
@@ -43,7 +44,7 @@ const h = async (s) => window.ace ? window.ace : new Promise((l, t) => {
|
|
|
43
44
|
}, T = { class: "w-full overflow-hidden rounded-md border-1 border-solid border-gray-300" }, G = { class: "w-full h-[30px] bg-[#ccc] relative flex items-center justify-between px-2" }, H = { class: "flex-1 overflow-hidden" }, I = {
|
|
44
45
|
key: 1,
|
|
45
46
|
class: "h-[500px] w-[99.3%] flex justify-center items-center border-1 border-solid border-gray-200"
|
|
46
|
-
}, $ = "github",
|
|
47
|
+
}, $ = "github", ce = /* @__PURE__ */ F({
|
|
47
48
|
__name: "index",
|
|
48
49
|
props: {
|
|
49
50
|
value: {},
|
|
@@ -163,5 +164,5 @@ const h = async (s) => window.ace ? window.ace : new Promise((l, t) => {
|
|
|
163
164
|
}
|
|
164
165
|
});
|
|
165
166
|
export {
|
|
166
|
-
|
|
167
|
+
ce as default
|
|
167
168
|
};
|
|
@@ -1,47 +1,51 @@
|
|
|
1
|
-
import { defineComponent as y, ref as I, watch as C, onMounted as g, resolveComponent as b, createBlock as n, openBlock as o, unref as e, withCtx as a, createCommentVNode as c, createVNode as r, createElementVNode as
|
|
2
|
-
import { Layout as
|
|
3
|
-
import { a as z } from "../../assets/modules/index-
|
|
4
|
-
import { I as A, a as B, f as L, d as V, g as D } from "../../assets/modules/menuTabs-
|
|
5
|
-
import {
|
|
1
|
+
import { defineComponent as y, ref as I, watch as C, onMounted as g, resolveComponent as b, createBlock as n, openBlock as o, unref as e, withCtx as a, createCommentVNode as c, createVNode as r, createElementVNode as u, createElementBlock as k, toDisplayString as w, normalizeClass as S, KeepAlive as N, resolveDynamicComponent as $ } from "vue";
|
|
2
|
+
import { Layout as f, LayoutSider as E } from "ant-design-vue";
|
|
3
|
+
import { a as z } from "../../assets/modules/index-DmWrkTXX.js";
|
|
4
|
+
import { I as A, a as B, f as L, d as V, g as D } from "../../assets/modules/menuTabs-BRYvFWA-.js";
|
|
5
|
+
import { d as j, u as K, e as M } from "../../assets/modules/settingInfo-BZakNKIN.js";
|
|
6
|
+
import "@skyfox2000/microbase";
|
|
7
|
+
import "@skyfox2000/fapi";
|
|
6
8
|
import P from "vue-m-message";
|
|
9
|
+
import "async-validator";
|
|
10
|
+
import "dayjs";
|
|
7
11
|
const T = { class: "h-[40px] max-h-[40px] bg-[rgba(240,240,240,0.2)] flex flex-nowrap items-center justify-center text-white font-bold text-lg overflow-hidden text-ellipsis" }, U = {
|
|
8
12
|
key: 0,
|
|
9
13
|
class: "ml-[10px]"
|
|
10
|
-
},
|
|
14
|
+
}, Y = /* @__PURE__ */ y({
|
|
11
15
|
__name: "basicLayout",
|
|
12
16
|
props: {
|
|
13
17
|
routes: {}
|
|
14
18
|
},
|
|
15
19
|
setup(d) {
|
|
16
|
-
const _ = d, t = j(),
|
|
20
|
+
const _ = d, t = j(), s = K(), x = M(), p = I("h-[calc(100vh-80px)]");
|
|
17
21
|
return C(
|
|
18
|
-
() =>
|
|
22
|
+
() => s.fullscreen,
|
|
19
23
|
(i) => {
|
|
20
24
|
p.value = i ? "h-[calc(100vh-40px)]" : "h-[calc(100vh-80px)]";
|
|
21
25
|
}
|
|
22
26
|
), g(() => {
|
|
23
27
|
P.closeAll();
|
|
24
|
-
}), (i,
|
|
28
|
+
}), (i, m) => {
|
|
25
29
|
const h = b("router-view");
|
|
26
|
-
return o(), n(e(
|
|
30
|
+
return o(), n(e(f), { class: "h-screen" }, {
|
|
27
31
|
default: a(() => [
|
|
28
|
-
e(
|
|
32
|
+
e(s).fullscreen ? c("", !0) : (o(), n(e(E), {
|
|
29
33
|
key: 0,
|
|
30
34
|
class: "overflow-auto h-screen left-0 top-0 bottom-0",
|
|
31
|
-
collapsed: e(
|
|
32
|
-
"onUpdate:collapsed":
|
|
35
|
+
collapsed: e(s).menuCollapse,
|
|
36
|
+
"onUpdate:collapsed": m[0] || (m[0] = (l) => e(s).menuCollapse = l),
|
|
33
37
|
collapsible: ""
|
|
34
38
|
}, {
|
|
35
39
|
default: a(() => [
|
|
36
|
-
|
|
40
|
+
u("div", T, [
|
|
37
41
|
r(z, {
|
|
38
|
-
title: e(
|
|
42
|
+
title: e(s).menuCollapse ? e(t).appInfo.Name : "",
|
|
39
43
|
placement: "right"
|
|
40
44
|
}, {
|
|
41
45
|
default: a(() => {
|
|
42
|
-
var
|
|
46
|
+
var l;
|
|
43
47
|
return [
|
|
44
|
-
(
|
|
48
|
+
(l = e(t).appInfo.Icon) != null && l.startsWith("sym-") ? (o(), n(A, {
|
|
45
49
|
key: 0,
|
|
46
50
|
icon: e(t).appInfo.Icon,
|
|
47
51
|
fontsize: "30px",
|
|
@@ -55,7 +59,7 @@ const T = { class: "h-[40px] max-h-[40px] bg-[rgba(240,240,240,0.2)] flex flex-n
|
|
|
55
59
|
}),
|
|
56
60
|
_: 1
|
|
57
61
|
}, 8, ["title"]),
|
|
58
|
-
e(
|
|
62
|
+
e(s).menuCollapse ? c("", !0) : (o(), k("span", U, w(e(t).appInfo.Name), 1))
|
|
59
63
|
]),
|
|
60
64
|
r(L, {
|
|
61
65
|
routes: _.routes
|
|
@@ -63,20 +67,20 @@ const T = { class: "h-[40px] max-h-[40px] bg-[rgba(240,240,240,0.2)] flex flex-n
|
|
|
63
67
|
]),
|
|
64
68
|
_: 1
|
|
65
69
|
}, 8, ["collapsed"])),
|
|
66
|
-
r(e(
|
|
70
|
+
r(e(f), { class: "overflow-y-auto block" }, {
|
|
67
71
|
default: a(() => [
|
|
68
|
-
e(
|
|
72
|
+
e(s).fullscreen ? c("", !0) : (o(), n(V, { key: 0 })),
|
|
69
73
|
e(x).TabEnabled ? (o(), n(D, { key: 1 })) : c("", !0),
|
|
70
|
-
|
|
74
|
+
u("div", {
|
|
71
75
|
class: S(["relative overflow-y-auto", p.value])
|
|
72
76
|
}, [
|
|
73
77
|
r(h, null, {
|
|
74
|
-
default: a(({ Component:
|
|
78
|
+
default: a(({ Component: l, route: v }) => [
|
|
75
79
|
(o(), n(N, {
|
|
76
80
|
include: e(t).CachedComponents,
|
|
77
81
|
exclude: e(t).ExcludeComponents
|
|
78
82
|
}, [
|
|
79
|
-
(o(), n($(e(t).cacheComponent(
|
|
83
|
+
(o(), n($(e(t).cacheComponent(l, v))))
|
|
80
84
|
], 1032, ["include", "exclude"]))
|
|
81
85
|
]),
|
|
82
86
|
_: 1
|
|
@@ -92,5 +96,5 @@ const T = { class: "h-[40px] max-h-[40px] bg-[rgba(240,240,240,0.2)] flex flex-n
|
|
|
92
96
|
}
|
|
93
97
|
});
|
|
94
98
|
export {
|
|
95
|
-
|
|
99
|
+
Y as default
|
|
96
100
|
};
|
package/lib/es/Error403/index.js
CHANGED
|
@@ -1,24 +1,29 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
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/settingInfo-BZakNKIN.js";
|
|
3
|
+
import "@skyfox2000/microbase";
|
|
4
|
+
import "@skyfox2000/fapi";
|
|
5
|
+
import "vue-m-message";
|
|
6
|
+
import "async-validator";
|
|
7
|
+
import "dayjs";
|
|
8
|
+
import { Result as u, Button as c } from "ant-design-vue";
|
|
9
|
+
const N = /* @__PURE__ */ i({
|
|
5
10
|
__name: "error403",
|
|
6
11
|
setup(_) {
|
|
7
12
|
const o = () => {
|
|
8
13
|
s.back();
|
|
9
14
|
};
|
|
10
|
-
return (l, t) => (
|
|
15
|
+
return (l, t) => (m(), p(r(u), {
|
|
11
16
|
status: "403",
|
|
12
17
|
title: "403",
|
|
13
18
|
"sub-title": "您没有权限访问当前页面!"
|
|
14
19
|
}, {
|
|
15
|
-
extra:
|
|
16
|
-
|
|
20
|
+
extra: e(() => [
|
|
21
|
+
n(r(c), {
|
|
17
22
|
type: "primary",
|
|
18
23
|
onClick: o
|
|
19
24
|
}, {
|
|
20
|
-
default:
|
|
21
|
-
|
|
25
|
+
default: e(() => t[0] || (t[0] = [
|
|
26
|
+
a("点击返回")
|
|
22
27
|
])),
|
|
23
28
|
_: 1,
|
|
24
29
|
__: [0]
|
|
@@ -29,5 +34,5 @@ const x = /* @__PURE__ */ n({
|
|
|
29
34
|
}
|
|
30
35
|
});
|
|
31
36
|
export {
|
|
32
|
-
|
|
37
|
+
N as default
|
|
33
38
|
};
|