@skyfox2000/webui 1.2.4 → 1.2.6
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-CoDWKNFQ.js → file-upload-Cf9uxE2y.js} +1 -1
- package/lib/assets/modules/{form-excel-DitXm4uj.js → form-excel-DnROEQ0w.js} +1 -1
- package/lib/assets/modules/{index-DG2jNBuv.js → index-BkbOMv2e.js} +1 -1
- package/lib/assets/modules/{index-C4515EtU.js → index-D4mESG0b.js} +356 -364
- package/lib/assets/modules/{index-B5NckHoK.js → index-DvbJb5Ha.js} +2 -2
- package/lib/assets/modules/{menuTabs-BwX6S1WN.js → menuTabs-DgX7pUbX.js} +2 -2
- package/lib/assets/modules/{toolIcon-B5Qojob9.js → toolIcon-C0bp66dj.js} +1 -1
- package/lib/assets/modules/{uploadList-BdeV2JlK.js → uploadList-CWhqNLX9.js} +3 -3
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +3 -3
- package/lib/es/Error403/index.js +1 -1
- package/lib/es/Error404/index.js +1 -1
- package/lib/es/ExcelForm/index.js +4 -4
- package/lib/es/UploadForm/index.js +4 -4
- package/lib/stores/appInfo.d.ts +2 -5
- package/lib/webui.es.js +42 -43
- package/package.json +1 -1
- package/src/components/content/toolbar/index.vue +0 -1
- package/src/router/index.ts +1 -11
- package/src/stores/appInfo.ts +23 -32
- package/src/stores/userInfo.ts +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as A, provide as B, ref as S, watch as p, onMounted as F, createBlock as n, openBlock as r, unref as a, withCtx as t, createElementVNode as N, renderSlot as b, createVNode as V, createCommentVNode as d, createTextVNode as u, toDisplayString as m } from "vue";
|
|
2
|
-
import { _ as f } from "./index-
|
|
2
|
+
import { _ as f } from "./index-BkbOMv2e.js";
|
|
3
3
|
import { Modal as E, Space as M } from "ant-design-vue";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
|
-
import { P, o as $, d as D, b as K } from "./index-
|
|
5
|
+
import { P, o as $, d as D, b as K } from "./index-D4mESG0b.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 _, createBlock as y, createCommentVNode as I, openBlock as p, unref as t, mergeProps as C, useAttrs as q, computed as P, ref as h, watch as k, withCtx as f, createElementBlock as g, normalizeStyle as T, createElementVNode as x, inject as J, onMounted as R, createVNode as u, toDisplayString as U, Fragment as L, createTextVNode as O, reactive as Q, nextTick as W, renderList as G, withModifiers as X } from "vue";
|
|
2
|
-
import { a as w, _ as b } from "./toolIcon-
|
|
3
|
-
import { c as F, Q as j, ad as B, T as K, S as E, u as H, a as V, R as Y, r as D, ab as A } from "./index-
|
|
2
|
+
import { a as w, _ as b } from "./toolIcon-C0bp66dj.js";
|
|
3
|
+
import { c as F, Q as j, ad as B, T as K, S as E, u as H, a as V, R as Y, r as D, ab as A } from "./index-D4mESG0b.js";
|
|
4
4
|
import { theme as N, Breadcrumb as Z, Modal as ee, Flex as te, LayoutHeader as ne, Space as oe, Menu as se, Tabs as ie, TabPane as ce } from "ant-design-vue";
|
|
5
5
|
import { mainAppApis as M } from "@skyfox2000/microbase";
|
|
6
6
|
import { SERVER_HOST as z } from "@skyfox2000/fapi";
|
|
@@ -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 "./index-
|
|
4
|
+
import { c as S } from "./index-D4mESG0b.js";
|
|
5
5
|
const T = /* @__PURE__ */ i({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as $, ref as k, computed as O, watch as j, createElementBlock as p, openBlock as f, createElementVNode as r, createVNode as v, unref as l, mergeProps as B, withCtx as U, createTextVNode as E, toDisplayString as y, Fragment as M, renderList as R, normalizeClass as T, createCommentVNode as F } from "vue";
|
|
2
|
-
import { _ as V } from "./index-
|
|
2
|
+
import { _ as V } from "./index-BkbOMv2e.js";
|
|
3
3
|
import { Upload as A, Tag as K, Progress as D } from "ant-design-vue";
|
|
4
4
|
import { httpPost as I, ResStatus as Q } from "@skyfox2000/fapi";
|
|
5
|
-
import "./index-
|
|
6
|
-
import { U as o, p as q } from "./file-upload-
|
|
5
|
+
import "./index-D4mESG0b.js";
|
|
6
|
+
import { U as o, p as q } from "./file-upload-Cf9uxE2y.js";
|
|
7
7
|
import { combineParams as G } from "@skyfox2000/microbase";
|
|
8
8
|
import h from "vue-m-message";
|
|
9
9
|
import "async-validator";
|
|
@@ -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-
|
|
3
|
+
import { _ as q } from "../../assets/modules/toolIcon-C0bp66dj.js";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
|
-
import "../../assets/modules/index-
|
|
5
|
+
import "../../assets/modules/index-D4mESG0b.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-
|
|
10
|
+
import { _ as D } from "../../assets/modules/index-DvbJb5Ha.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,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as y, ref as I, watch as C, onMounted as b, resolveComponent as g, createBlock as n, openBlock as o, unref as e, withCtx as l, 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
2
|
import { Layout as f, LayoutSider as E } from "ant-design-vue";
|
|
3
|
-
import { a as z } from "../../assets/modules/toolIcon-
|
|
4
|
-
import { I as A, a as B, f as L, d as V, g as D } from "../../assets/modules/menuTabs-
|
|
5
|
-
import { ab as j, a as K, ad as M } from "../../assets/modules/index-
|
|
3
|
+
import { a as z } from "../../assets/modules/toolIcon-C0bp66dj.js";
|
|
4
|
+
import { I as A, a as B, f as L, d as V, g as D } from "../../assets/modules/menuTabs-DgX7pUbX.js";
|
|
5
|
+
import { ab as j, a as K, ad as M } from "../../assets/modules/index-D4mESG0b.js";
|
|
6
6
|
import "@skyfox2000/microbase";
|
|
7
7
|
import "@skyfox2000/fapi";
|
|
8
8
|
import P from "vue-m-message";
|
package/lib/es/Error403/index.js
CHANGED
|
@@ -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/index-
|
|
2
|
+
import { r as s } from "../../assets/modules/index-D4mESG0b.js";
|
|
3
3
|
import "@skyfox2000/microbase";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
5
|
import "vue-m-message";
|
package/lib/es/Error404/index.js
CHANGED
|
@@ -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/index-
|
|
2
|
+
import { r as s } from "../../assets/modules/index-D4mESG0b.js";
|
|
3
3
|
import "@skyfox2000/microbase";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
5
|
import "vue-m-message";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as Y, ref as r, watch as V, onMounted as Z, createBlock as ee, openBlock as d, unref as i, withCtx as _, renderSlot as le, createElementVNode as c, createVNode as m, createElementBlock as f, createCommentVNode as M, createTextVNode as O, toDisplayString as F, normalizeClass as ae, Fragment as $, renderList as P } from "vue";
|
|
2
|
-
import { _ as A } from "../../assets/modules/index-
|
|
2
|
+
import { _ as A } from "../../assets/modules/index-BkbOMv2e.js";
|
|
3
3
|
import { Modal as te, Upload as I, Alert as G, Space as re } from "ant-design-vue";
|
|
4
4
|
import { ResStatus as oe } from "@skyfox2000/fapi";
|
|
5
|
-
import { $ as se, a5 as ie } from "../../assets/modules/index-
|
|
6
|
-
import { A as ue, p as ne, U as ce } from "../../assets/modules/file-upload-
|
|
5
|
+
import { $ as se, a5 as ie } from "../../assets/modules/index-D4mESG0b.js";
|
|
6
|
+
import { A as ue, p as ne, U as ce } from "../../assets/modules/file-upload-Cf9uxE2y.js";
|
|
7
7
|
import "@skyfox2000/microbase";
|
|
8
8
|
import n from "vue-m-message";
|
|
9
|
-
import { p as ve, v as de, c as fe } from "../../assets/modules/form-excel-
|
|
9
|
+
import { p as ve, v as de, c as fe } from "../../assets/modules/form-excel-DnROEQ0w.js";
|
|
10
10
|
import "dayjs";
|
|
11
11
|
import "vue-draggable-next";
|
|
12
12
|
import pe from "@vue-office/excel";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as S, ref as m, watch as k, onMounted as z, createBlock as D, openBlock as E, unref as s, withCtx as f, createVNode as v, createTextVNode as g } from "vue";
|
|
2
|
-
import { _ as x } from "../../assets/modules/index-
|
|
2
|
+
import { _ as x } from "../../assets/modules/index-BkbOMv2e.js";
|
|
3
3
|
import { Modal as L, Space as N } from "ant-design-vue";
|
|
4
4
|
import { ResStatus as $ } from "@skyfox2000/fapi";
|
|
5
|
-
import { a1 as B } from "../../assets/modules/index-
|
|
6
|
-
import { A as R, U as A } from "../../assets/modules/file-upload-
|
|
5
|
+
import { a1 as B } from "../../assets/modules/index-D4mESG0b.js";
|
|
6
|
+
import { A as R, U as A } from "../../assets/modules/file-upload-Cf9uxE2y.js";
|
|
7
7
|
import "@skyfox2000/microbase";
|
|
8
8
|
import t from "vue-m-message";
|
|
9
9
|
import "async-validator";
|
|
10
10
|
import "dayjs";
|
|
11
11
|
import "vue-draggable-next";
|
|
12
|
-
import { _ as M } from "../../assets/modules/uploadList-
|
|
12
|
+
import { _ as M } from "../../assets/modules/uploadList-CWhqNLX9.js";
|
|
13
13
|
const W = /* @__PURE__ */ S({
|
|
14
14
|
__name: "uploadForm",
|
|
15
15
|
props: {
|
package/lib/stores/appInfo.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RouteRecordRaw } from 'vue-router';
|
|
2
2
|
import { AppInfo, RouteRecord } from '../../../502424_MicroBase';
|
|
3
3
|
import { Component } from 'vue';
|
|
4
4
|
import { StoreDefinition } from 'pinia';
|
|
5
5
|
export declare const useAppInfo: StoreDefinition<"appInfo", {
|
|
6
|
-
microRouter: any;
|
|
7
|
-
microActions: Record<string, () => void>;
|
|
8
6
|
appInfo: AppInfo & {
|
|
9
7
|
Routes: RouteRecordRaw[];
|
|
10
8
|
flattenRoutes: Record<string, RouteRecord>;
|
|
@@ -15,7 +13,6 @@ export declare const useAppInfo: StoreDefinition<"appInfo", {
|
|
|
15
13
|
ExcludeComponents: string[];
|
|
16
14
|
menuLoaded: boolean;
|
|
17
15
|
}, {}, {
|
|
18
|
-
init(router: Router, microActions: Record<string, () => void>): void;
|
|
19
16
|
loadAppList(appList?: AppInfo[]): Promise<void>;
|
|
20
17
|
getRemoteAppList(): Promise<void>;
|
|
21
18
|
toDefaultApp(url?: string): Promise<void>;
|
|
@@ -29,6 +26,6 @@ export declare const useAppInfo: StoreDefinition<"appInfo", {
|
|
|
29
26
|
}): Component;
|
|
30
27
|
excludeComponent(path: string): void;
|
|
31
28
|
matchedRoutes(key: string): RouteRecord[];
|
|
32
|
-
|
|
29
|
+
clean(): void;
|
|
33
30
|
logout(): void;
|
|
34
31
|
}>;
|
package/lib/webui.es.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { u as Xe, i as X, a as ve, c as Ze, P as te, o as ie, b as et, d as Pe, e as Ee, r as oe, f as tt, g as at, h as Fe, j as lt, k as A, l as Ne, m as Re, n as V, p as ke, q as rt, s as st, O as Oe, t as Me, _ as ot, v as nt, w as it, x as ct, y as ut, z as dt, A as Be } from "./assets/modules/index-
|
|
2
|
-
import { a7 as bl, L as xl, M as yl, S as kl, a6 as wl, a4 as Cl, a5 as Sl, a8 as $l, V as Tl, Q as Il, a2 as Dl, $ as Pl, K as El, H as Fl, a1 as Nl, R as Rl, C as Ol, X as Ml, a0 as Bl, a3 as Al, J as zl, I as Ll, N as Ul, a9 as Yl, B as Vl, Z as Kl, aa as Hl, U as jl, W as Ql, T as ql, ab as Wl, D as Gl, E as Jl, ac as Xl, G as Zl, ad as er, F as tr, Y as ar } from "./assets/modules/index-
|
|
3
|
-
import { A as rr, U as sr, a as or, g as nr, c as ir, d as cr, m as ur, p as dr, u as pr, b as fr } from "./assets/modules/file-upload-
|
|
1
|
+
import { u as Xe, i as X, a as ve, c as Ze, P as te, o as ie, b as et, d as Pe, e as Ee, r as oe, f as tt, g as at, h as Fe, j as lt, k as A, l as Ne, m as Re, n as V, p as ke, q as rt, s as st, O as Oe, t as Me, _ as ot, v as nt, w as it, x as ct, y as ut, z as dt, A as Be } from "./assets/modules/index-D4mESG0b.js";
|
|
2
|
+
import { a7 as bl, L as xl, M as yl, S as kl, a6 as wl, a4 as Cl, a5 as Sl, a8 as $l, V as Tl, Q as Il, a2 as Dl, $ as Pl, K as El, H as Fl, a1 as Nl, R as Rl, C as Ol, X as Ml, a0 as Bl, a3 as Al, J as zl, I as Ll, N as Ul, a9 as Yl, B as Vl, Z as Kl, aa as Hl, U as jl, W as Ql, T as ql, ab as Wl, D as Gl, E as Jl, ac as Xl, G as Zl, ad as er, F as tr, Y as ar } from "./assets/modules/index-D4mESG0b.js";
|
|
3
|
+
import { A as rr, U as sr, a as or, g as nr, c as ir, d as cr, m as ur, p as dr, u as pr, b as fr } from "./assets/modules/file-upload-Cf9uxE2y.js";
|
|
4
4
|
import { EnvConfig as we } from "@skyfox2000/microbase";
|
|
5
5
|
import { FrontCache as le, httpPost as Ae, ResStatus as ze, SERVER_HOST as pt, fieldMapping as re } from "@skyfox2000/fapi";
|
|
6
6
|
import ne from "vue-m-message";
|
|
7
|
-
import { defineComponent as w, createBlock as _, openBlock as m, withModifiers as Z, unref as l, useAttrs as J, withCtx as h, createElementVNode as T, createVNode as y, mergeProps as F, renderSlot as E, normalizeStyle as me, toDisplayString as
|
|
7
|
+
import { defineComponent as w, createBlock as _, openBlock as m, withModifiers as Z, unref as l, useAttrs as J, withCtx as h, createElementVNode as T, createVNode as y, mergeProps as F, renderSlot as E, normalizeStyle as me, toDisplayString as P, createCommentVNode as k, ref as b, provide as Le, watch as $, onMounted as z, createTextVNode as N, inject as he, resolveDirective as ae, withDirectives as j, computed as G, createElementBlock as C, normalizeClass as M, createSlots as Ue, useSlots as ft, Fragment as O, renderList as L, resolveDynamicComponent as vt, onUnmounted as Ye, onActivated as mt, withKeys as Ce } from "vue";
|
|
8
8
|
import "async-validator";
|
|
9
9
|
import de from "dayjs";
|
|
10
10
|
import { Popover as ht, theme as Ve, Drawer as gt, Space as ee, Form as Ke, message as _t, FormItem as He, ConfigProvider as Se, Popconfirm as bt, Button as je, DropdownButton as xt, Menu as ge, MenuItem as _e, Dropdown as pe, Checkbox as yt, Switch as kt, Table as Qe, Tree as wt, Cascader as Ct, DatePicker as St, Input as fe, InputPassword as $t, InputNumber as Tt, RangePicker as It, Textarea as Dt, Transfer as Pt, TreeSelect as Et, LayoutContent as Ft } from "ant-design-vue";
|
|
11
11
|
import { VueDraggableNext as Nt } from "vue-draggable-next";
|
|
12
|
-
import { d as qe } from "./assets/modules/uploadList-
|
|
13
|
-
import { _ as mr, a as hr } from "./assets/modules/uploadList-
|
|
14
|
-
import { c as _r, p as br, v as xr } from "./assets/modules/form-excel-
|
|
15
|
-
import { _ as B } from "./assets/modules/index-
|
|
16
|
-
import { _ as U } from "./assets/modules/toolIcon-
|
|
17
|
-
import { a as kr } from "./assets/modules/toolIcon-
|
|
18
|
-
import { _ as Q } from "./assets/modules/menuTabs-
|
|
19
|
-
import { a as Cr, c as Sr, d as $r, e as Tr, I as Ir, f as Dr, g as Pr, b as Er } from "./assets/modules/menuTabs-
|
|
20
|
-
import { _ as Nr } from "./assets/modules/index-
|
|
12
|
+
import { d as qe } from "./assets/modules/uploadList-CWhqNLX9.js";
|
|
13
|
+
import { _ as mr, a as hr } from "./assets/modules/uploadList-CWhqNLX9.js";
|
|
14
|
+
import { c as _r, p as br, v as xr } from "./assets/modules/form-excel-DnROEQ0w.js";
|
|
15
|
+
import { _ as B } from "./assets/modules/index-BkbOMv2e.js";
|
|
16
|
+
import { _ as U } from "./assets/modules/toolIcon-C0bp66dj.js";
|
|
17
|
+
import { a as kr } from "./assets/modules/toolIcon-C0bp66dj.js";
|
|
18
|
+
import { _ as Q } from "./assets/modules/menuTabs-DgX7pUbX.js";
|
|
19
|
+
import { a as Cr, c as Sr, d as $r, e as Tr, I as Ir, f as Dr, g as Pr, b as Er } from "./assets/modules/menuTabs-DgX7pUbX.js";
|
|
20
|
+
import { _ as Nr } from "./assets/modules/index-DvbJb5Ha.js";
|
|
21
21
|
const $e = (r, a, t, e = "remove") => {
|
|
22
22
|
if (!t)
|
|
23
23
|
if (e === "disable") {
|
|
@@ -333,11 +333,11 @@ const Ha = async (r, a, t) => {
|
|
|
333
333
|
let c = t.page, d = t.gridQuery;
|
|
334
334
|
return e.api || (e.api = c.api), e.authorize === void 0 && (e.authorize = c.authorize), t.isGridLoading.value = !0, Ae(e, d).then((s) => {
|
|
335
335
|
if (t.isGridLoading.value = !1, (s == null ? void 0 : s.status) === ze.SUCCESS && s.data) {
|
|
336
|
-
const f = s.data.map((
|
|
337
|
-
const x = { ...
|
|
336
|
+
const f = s.data.map((D) => {
|
|
337
|
+
const x = { ...D };
|
|
338
338
|
return u.forEach((R) => {
|
|
339
339
|
const q = R.dataIndex || R.key;
|
|
340
|
-
q && R.customRender && (x[q] = R.customRender(
|
|
340
|
+
q && R.customRender && (x[q] = R.customRender(D[q], D));
|
|
341
341
|
}), x;
|
|
342
342
|
}), S = new n({ fields: i }).parse(f), I = new Blob([`\uFEFF${S}`], { type: "text/csv" });
|
|
343
343
|
qe(I, p);
|
|
@@ -371,7 +371,7 @@ const Ha = async (r, a, t) => {
|
|
|
371
371
|
T("div", {
|
|
372
372
|
class: "text-[14px]",
|
|
373
373
|
style: me({ maxWidth: t.maxWidth })
|
|
374
|
-
},
|
|
374
|
+
}, P(t.text), 5)
|
|
375
375
|
])
|
|
376
376
|
]),
|
|
377
377
|
default: h(() => [
|
|
@@ -478,7 +478,7 @@ const Ha = async (r, a, t) => {
|
|
|
478
478
|
onClick: i[1] || (i[1] = () => l(ie)(l(n)))
|
|
479
479
|
}, {
|
|
480
480
|
default: h(() => [
|
|
481
|
-
N(
|
|
481
|
+
N(P(u.cancelText ?? "取消"), 1)
|
|
482
482
|
]),
|
|
483
483
|
_: 1
|
|
484
484
|
})) : k("", !0),
|
|
@@ -489,7 +489,7 @@ const Ha = async (r, a, t) => {
|
|
|
489
489
|
loading: l(n).isFormSaving.value
|
|
490
490
|
}, {
|
|
491
491
|
default: h(() => [
|
|
492
|
-
N(
|
|
492
|
+
N(P(u.saveAsText ?? "另存为"), 1)
|
|
493
493
|
]),
|
|
494
494
|
_: 1
|
|
495
495
|
}, 8, ["loading"])) : k("", !0),
|
|
@@ -500,7 +500,7 @@ const Ha = async (r, a, t) => {
|
|
|
500
500
|
loading: l(n).isFormSaving.value
|
|
501
501
|
}, {
|
|
502
502
|
default: h(() => [
|
|
503
|
-
N(
|
|
503
|
+
N(P(u.saveText ?? "保存"), 1)
|
|
504
504
|
]),
|
|
505
505
|
_: 1
|
|
506
506
|
}, 8, ["loading"])) : k("", !0)
|
|
@@ -588,7 +588,7 @@ const Ha = async (r, a, t) => {
|
|
|
588
588
|
label: h(() => [
|
|
589
589
|
T("span", {
|
|
590
590
|
class: M([l(o).errClass ? "text-[#ff4d4f]" : "", "w-full"])
|
|
591
|
-
},
|
|
591
|
+
}, P(i.label), 3)
|
|
592
592
|
]),
|
|
593
593
|
default: h(() => [
|
|
594
594
|
T("div", Wt, [
|
|
@@ -607,7 +607,7 @@ const Ha = async (r, a, t) => {
|
|
|
607
607
|
]),
|
|
608
608
|
_: 3
|
|
609
609
|
}, 16, ["required", "class"])) : k("", !0),
|
|
610
|
-
l(o).errClass ? (m(), C("span", Xt,
|
|
610
|
+
l(o).errClass ? (m(), C("span", Xt, P(l(o).msg), 1)) : k("", !0)
|
|
611
611
|
], 2));
|
|
612
612
|
}
|
|
613
613
|
}), Zt = { class: "w-1/3 relative mb-1" }, ea = { class: "flex items-center" }, ta = { class: "flex-grow pl-1" }, aa = {
|
|
@@ -645,12 +645,12 @@ const Ha = async (r, a, t) => {
|
|
|
645
645
|
fn: h(() => [
|
|
646
646
|
T("span", {
|
|
647
647
|
class: M([l(o).errClass ? "text-[#ff4d4f]" : "", "w-full"])
|
|
648
|
-
},
|
|
648
|
+
}, P(n.label), 3)
|
|
649
649
|
]),
|
|
650
650
|
key: "0"
|
|
651
651
|
} : void 0
|
|
652
652
|
]), 1040, ["required", "class"]),
|
|
653
|
-
l(o).msg ? (m(), C("span", aa,
|
|
653
|
+
l(o).msg ? (m(), C("span", aa, P(l(o).msg), 1)) : k("", !0)
|
|
654
654
|
]));
|
|
655
655
|
}
|
|
656
656
|
}), Xa = /* @__PURE__ */ w({
|
|
@@ -851,7 +851,7 @@ const Ha = async (r, a, t) => {
|
|
|
851
851
|
})
|
|
852
852
|
}, {
|
|
853
853
|
default: h(() => [
|
|
854
|
-
N(
|
|
854
|
+
N(P(s.label), 1)
|
|
855
855
|
]),
|
|
856
856
|
_: 2
|
|
857
857
|
}, 1032, ["type", "danger", "disabled", "onClick", "style"])), [
|
|
@@ -882,7 +882,7 @@ const Ha = async (r, a, t) => {
|
|
|
882
882
|
onClick: (v) => l(Y)(s, l(t).page, l(t), a.record)
|
|
883
883
|
}, {
|
|
884
884
|
default: h(() => [
|
|
885
|
-
N(
|
|
885
|
+
N(P(s.label), 1)
|
|
886
886
|
]),
|
|
887
887
|
_: 2
|
|
888
888
|
}, 1032, ["disabled", "onClick"])), [
|
|
@@ -974,7 +974,7 @@ const Ha = async (r, a, t) => {
|
|
|
974
974
|
class: "text-gray-700 hover:text-gray-900 select-none"
|
|
975
975
|
}, {
|
|
976
976
|
default: h(() => [
|
|
977
|
-
N(
|
|
977
|
+
N(P(s.title), 1)
|
|
978
978
|
]),
|
|
979
979
|
_: 2
|
|
980
980
|
}, 1032, ["checked", "onChange"])
|
|
@@ -1038,7 +1038,7 @@ const Ha = async (r, a, t) => {
|
|
|
1038
1038
|
disabled: l(H)(s)
|
|
1039
1039
|
}, {
|
|
1040
1040
|
default: h(() => [
|
|
1041
|
-
N(
|
|
1041
|
+
N(P(s.label), 1)
|
|
1042
1042
|
]),
|
|
1043
1043
|
_: 2
|
|
1044
1044
|
}, 1032, ["disabled"]))), 128))
|
|
@@ -1115,7 +1115,6 @@ const Ha = async (r, a, t) => {
|
|
|
1115
1115
|
return m(), C("div", oa, [
|
|
1116
1116
|
y(l(ee), null, {
|
|
1117
1117
|
default: h(() => [
|
|
1118
|
-
N(D(n.value) + " ", 1),
|
|
1119
1118
|
(m(!0), C(O, null, L(u.value, (v) => j((m(), _(l(B), {
|
|
1120
1119
|
key: v.key,
|
|
1121
1120
|
type: v.type,
|
|
@@ -1125,7 +1124,7 @@ const Ha = async (r, a, t) => {
|
|
|
1125
1124
|
onClick: (f) => l(Y)(v, l(e), l(t))
|
|
1126
1125
|
}, {
|
|
1127
1126
|
default: h(() => [
|
|
1128
|
-
N(
|
|
1127
|
+
N(P(v.label), 1)
|
|
1129
1128
|
]),
|
|
1130
1129
|
_: 2
|
|
1131
1130
|
}, 1032, ["type", "danger", "disabled", "icon", "onClick"])), [
|
|
@@ -1141,7 +1140,7 @@ const Ha = async (r, a, t) => {
|
|
|
1141
1140
|
onClick: (f) => l(Y)(v, l(e), l(t))
|
|
1142
1141
|
}, {
|
|
1143
1142
|
default: h(() => [
|
|
1144
|
-
N(
|
|
1143
|
+
N(P(v.label), 1)
|
|
1145
1144
|
]),
|
|
1146
1145
|
_: 2
|
|
1147
1146
|
}, 1032, ["disabled", "onClick"])), [
|
|
@@ -1285,10 +1284,10 @@ const Ha = async (r, a, t) => {
|
|
|
1285
1284
|
v.value = !0;
|
|
1286
1285
|
}, 50);
|
|
1287
1286
|
}), (f, g) => {
|
|
1288
|
-
var I,
|
|
1287
|
+
var I, D;
|
|
1289
1288
|
const S = ae("auth");
|
|
1290
1289
|
return m(), C(O, null, [
|
|
1291
|
-
(I = l(e).buttons) != null && I.value.length || (
|
|
1290
|
+
(I = l(e).buttons) != null && I.value.length || (D = l(e).tools) != null && D.length ? (m(), _(ca, {
|
|
1292
1291
|
key: 0,
|
|
1293
1292
|
"grid-ctrl": l(e),
|
|
1294
1293
|
"editor-ctrl": l(e).editor
|
|
@@ -1404,7 +1403,7 @@ const Ha = async (r, a, t) => {
|
|
|
1404
1403
|
}, () => [
|
|
1405
1404
|
T("div", da, [
|
|
1406
1405
|
y(l(U), { icon: g }, null, 8, ["icon"]),
|
|
1407
|
-
T("span", pa,
|
|
1406
|
+
T("span", pa, P(f), 1)
|
|
1408
1407
|
])
|
|
1409
1408
|
])
|
|
1410
1409
|
]),
|
|
@@ -1437,15 +1436,15 @@ const Ha = async (r, a, t) => {
|
|
|
1437
1436
|
);
|
|
1438
1437
|
const d = a;
|
|
1439
1438
|
n.inputEmit = d;
|
|
1440
|
-
const s = b([]), v = (I,
|
|
1441
|
-
if (!
|
|
1439
|
+
const s = b([]), v = (I, D) => {
|
|
1440
|
+
if (!D || D.length === 0) {
|
|
1442
1441
|
d("update:labels", []), d("update:value", []);
|
|
1443
1442
|
return;
|
|
1444
1443
|
}
|
|
1445
|
-
const x =
|
|
1444
|
+
const x = D.map((R) => R.label);
|
|
1446
1445
|
d("update:labels", x), d(
|
|
1447
1446
|
"update:value",
|
|
1448
|
-
|
|
1447
|
+
D.map((R) => R.value)
|
|
1449
1448
|
), u != null && u.value.errClass && p && V(p);
|
|
1450
1449
|
};
|
|
1451
1450
|
return z(() => {
|
|
@@ -1457,12 +1456,12 @@ const Ha = async (r, a, t) => {
|
|
|
1457
1456
|
}), Ne(t.autoload, t, s, n, o.value, o.value.params);
|
|
1458
1457
|
}), Ye(() => {
|
|
1459
1458
|
Re(t, n);
|
|
1460
|
-
}), (I,
|
|
1459
|
+
}), (I, D) => {
|
|
1461
1460
|
var x;
|
|
1462
1461
|
return m(), C("div", null, [
|
|
1463
1462
|
s.value.length ? k("", !0) : (m(), C("div", fa, [
|
|
1464
1463
|
y(l(it), { class: "text-[#555] mx-[5px] !ml-[10px] !w-4 !h-4" }),
|
|
1465
|
-
|
|
1464
|
+
D[0] || (D[0] = T("span", null, "数据加载中...", -1))
|
|
1466
1465
|
])),
|
|
1467
1466
|
y(l(Ct), F({
|
|
1468
1467
|
options: s.value,
|
|
@@ -1883,12 +1882,12 @@ const rl = /* @__PURE__ */ w({
|
|
|
1883
1882
|
targetKeys: c.value,
|
|
1884
1883
|
onChange: d
|
|
1885
1884
|
}, s.$attrs), {
|
|
1886
|
-
children: h(({ direction: g, disabled: S, filteredItems: I, onItemSelectAll:
|
|
1885
|
+
children: h(({ direction: g, disabled: S, filteredItems: I, onItemSelectAll: D, onItemSelect: x, selectedKeys: R }) => [
|
|
1887
1886
|
E(s.$slots, "children", {
|
|
1888
1887
|
direction: g,
|
|
1889
1888
|
disabled: S,
|
|
1890
1889
|
filteredItems: I,
|
|
1891
|
-
onItemSelectAll:
|
|
1890
|
+
onItemSelectAll: D,
|
|
1892
1891
|
onItemSelect: x,
|
|
1893
1892
|
selectedKeys: R
|
|
1894
1893
|
})
|
|
@@ -2102,7 +2101,7 @@ const rl = /* @__PURE__ */ w({
|
|
|
2102
2101
|
const t = /* @__PURE__ */ new Date(), e = { month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit" }, o = t.toLocaleString(void 0, e).replace(/\//g, "-").replace(",", "");
|
|
2103
2102
|
a.value = t.getFullYear() + "-" + o;
|
|
2104
2103
|
}, 1e3);
|
|
2105
|
-
}), (t, e) => (m(), C("div", Da,
|
|
2104
|
+
}), (t, e) => (m(), C("div", Da, P(a.value), 1));
|
|
2106
2105
|
}
|
|
2107
2106
|
});
|
|
2108
2107
|
export {
|
package/package.json
CHANGED
package/src/router/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useUserInfo } from '@/stores/userInfo';
|
|
2
|
-
import {
|
|
2
|
+
import { RouteRecord, EnvConfig } from '@skyfox2000/microbase';
|
|
3
3
|
import { RouteLocationNormalizedGeneric, RouteRecordRaw, Router, createRouter, createWebHashHistory } from 'vue-router';
|
|
4
4
|
import { useAppInfo } from '@/stores/appInfo';
|
|
5
5
|
import { Ref, ref } from 'vue';
|
|
@@ -166,16 +166,6 @@ router.beforeEach((to, _from, next) => {
|
|
|
166
166
|
}
|
|
167
167
|
});
|
|
168
168
|
|
|
169
|
-
/**
|
|
170
|
-
* 子应用更新主应用路由
|
|
171
|
-
*/
|
|
172
|
-
router.afterEach((to: RouteLocationNormalizedGeneric) => {
|
|
173
|
-
if (isMicroApp() && mainAppApis.value) {
|
|
174
|
-
const { mainAppPush } = mainAppApis.value;
|
|
175
|
-
if (mainAppPush) mainAppPush(to.hash);
|
|
176
|
-
}
|
|
177
|
-
});
|
|
178
|
-
|
|
179
169
|
/**
|
|
180
170
|
* 继续执行之前挂起的导航
|
|
181
171
|
* @param path 默认路径
|
package/src/stores/appInfo.ts
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { defineStore } from 'pinia';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { RouteRecordRaw } from 'vue-router';
|
|
3
|
+
import {
|
|
4
|
+
AppAction,
|
|
5
|
+
AppInfo,
|
|
6
|
+
AppSource,
|
|
7
|
+
isBaseMicroApp,
|
|
8
|
+
isMicroApp,
|
|
9
|
+
mainAppApis,
|
|
10
|
+
RouteRecord,
|
|
11
|
+
} from '@skyfox2000/microbase';
|
|
4
12
|
import AppRouter, { addAppRoutes, continueNavigation, flattenRoute, LOGIN_PATH } from '@/router';
|
|
5
13
|
import { usePageInfo } from './pageInfo';
|
|
6
14
|
|
|
@@ -102,10 +110,6 @@ const findFirstPage = (routes: RouteRecord[], path = ''): string | undefined =>
|
|
|
102
110
|
|
|
103
111
|
export const useAppInfo = defineStore('appInfo', {
|
|
104
112
|
state: (): {
|
|
105
|
-
/// 微前端基座路由
|
|
106
|
-
microRouter: any;
|
|
107
|
-
/// 微前端基座方法
|
|
108
|
-
microActions: Record<string, () => void>;
|
|
109
113
|
/// 当前选中的
|
|
110
114
|
appInfo: AppInfo & {
|
|
111
115
|
/**
|
|
@@ -136,8 +140,6 @@ export const useAppInfo = defineStore('appInfo', {
|
|
|
136
140
|
*/
|
|
137
141
|
menuLoaded: boolean;
|
|
138
142
|
} => ({
|
|
139
|
-
microRouter: null,
|
|
140
|
-
microActions: {},
|
|
141
143
|
appInfo: {
|
|
142
144
|
Id: '',
|
|
143
145
|
Name: '',
|
|
@@ -159,10 +161,6 @@ export const useAppInfo = defineStore('appInfo', {
|
|
|
159
161
|
menuLoaded: false,
|
|
160
162
|
}),
|
|
161
163
|
actions: {
|
|
162
|
-
init(router: Router, microActions: Record<string, () => void>) {
|
|
163
|
-
this.microRouter = router;
|
|
164
|
-
this.microActions = microActions;
|
|
165
|
-
},
|
|
166
164
|
/**
|
|
167
165
|
* 加载授权应用列表
|
|
168
166
|
*/
|
|
@@ -347,19 +345,11 @@ export const useAppInfo = defineStore('appInfo', {
|
|
|
347
345
|
usePageInfo().setTabActive(path);
|
|
348
346
|
}
|
|
349
347
|
nextTick(() => {
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
let microRouter = this.microRouter as Router;
|
|
356
|
-
microRouter.push({ path });
|
|
357
|
-
} else {
|
|
358
|
-
AppRouter.push({ path });
|
|
359
|
-
}
|
|
360
|
-
} else {
|
|
361
|
-
// 非微应用,直接使用当前应用路由AppRouter
|
|
362
|
-
AppRouter.push({ path });
|
|
348
|
+
// 直接使用当前应用路由AppRouter
|
|
349
|
+
AppRouter.push({ path });
|
|
350
|
+
if (mainAppApis.value && mainAppApis.value.mainAppPush) {
|
|
351
|
+
const fullPath = this.formatRoute(path);
|
|
352
|
+
mainAppApis.value.mainAppPush(fullPath);
|
|
363
353
|
}
|
|
364
354
|
});
|
|
365
355
|
},
|
|
@@ -433,7 +423,7 @@ export const useAppInfo = defineStore('appInfo', {
|
|
|
433
423
|
return matched.reverse();
|
|
434
424
|
},
|
|
435
425
|
|
|
436
|
-
|
|
426
|
+
clean() {
|
|
437
427
|
/// 清空信息
|
|
438
428
|
this.appInfo = {
|
|
439
429
|
Id: '',
|
|
@@ -457,13 +447,14 @@ export const useAppInfo = defineStore('appInfo', {
|
|
|
457
447
|
},
|
|
458
448
|
|
|
459
449
|
logout() {
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
450
|
+
// 清理应用信息
|
|
451
|
+
this.clean();
|
|
452
|
+
AppRouter.push({ path: LOGIN_PATH + '#/' });
|
|
453
|
+
if (isMicroApp()) {
|
|
454
|
+
if (mainAppApis.value && mainAppApis.value.mainAppPush) {
|
|
455
|
+
mainAppApis.value.mainAppPush(LOGIN_PATH + '#/');
|
|
465
456
|
}
|
|
466
|
-
}
|
|
457
|
+
}
|
|
467
458
|
},
|
|
468
459
|
},
|
|
469
460
|
persist: {
|
package/src/stores/userInfo.ts
CHANGED