@skyfox2000/webui 1.4.19 → 1.4.22
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/{baseLayout-D3_NxEzk.js → baseLayout-BcSEYvus.js} +3 -3
- package/lib/assets/modules/{file-upload-CNBcbAAZ.js → file-upload-D11e2io7.js} +5 -5
- package/lib/assets/modules/{index-CDr74akE.js → index-CO9_YadW.js} +2 -2
- package/lib/assets/modules/{index-D14BsF7C.js → index-ClMWx3tg.js} +1 -1
- package/lib/assets/modules/{index-DOlO_4KL.js → index-voAmrZ30.js} +2 -2
- package/lib/assets/modules/{menuTabs-CqAhoF--.js → menuTabs-C9wkt-m9.js} +16 -16
- package/lib/assets/modules/{toolIcon-BnkqBipR.js → toolIcon-9zQ4jiFD.js} +1 -1
- package/lib/assets/modules/{upload-template-KI-IFzyp.js → upload-template-CM0O990W.js} +395 -378
- package/lib/assets/modules/uploadList-DhkFSkqE.js +466 -0
- package/lib/components/content/index.d.ts +4 -0
- package/lib/components/content/list/index.vue.d.ts +126 -0
- package/lib/components/content/list/listOperate.vue.d.ts +18 -0
- package/lib/components/form/index.d.ts +2 -0
- package/lib/components/form/switch/index.vue.d.ts +11 -1
- package/lib/components/form/upload/imageList.vue.d.ts +486 -0
- package/lib/components/form/upload/uploadList.vue.d.ts +449 -1
- package/lib/components/index.d.ts +2 -2
- package/lib/const/options.d.ts +4 -2
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +2 -2
- package/lib/es/Error403/index.js +1 -1
- package/lib/es/Error404/index.js +1 -1
- package/lib/es/ExcelForm/index.js +5 -5
- package/lib/es/MenuLayout/index.js +2 -2
- package/lib/es/TemplateFile/index.js +4 -4
- package/lib/es/UploadForm/index.js +70 -56
- package/lib/index.d.ts +1 -1
- package/lib/typings/upload.d.ts +10 -0
- package/lib/webui.css +1 -1
- package/lib/webui.es.js +1671 -1207
- package/package.json +1 -1
- package/src/components/content/dialog/uploadForm.vue +96 -13
- package/src/components/content/index.ts +5 -0
- package/src/components/content/list/index.vue +198 -0
- package/src/components/content/list/listOperate.vue +122 -0
- package/src/components/content/table/index.vue +1 -1
- package/src/components/content/table/tableOperate.vue +19 -37
- package/src/components/form/index.ts +3 -0
- package/src/components/form/switch/index.vue +27 -14
- package/src/components/form/upload/imageList.vue +386 -0
- package/src/components/form/upload/uploadList.vue +46 -3
- package/src/components/index.ts +3 -0
- package/src/const/options.ts +11 -1
- package/src/index.ts +3 -0
- package/src/typings/upload.d.ts +10 -0
- package/lib/assets/modules/uploadList-DnFXg_B3.js +0 -423
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as _, onMounted as I, createBlock as s, openBlock as o, unref as e, withCtx as l, createCommentVNode as r, createVNode as p, createElementVNode as x, createElementBlock as y, toDisplayString as g, renderSlot as h } from "vue";
|
|
2
2
|
import { Layout as i, LayoutSider as k } from "ant-design-vue";
|
|
3
|
-
import { a as b } from "./toolIcon-
|
|
4
|
-
import { I as C, _ as S, f as w, d as $, g as N } from "./menuTabs-
|
|
5
|
-
import { ah as v, a as B, aj as E } from "./upload-template-
|
|
3
|
+
import { a as b } from "./toolIcon-9zQ4jiFD.js";
|
|
4
|
+
import { I as C, _ as S, f as w, d as $, g as N } from "./menuTabs-C9wkt-m9.js";
|
|
5
|
+
import { ah as v, a as B, aj as E } from "./upload-template-CM0O990W.js";
|
|
6
6
|
import "@skyfox2000/microbase";
|
|
7
7
|
import "@skyfox2000/fapi";
|
|
8
8
|
import L from "vue-m-message";
|
|
@@ -4,10 +4,10 @@ var d = (n, r, s) => m(n, typeof r != "symbol" ? r + "" : r, s);
|
|
|
4
4
|
import { hostUrl as w } from "@skyfox2000/fapi";
|
|
5
5
|
import y from "dayjs";
|
|
6
6
|
import f from "vue-m-message";
|
|
7
|
-
import {
|
|
7
|
+
import { M as b, u as g } from "./upload-template-CM0O990W.js";
|
|
8
8
|
import { isMicroApp as O } from "@skyfox2000/microbase";
|
|
9
9
|
var i = /* @__PURE__ */ ((n) => (n.Pending = "pending", n.Uploading = "uploading", n.Success = "success", n.Error = "error", n.Online = "online", n.Offline = "offline", n))(i || {});
|
|
10
|
-
class
|
|
10
|
+
class M {
|
|
11
11
|
/**
|
|
12
12
|
* 连接路径参数,已判断 undefined 或 null 值
|
|
13
13
|
* @param args 路径参数数组
|
|
@@ -190,7 +190,7 @@ class S {
|
|
|
190
190
|
this.abortController && this.abortController.abort();
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
const
|
|
193
|
+
const x = async (n, r) => {
|
|
194
194
|
const s = new S(n, 1), c = [r];
|
|
195
195
|
await s.uploadFiles(
|
|
196
196
|
c,
|
|
@@ -206,6 +206,6 @@ const M = async (n, r) => {
|
|
|
206
206
|
export {
|
|
207
207
|
S as A,
|
|
208
208
|
i as U,
|
|
209
|
-
|
|
210
|
-
|
|
209
|
+
x as f,
|
|
210
|
+
M as p
|
|
211
211
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as B, provide as N, ref as w, watch as p, onMounted as _, createBlock as n, openBlock as r, unref as a, withCtx as s, createElementVNode as b, renderSlot as C, createVNode as V, createCommentVNode as d, createTextVNode as u, toDisplayString as v } from "vue";
|
|
2
|
-
import { _ as m } from "./index-
|
|
2
|
+
import { _ as m } from "./index-ClMWx3tg.js";
|
|
3
3
|
import { Modal as D, Space as $ } from "ant-design-vue";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
|
-
import { P as E, d as M, o as P, b as K } from "./upload-template-
|
|
5
|
+
import { P as E, d as M, o as P, b as K } from "./upload-template-CM0O990W.js";
|
|
6
6
|
import "@skyfox2000/microbase";
|
|
7
7
|
import "vue-m-message";
|
|
8
8
|
import "async-validator";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as d, useAttrs as f, createElementBlock as u, openBlock as x, createVNode as e, withCtx as n, unref as o, mergeProps as r, renderSlot as p } from "vue";
|
|
2
2
|
import { Button as _ } from "ant-design-vue";
|
|
3
|
-
import { a as P, _ as k } from "./toolIcon-
|
|
3
|
+
import { a as P, _ as k } from "./toolIcon-9zQ4jiFD.js";
|
|
4
4
|
const C = /* @__PURE__ */ d({
|
|
5
5
|
inheritAttrs: !1,
|
|
6
6
|
__name: "index",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import H from "async-validator";
|
|
2
2
|
import { httpPost as M, ResStatus as V } from "@skyfox2000/fapi";
|
|
3
|
-
import { i as T, am as U, L as $, u as z } from "./upload-template-
|
|
3
|
+
import { i as T, am as U, L as $, u as z } from "./upload-template-CM0O990W.js";
|
|
4
4
|
import m from "vue-m-message";
|
|
5
5
|
import { defineComponent as _, useAttrs as B, createElementBlock as A, openBlock as b, createVNode as O, unref as v, mergeProps as S, computed as E, createBlock as R, withCtx as L, normalizeStyle as N } from "vue";
|
|
6
6
|
import { Spin as K, Alert as P } from "ant-design-vue";
|
|
7
|
-
import { _ as W } from "./toolIcon-
|
|
7
|
+
import { _ as W } from "./toolIcon-9zQ4jiFD.js";
|
|
8
8
|
const D = (i) => {
|
|
9
9
|
const e = i.split(`
|
|
10
10
|
`).filter((l) => l.trim() !== "");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as x, createBlock as h, createCommentVNode as I, openBlock as u, unref as t, mergeProps as C, useAttrs as
|
|
2
|
-
import { a as w, _ as b } from "./toolIcon-
|
|
3
|
-
import { c as L,
|
|
4
|
-
import { _ as
|
|
1
|
+
import { defineComponent as x, createBlock as h, createCommentVNode as I, openBlock as u, unref as t, mergeProps as C, useAttrs as V, computed as j, ref as y, watch as k, withCtx as d, createElementBlock as g, normalizeStyle as T, createElementVNode as m, inject as W, onMounted as N, createVNode as l, toDisplayString as $, Fragment as R, createTextVNode as K, reactive as Y, nextTick as q, renderList as J, withModifiers as X } from "vue";
|
|
2
|
+
import { a as w, _ as b } from "./toolIcon-9zQ4jiFD.js";
|
|
3
|
+
import { c as L, W as M, aj as P, Z as E, Y as U, u as D, M as Z, a as F, X as G, r as H, ah as z } from "./upload-template-CM0O990W.js";
|
|
4
|
+
import { _ as Q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
import { theme as O, Breadcrumb as ee, Modal as te, Flex as ne, LayoutHeader as oe, Space as se, Menu as ie, Tabs as ce, TabPane as ae } from "ant-design-vue";
|
|
6
6
|
import { isMicroApp as le } from "@skyfox2000/microbase";
|
|
7
7
|
import { SERVER_HOST as B } from "@skyfox2000/fapi";
|
|
@@ -272,7 +272,7 @@ const re = /* @__PURE__ */ x({
|
|
|
272
272
|
"update:iconIndex"
|
|
273
273
|
],
|
|
274
274
|
setup(c, { emit: s }) {
|
|
275
|
-
const i =
|
|
275
|
+
const i = V(), e = c, r = s, a = j(() => {
|
|
276
276
|
if (Array.isArray(e.size)) return e.size;
|
|
277
277
|
{
|
|
278
278
|
let o = e.size;
|
|
@@ -335,7 +335,7 @@ const re = /* @__PURE__ */ x({
|
|
|
335
335
|
left: e.position ? e.position[0] : 0,
|
|
336
336
|
fontSize: e.fontsize,
|
|
337
337
|
transformOrigin: e.center ?? "center center",
|
|
338
|
-
transform: t(
|
|
338
|
+
transform: t(M)(),
|
|
339
339
|
color: e.color
|
|
340
340
|
}
|
|
341
341
|
}), [
|
|
@@ -349,7 +349,7 @@ const re = /* @__PURE__ */ x({
|
|
|
349
349
|
left: e.position ? e.position[0] : 0,
|
|
350
350
|
fontSize: e.fontsize,
|
|
351
351
|
transformOrigin: e.center ?? "center center",
|
|
352
|
-
transform: t(
|
|
352
|
+
transform: t(M)(e.angle, e.flip),
|
|
353
353
|
color: e.color
|
|
354
354
|
},
|
|
355
355
|
"aria-hidden": "true",
|
|
@@ -361,7 +361,7 @@ const re = /* @__PURE__ */ x({
|
|
|
361
361
|
_: 1
|
|
362
362
|
}, 8, ["title", "disabled", "color", "placement", "size"]));
|
|
363
363
|
}
|
|
364
|
-
}),
|
|
364
|
+
}), Me = /* @__PURE__ */ Q(pe, [["__scopeId", "data-v-0146f00c"]]), de = /* @__PURE__ */ x({
|
|
365
365
|
__name: "projectIcon",
|
|
366
366
|
props: {
|
|
367
367
|
icon: {
|
|
@@ -401,9 +401,9 @@ const re = /* @__PURE__ */ x({
|
|
|
401
401
|
const { useToken: s } = O, { token: i } = s(), e = P();
|
|
402
402
|
return k(
|
|
403
403
|
() => e.TabActive,
|
|
404
|
-
() =>
|
|
404
|
+
() => E()
|
|
405
405
|
), N(() => {
|
|
406
|
-
|
|
406
|
+
E();
|
|
407
407
|
}), (r, a) => (u(), g("div", {
|
|
408
408
|
class: "ml-5 h-fit p-0 flex items-center justify-between",
|
|
409
409
|
style: T({
|
|
@@ -446,7 +446,7 @@ const re = /* @__PURE__ */ x({
|
|
|
446
446
|
__name: "headerExits",
|
|
447
447
|
setup(c) {
|
|
448
448
|
const s = D(), i = y(!1), e = () => {
|
|
449
|
-
i.value = !1, le() ?
|
|
449
|
+
i.value = !1, le() ? Z.userLogout() : s.logout(!0);
|
|
450
450
|
};
|
|
451
451
|
return (r, a) => (u(), g(R, null, [
|
|
452
452
|
l(t(w), { title: "退出平台" }, {
|
|
@@ -512,7 +512,7 @@ const re = /* @__PURE__ */ x({
|
|
|
512
512
|
_: 1
|
|
513
513
|
}, 8, ["title"]));
|
|
514
514
|
}
|
|
515
|
-
}), be = { class: "flex items-center" },
|
|
515
|
+
}), be = { class: "flex items-center" }, Ee = /* @__PURE__ */ x({
|
|
516
516
|
__name: "index",
|
|
517
517
|
setup(c) {
|
|
518
518
|
const { useToken: s } = O, { token: i } = s(), e = F(), r = () => {
|
|
@@ -582,7 +582,7 @@ const re = /* @__PURE__ */ x({
|
|
|
582
582
|
S();
|
|
583
583
|
}
|
|
584
584
|
), N(() => {
|
|
585
|
-
|
|
585
|
+
G(s.routes, r, de, { class: "!w-5 !h-5" }), a.setTabActive(H.currentRoute.value.path), S();
|
|
586
586
|
}), (_, o) => (u(), h(t(ie), {
|
|
587
587
|
openKeys: p.value,
|
|
588
588
|
"onUpdate:openKeys": o[0] || (o[0] = (v) => p.value = v),
|
|
@@ -599,7 +599,7 @@ const re = /* @__PURE__ */ x({
|
|
|
599
599
|
setup(c) {
|
|
600
600
|
const { useToken: s } = O, { token: i } = s(), e = P();
|
|
601
601
|
k(
|
|
602
|
-
() =>
|
|
602
|
+
() => H.currentRoute.value.path,
|
|
603
603
|
(n) => {
|
|
604
604
|
n !== e.TabActive && e.setTabActive(n);
|
|
605
605
|
}
|
|
@@ -659,12 +659,12 @@ const re = /* @__PURE__ */ x({
|
|
|
659
659
|
}
|
|
660
660
|
});
|
|
661
661
|
export {
|
|
662
|
-
|
|
662
|
+
Me as I,
|
|
663
663
|
re as _,
|
|
664
664
|
de as a,
|
|
665
665
|
_e as b,
|
|
666
666
|
xe as c,
|
|
667
|
-
|
|
667
|
+
Ee as d,
|
|
668
668
|
ve as e,
|
|
669
669
|
Ue as f,
|
|
670
670
|
Re as g
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as i, createBlock as s, openBlock as l, unref as a, withCtx as p, renderSlot as f, createCommentVNode as u, mergeProps as d } from "vue";
|
|
2
2
|
import { Tooltip as I } from "ant-design-vue";
|
|
3
3
|
import { SERVER_HOST as r } from "@skyfox2000/fapi";
|
|
4
|
-
import { c as S } from "./upload-template-
|
|
4
|
+
import { c as S } from "./upload-template-CM0O990W.js";
|
|
5
5
|
const T = /* @__PURE__ */ i({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|