@skyfox2000/webui 1.2.11 → 1.3.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/.vscode/settings.json +1 -1
- package/lib/assets/modules/{file-upload-CGyzCx7I.js → file-upload-C4GVmWjB.js} +1 -1
- package/lib/assets/modules/{form-excel-DWirWVPA.js → form-excel-Cr2hcL1s.js} +3 -3
- package/lib/assets/modules/{index-Czk7DDWM.js → index-D5onbqkl.js} +2 -2
- package/lib/assets/modules/{index-C1zkNPmi.js → index-DjBruVH-.js} +1 -1
- package/lib/assets/modules/{menuTabs-BOax-dro.js → menuTabs-B9fCWfN1.js} +36 -36
- package/lib/assets/modules/{toolIcon-vJF7OgP6.js → toolIcon-DKTf30Tq.js} +1 -1
- package/lib/assets/modules/{uploadList-DaUjVXLU.js → uploadList-CY57np42.js} +980 -923
- package/lib/assets/modules/uploadList-D2lisNHt.js +327 -0
- package/lib/components/form/autoComplete/index.vue.d.ts +15 -52
- package/lib/components/form/cascader/index.vue.d.ts +16 -56
- package/lib/components/form/checkbox/index.vue.d.ts +15 -54
- package/lib/components/form/index.d.ts +1 -1
- package/lib/components/form/propEditor/index.vue.d.ts +1 -7
- package/lib/components/form/radio/index.vue.d.ts +15 -54
- package/lib/components/form/select/index.vue.d.ts +15 -60
- package/lib/components/form/switch/index.vue.d.ts +62 -29
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +6 -6
- package/lib/es/Error403/index.js +1 -1
- package/lib/es/Error404/index.js +1 -1
- package/lib/es/ExcelForm/index.js +37 -37
- package/lib/es/UploadForm/index.js +4 -4
- package/lib/index.d.ts +1 -1
- package/lib/typings/form.d.ts +19 -0
- package/lib/typings/option.d.ts +93 -74
- package/lib/utils/options.d.ts +4 -7
- package/lib/utils/page.d.ts +5 -0
- package/lib/webui.css +1 -1
- package/lib/webui.es.js +861 -851
- package/package.json +17 -17
- package/src/components/content/form/formItem.vue +2 -2
- package/src/components/form/autoComplete/index.vue +29 -16
- package/src/components/form/cascader/index.vue +25 -9
- package/src/components/form/checkbox/index.vue +26 -10
- package/src/components/form/index.ts +1 -1
- package/src/components/form/propEditor/index.vue +6 -21
- package/src/components/form/radio/index.vue +26 -10
- package/src/components/form/select/index.vue +38 -40
- package/src/components/form/switch/index.vue +23 -5
- package/src/index.ts +8 -1
- package/src/typings/form.d.ts +19 -0
- package/src/typings/option.d.ts +93 -73
- package/src/utils/form-excel.ts +2 -2
- package/src/utils/options.ts +58 -62
- package/src/utils/page.ts +41 -0
- package/lib/assets/modules/uploadList-BW23uSvi.js +0 -369
package/.vscode/settings.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"explorer.fileNesting.patterns": {
|
|
6
6
|
"*.ts": "$(capture).test.ts, $(capture).test.tsx",
|
|
7
7
|
"*.tsx": "$(capture).test.ts, $(capture).test.tsx",
|
|
8
|
-
"package.json": "index.html,pnpm-lock.yaml,pnpm-workspace.yaml,LICENSE,.gitignore,.gitattributes,.gitpod.yml,CNAME,README*,.npmrc,.browserslistrc,.env.*,env.d.ts,.prettierrc,.eslintrc.js,*.md,.cursorignore",
|
|
8
|
+
"package.json": "index.html,pnpm-lock.yaml,pnpm-workspace.yaml,LICENSE,.gitignore,.gitattributes,.gitpod.yml,CNAME,README*,.npmrc,.browserslistrc,.env.*,env.d.ts,.prettierrc,.eslintrc.js,*.md,.cursorignore,.npmignore",
|
|
9
9
|
"vite.config.ts": "tsconfig.*.json,postcss.config.ts,tailwind.config.ts,tsconfig.json"
|
|
10
10
|
},
|
|
11
11
|
"editor.formatOnSave": true,
|
|
@@ -2,7 +2,7 @@ var m = Object.defineProperty;
|
|
|
2
2
|
var E = (t, r, n) => r in t ? m(t, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[r] = n;
|
|
3
3
|
var d = (t, r, n) => E(t, typeof r != "symbol" ? r + "" : r, n);
|
|
4
4
|
import { hostUrl as v } from "@skyfox2000/fapi";
|
|
5
|
-
import {
|
|
5
|
+
import { ae as S, ad as w, u as g } from "./uploadList-CY57np42.js";
|
|
6
6
|
import { mainAppApis as a } from "@skyfox2000/microbase";
|
|
7
7
|
import y from "dayjs";
|
|
8
8
|
import p from "vue-m-message";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import k from "async-validator";
|
|
2
2
|
import { httpPost as J, ResStatus as C } from "@skyfox2000/fapi";
|
|
3
|
-
import { i as N,
|
|
3
|
+
import { i as N, ag as R } from "./uploadList-CY57np42.js";
|
|
4
4
|
import E from "vue-m-message";
|
|
5
5
|
const F = async (d) => {
|
|
6
|
-
const o = await import("exceljs"), g = new o.Workbook();
|
|
6
|
+
const o = await import("exceljs"), g = new o.default.Workbook();
|
|
7
7
|
await g.xlsx.load(d);
|
|
8
8
|
const c = g.worksheets[0];
|
|
9
9
|
if (!c)
|
|
@@ -49,7 +49,7 @@ const F = async (d) => {
|
|
|
49
49
|
e && e.length > 0 && e.forEach((f) => {
|
|
50
50
|
r.includes(f) || r.push(f);
|
|
51
51
|
});
|
|
52
|
-
const a = new g.Workbook(), n = a.addWorksheet("Sheet1"), l = 15, y = /* @__PURE__ */ new Map();
|
|
52
|
+
const a = new g.default.Workbook(), n = a.addWorksheet("Sheet1"), l = 15, y = /* @__PURE__ */ new Map();
|
|
53
53
|
i.forEach(({ row: f, col: p, color: u }) => {
|
|
54
54
|
const v = `${f}-${p}`;
|
|
55
55
|
y.set(v, u || "FFFF0000");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as F, provide as _, ref as w, watch as p, onMounted as B, createBlock as n, openBlock as r, unref as a, withCtx as i, createElementVNode as N, renderSlot as b, 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-DjBruVH-.js";
|
|
3
3
|
import { Modal as D, Space as E } from "ant-design-vue";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
|
-
import { P as M, d as P, o as $, b as K } from "./uploadList-
|
|
5
|
+
import { P as M, d as P, o as $, b as K } from "./uploadList-CY57np42.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-DKTf30Tq.js";
|
|
4
4
|
const C = /* @__PURE__ */ d({
|
|
5
5
|
inheritAttrs: !1,
|
|
6
6
|
__name: "index",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as x, createBlock as h, createCommentVNode as I, openBlock as u, unref as t, mergeProps as C, useAttrs as q, computed as j, ref as y, watch as
|
|
2
|
-
import { a as w, _ as
|
|
3
|
-
import { c as D,
|
|
1
|
+
import { defineComponent as x, createBlock as h, createCommentVNode as I, openBlock as u, unref as t, mergeProps as C, useAttrs as q, computed as j, ref as y, watch as k, withCtx as d, createElementBlock as g, normalizeStyle as T, createElementVNode as m, inject as J, onMounted as N, createVNode as l, toDisplayString as $, Fragment as L, createTextVNode as K, reactive as W, nextTick as Y, renderList as G, withModifiers as Q } from "vue";
|
|
2
|
+
import { a as w, _ as b } from "./toolIcon-DKTf30Tq.js";
|
|
3
|
+
import { c as D, S as E, af as P, V as U, U as M, u as F, a as V, T as X, r as H, ad as z } from "./uploadList-CY57np42.js";
|
|
4
4
|
import { _ as Z } 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
|
-
import { mainAppApis as
|
|
6
|
+
import { mainAppApis as R } from "@skyfox2000/microbase";
|
|
7
7
|
import { SERVER_HOST as B } from "@skyfox2000/fapi";
|
|
8
8
|
import "vue-m-message";
|
|
9
9
|
import "async-validator";
|
|
@@ -279,12 +279,12 @@ const le = /* @__PURE__ */ x({
|
|
|
279
279
|
return [o, o];
|
|
280
280
|
}
|
|
281
281
|
}), n = y(e.icon), f = y(e.iconIndex);
|
|
282
|
-
|
|
282
|
+
k(
|
|
283
283
|
() => e.icon,
|
|
284
284
|
(o) => {
|
|
285
285
|
n.value = o;
|
|
286
286
|
}
|
|
287
|
-
),
|
|
287
|
+
), k(
|
|
288
288
|
() => e.iconIndex,
|
|
289
289
|
(o) => {
|
|
290
290
|
f.value = o, n.value = e.icons[o];
|
|
@@ -399,33 +399,33 @@ const le = /* @__PURE__ */ x({
|
|
|
399
399
|
__name: "index",
|
|
400
400
|
setup(c) {
|
|
401
401
|
const { useToken: s } = O, { token: i } = s(), e = P();
|
|
402
|
-
return
|
|
402
|
+
return k(
|
|
403
403
|
() => e.TabActive,
|
|
404
|
-
() =>
|
|
404
|
+
() => U()
|
|
405
405
|
), N(() => {
|
|
406
|
-
|
|
406
|
+
U();
|
|
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({
|
|
410
410
|
backgroundColor: t(i).colorBgContainer
|
|
411
411
|
})
|
|
412
412
|
}, [
|
|
413
|
-
l(t(
|
|
413
|
+
l(t(b), {
|
|
414
414
|
icon: "icon-home",
|
|
415
415
|
class: "w-[15px] h-[15px]"
|
|
416
416
|
}),
|
|
417
417
|
a[0] || (a[0] = m("span", { class: "leading-[2.5] mx-[6px] text-[rgba(0,0,0,0.45)]" }, ">", -1)),
|
|
418
418
|
l(t(ee), {
|
|
419
|
-
routes: t(
|
|
419
|
+
routes: t(M),
|
|
420
420
|
separator: ""
|
|
421
421
|
}, {
|
|
422
422
|
itemRender: d(({ route: n }) => [
|
|
423
423
|
m("span", de, $(n.breadcrumbName), 1),
|
|
424
|
-
l(t(
|
|
424
|
+
l(t(b), {
|
|
425
425
|
icon: n.icon,
|
|
426
426
|
fontsize: "15px"
|
|
427
427
|
}, null, 8, ["icon"]),
|
|
428
|
-
n.index < t(
|
|
428
|
+
n.index < t(M).length - 1 ? (u(), g("span", me, ">")) : I("", !0)
|
|
429
429
|
]),
|
|
430
430
|
_: 1
|
|
431
431
|
}, 8, ["routes"])
|
|
@@ -446,12 +446,12 @@ const le = /* @__PURE__ */ x({
|
|
|
446
446
|
__name: "headerExits",
|
|
447
447
|
setup(c) {
|
|
448
448
|
const s = F(), i = y(!1), e = () => {
|
|
449
|
-
i.value = !1,
|
|
449
|
+
i.value = !1, R.value ? R.value.userLogout() : s.logout();
|
|
450
450
|
};
|
|
451
451
|
return (r, a) => (u(), g(L, null, [
|
|
452
452
|
l(t(w), { title: "退出平台" }, {
|
|
453
453
|
default: d(() => [
|
|
454
|
-
l(t(
|
|
454
|
+
l(t(b), {
|
|
455
455
|
icon: "icon-logout",
|
|
456
456
|
onClick: a[0] || (a[0] = (n) => i.value = !0),
|
|
457
457
|
clickable: "",
|
|
@@ -477,7 +477,7 @@ const le = /* @__PURE__ */ x({
|
|
|
477
477
|
style: { padding: "0 32px", margin: "20px 0" }
|
|
478
478
|
}, {
|
|
479
479
|
default: d(() => [
|
|
480
|
-
l(t(
|
|
480
|
+
l(t(b), {
|
|
481
481
|
icon: "icon-question-circle",
|
|
482
482
|
color: "orange",
|
|
483
483
|
class: "w-[60px] h-[60px]"
|
|
@@ -512,10 +512,10 @@ const le = /* @__PURE__ */ x({
|
|
|
512
512
|
_: 1
|
|
513
513
|
}, 8, ["title"]));
|
|
514
514
|
}
|
|
515
|
-
}),
|
|
515
|
+
}), ke = { class: "flex items-center" }, Ee = /* @__PURE__ */ x({
|
|
516
516
|
__name: "index",
|
|
517
517
|
setup(c) {
|
|
518
|
-
const { useToken: s } = O, { token: i } = s(), e =
|
|
518
|
+
const { useToken: s } = O, { token: i } = s(), e = V(), r = () => {
|
|
519
519
|
e.setMenuCollapse(!e.menuCollapse);
|
|
520
520
|
};
|
|
521
521
|
return (a, n) => (u(), h(t(oe), {
|
|
@@ -529,8 +529,8 @@ const le = /* @__PURE__ */ x({
|
|
|
529
529
|
})
|
|
530
530
|
}, {
|
|
531
531
|
default: d(() => [
|
|
532
|
-
m("div",
|
|
533
|
-
l(t(
|
|
532
|
+
m("div", ke, [
|
|
533
|
+
l(t(b), {
|
|
534
534
|
icon: "icon-menu",
|
|
535
535
|
clickable: "",
|
|
536
536
|
class: "w-[18px] h-[18px]",
|
|
@@ -556,33 +556,33 @@ const le = /* @__PURE__ */ x({
|
|
|
556
556
|
_: 1
|
|
557
557
|
}, 8, ["style"]));
|
|
558
558
|
}
|
|
559
|
-
}),
|
|
559
|
+
}), Ue = /* @__PURE__ */ x({
|
|
560
560
|
__name: "index",
|
|
561
561
|
props: {
|
|
562
562
|
routes: {}
|
|
563
563
|
},
|
|
564
564
|
setup(c) {
|
|
565
|
-
const s = c, i = y([]), e = y([]), r =
|
|
565
|
+
const s = c, i = y([]), e = y([]), r = W([]), a = P(), n = (_) => {
|
|
566
566
|
z().push(_.key.toString());
|
|
567
|
-
}, f =
|
|
567
|
+
}, f = V(), p = y([]), S = () => {
|
|
568
568
|
let _ = a.TabActive;
|
|
569
569
|
const o = _.split("/");
|
|
570
570
|
o.pop(), i.value = [o.join("/")], f.menuCollapse || (p.value = [o.join("/")]), e.value = [_];
|
|
571
571
|
};
|
|
572
|
-
return
|
|
572
|
+
return k(
|
|
573
573
|
() => f.menuCollapse,
|
|
574
574
|
(_) => {
|
|
575
|
-
_ || (p.value = [],
|
|
575
|
+
_ || (p.value = [], Y(() => {
|
|
576
576
|
p.value = [...i.value];
|
|
577
577
|
}));
|
|
578
578
|
}
|
|
579
|
-
),
|
|
579
|
+
), k(
|
|
580
580
|
() => a.TabActive,
|
|
581
581
|
() => {
|
|
582
582
|
S();
|
|
583
583
|
}
|
|
584
584
|
), N(() => {
|
|
585
|
-
X(s.routes, r, pe, { class: "!w-5 !h-5" }), a.setTabActive(
|
|
585
|
+
X(s.routes, r, pe, { 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),
|
|
@@ -594,12 +594,12 @@ const le = /* @__PURE__ */ x({
|
|
|
594
594
|
onClick: n
|
|
595
595
|
}, null, 8, ["openKeys", "selectedKeys", "items"]));
|
|
596
596
|
}
|
|
597
|
-
}),
|
|
597
|
+
}), be = { class: "flex items-center" }, Se = { class: "flex" }, Ie = ["onClick"], Me = /* @__PURE__ */ x({
|
|
598
598
|
__name: "menuTabs",
|
|
599
599
|
setup(c) {
|
|
600
600
|
const { useToken: s } = O, { token: i } = s(), e = P();
|
|
601
|
-
|
|
602
|
-
() =>
|
|
601
|
+
k(
|
|
602
|
+
() => H.currentRoute.value.path,
|
|
603
603
|
(n) => {
|
|
604
604
|
n !== e.TabActive && e.setTabActive(n);
|
|
605
605
|
}
|
|
@@ -620,11 +620,11 @@ const le = /* @__PURE__ */ x({
|
|
|
620
620
|
onTabClick: r
|
|
621
621
|
}, {
|
|
622
622
|
default: d(() => [
|
|
623
|
-
(u(!0), g(L, null,
|
|
623
|
+
(u(!0), g(L, null, G(t(e).TabPanes, (p) => (u(), h(t(ae), {
|
|
624
624
|
key: p.key
|
|
625
625
|
}, {
|
|
626
626
|
tab: d(() => [
|
|
627
|
-
m("div",
|
|
627
|
+
m("div", be, [
|
|
628
628
|
m("span", Se, $(p.title), 1),
|
|
629
629
|
l(t(w), {
|
|
630
630
|
title: "关闭",
|
|
@@ -635,9 +635,9 @@ const le = /* @__PURE__ */ x({
|
|
|
635
635
|
t(e).TabPanes.length > 1 && p.closable ? (u(), g("div", {
|
|
636
636
|
key: 0,
|
|
637
637
|
class: "inline-block mx-auto relative flex items-center",
|
|
638
|
-
onClick:
|
|
638
|
+
onClick: Q((S) => a(p.key), ["stop"])
|
|
639
639
|
}, [
|
|
640
|
-
l(t(
|
|
640
|
+
l(t(b), {
|
|
641
641
|
icon: "icon-new",
|
|
642
642
|
angle: 45,
|
|
643
643
|
clickable: "",
|
|
@@ -666,6 +666,6 @@ export {
|
|
|
666
666
|
ge as c,
|
|
667
667
|
Ee as d,
|
|
668
668
|
xe as e,
|
|
669
|
-
|
|
670
|
-
|
|
669
|
+
Ue as f,
|
|
670
|
+
Me as g
|
|
671
671
|
};
|
|
@@ -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 "./uploadList-
|
|
4
|
+
import { c as S } from "./uploadList-CY57np42.js";
|
|
5
5
|
const T = /* @__PURE__ */ i({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|