@das-fed/upf-web 6.4.0-dev.151 → 6.4.0-dev.153

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.
@@ -94,6 +94,7 @@ const qt = (f) => {
94
94
  const v = e.meta || {};
95
95
  return v.keepAlive = v.keepAlive ?? (A == null ? void 0 : A.keepAlive) ?? !0, { ...e, meta: v };
96
96
  }), lb = (f) => {
97
+ var u;
97
98
  f || (f = {});
98
99
  const A = T(!0);
99
100
  Promise.all([sr(f), Hr(f)]).then(() => {
@@ -102,7 +103,7 @@ const qt = (f) => {
102
103
  const { container: e, component: v, props: r } = (f == null ? void 0 : f.root) || {}, n = rr(v || i7, r);
103
104
  n.use(st, f), n.use(n7);
104
105
  const { router: P } = qt(f);
105
- return n.use(P), n.mount(e || "#app"), { app: n, router: P, loading: A, store: n7 };
106
+ return n.use(P), n.mount(e || "#app"), (u = window.top) != null && u.vueRouter || window.top && (window.top.vueRouter = P), { app: n, router: P, loading: A, store: n7 };
106
107
  }, Ht = {
107
108
  // 按钮
108
109
  详情: { "zh-CN": "详情", en: "Details", _appCode: "framework" },
@@ -13886,11 +13887,11 @@ T("@das-fed/upf-web");
13886
13887
  const sc = [
13887
13888
  {
13888
13889
  path: wA,
13889
- component: () => import("./index-BucWanON.js")
13890
+ component: () => import("./index-C-0tJ-Hi.js")
13890
13891
  },
13891
13892
  {
13892
13893
  path: Kv,
13893
- component: () => import("./index-BqTsE-wO.js")
13894
+ component: () => import("./index-CeHC-OKX.js")
13894
13895
  }
13895
13896
  ], Mb = {
13896
13897
  routes: sc,
Binary file
@@ -6,7 +6,7 @@ import { DasSpin as x } from "@das-fed/upf-ui/packages/components/spin/index";
6
6
  import { getTabInfo as T } from "@das-fed/upf-utils/common-info";
7
7
  import { setShowLayout as b } from "@das-fed/upf-utils/common-tools";
8
8
  import { createService as E } from "@das-fed/upf-utils/create-api-service";
9
- import { u as L, p as P, a as u, c as f, b as q, l as B, g as K, d as M } from "./index-C05MU1yC.js";
9
+ import { u as L, p as P, a as u, c as f, b as q, l as B, g as K, d as M } from "./index-B4ANVb9Q.js";
10
10
  const N = "v1", O = E(`/api/justauth/client/${N}`), V = O.get("/visitor/kingdee/auth/user/auth_code"), z = /* @__PURE__ */ k({
11
11
  __name: "index",
12
12
  setup(F) {
Binary file
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as r } from "vue";
2
- import { _ as c } from "./index-C05MU1yC.js";
2
+ import { _ as c } from "./index-B4ANVb9Q.js";
3
3
  const o = {};
4
4
  function t(n, _) {
5
5
  return r(), e("div");
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { J as e, A as t, C as n, B as i, D as r, e as u, m as o, w as m, o as p, f as g, k as D, v as l, y as L, z as b, h as c, i as h, G as A, H as T, q as y, E as R, F as W, K as I, I as M, s as F, j as V, n as f, r as k, x as v, t as w } from "./index-C05MU1yC.js";
1
+ import { J as e, A as t, C as n, B as i, D as r, e as u, m as o, w as m, o as p, f as g, k as D, v as l, y as L, z as b, h as c, i as h, G as A, H as T, q as y, E as R, F as W, K as I, I as M, s as F, j as V, n as f, r as k, x as v, t as w } from "./index-B4ANVb9Q.js";
2
2
  export {
3
3
  e as DasMainAppLayout,
4
4
  t as DasWebLayout,
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@das-fed/upf-web",
3
- "version": "6.4.0-dev.151",
3
+ "version": "6.4.0-dev.153",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "dependencies": {
7
- "@das-fed/upf-ui": "6.4.0-dev.151",
8
- "@das-fed/upf-utils": "6.4.0-dev.151",
9
- "@das-fed/upf-web": "6.4.0-dev.151",
10
- "@das-fed/upf-web-components": "6.4.0-dev.151",
7
+ "@das-fed/upf-ui": "6.4.0-dev.153",
8
+ "@das-fed/upf-utils": "6.4.0-dev.153",
9
+ "@das-fed/upf-web": "6.4.0-dev.153",
10
+ "@das-fed/upf-web-components": "6.4.0-dev.153",
11
11
  "@microsoft/signalr": "^8.0.7",
12
12
  "@vueuse/core": "^9.13.0",
13
13
  "animate.css": "^4.1.1",
@@ -19,7 +19,7 @@
19
19
  "vue-router": "^4.4.0"
20
20
  },
21
21
  "devDependencies": {
22
- "@das-fed/upf-cli": "6.4.0-dev.151",
22
+ "@das-fed/upf-cli": "6.4.0-dev.153",
23
23
  "@types/crypto-js": "^4.2.2",
24
24
  "@types/lodash": "^4.14.194",
25
25
  "@types/lodash-es": "^4.17.12",
@@ -1,31 +1,31 @@
1
- import { ref as x, createApp as O } from "vue";
2
- import { initTheme as P } from "@das-fed/upf-web/packages/theme/index";
3
- import { initI18n as W } from "@das-fed/upf-web/packages/i18n/index";
4
- import { DasWebLayout as $ } from "@das-fed/upf-web/packages/layout/index";
5
- import { createPinia as j } from "pinia";
6
- import k from "pinia-plugin-persistedstate";
7
- import { createRouter as y, createWebHistory as D } from "vue-router";
8
- const N = {
9
- install: (e, a) => {
1
+ import { ref as o, createApp as x } from "vue";
2
+ import { initTheme as w } from "@das-fed/upf-web/packages/theme/index";
3
+ import { initI18n as O } from "@das-fed/upf-web/packages/i18n/index";
4
+ import { DasWebLayout as P } from "@das-fed/upf-web/packages/layout/index";
5
+ import { createPinia as W } from "pinia";
6
+ import $ from "pinia-plugin-persistedstate";
7
+ import { createRouter as j, createWebHistory as k } from "vue-router";
8
+ const y = {
9
+ install: (e, u) => {
10
10
  var l;
11
- const c = (l = a == null ? void 0 : a.plugins) == null ? void 0 : l.glob;
12
- c && Object.values(c).sort((t, u) => (t.index ?? 0) - (u.index ?? 0)).filter((t) => t ? !!(t.default && t.default.install || t.install) : !1).forEach((t) => {
13
- t.default && t.default.install && e.use(t.default, a), t.install && e.use(t, a);
11
+ const c = (l = u == null ? void 0 : u.plugins) == null ? void 0 : l.glob;
12
+ c && Object.values(c).sort((t, a) => (t.index ?? 0) - (a.index ?? 0)).filter((t) => t ? !!(t.default && t.default.install || t.install) : !1).forEach((t) => {
13
+ t.default && t.default.install && e.use(t.default, u), t.install && e.use(t, u);
14
14
  });
15
15
  }
16
- }, d = j();
17
- d.use(k);
18
- const B = (e) => {
19
- var i, h, b, A, g;
20
- const a = ((i = e == null ? void 0 : e.router) == null ? void 0 : i.routerBase) ?? "/", c = ((h = e == null ? void 0 : e.router) == null ? void 0 : h.options) || {};
21
- let l = Object.assign(((b = e == null ? void 0 : e.router) == null ? void 0 : b.glob) || {});
22
- const t = Object.values(l).filter((f) => !!f).flat().sort((f, m) => (f.index ?? 0) - (m.index ?? 0)), u = [];
16
+ }, d = W();
17
+ d.use($);
18
+ const D = (e) => {
19
+ var h, b, p, A, g;
20
+ const u = ((h = e == null ? void 0 : e.router) == null ? void 0 : h.routerBase) ?? "/", c = ((b = e == null ? void 0 : e.router) == null ? void 0 : b.options) || {};
21
+ let l = Object.assign(((p = e == null ? void 0 : e.router) == null ? void 0 : p.glob) || {});
22
+ const t = Object.values(l).filter((f) => !!f).flat().sort((f, m) => (f.index ?? 0) - (m.index ?? 0)), a = [];
23
23
  (A = e == null ? void 0 : e.microApps) == null || A.map((f) => {
24
- var p;
25
- const m = Object.values(((p = f.router) == null ? void 0 : p.glob) || {}).filter((r) => !!r).flat().sort((r, v) => (r.index ?? 0) - (v.index ?? 0));
26
- u.push(
24
+ var R;
25
+ const m = Object.values(((R = f.router) == null ? void 0 : R.glob) || {}).filter((r) => !!r).flat().sort((r, v) => (r.index ?? 0) - (v.index ?? 0));
26
+ a.push(
27
27
  ...m.map((r) => ({ ...r, path: `/${f.microAppName}${r.path}` }))
28
- ), u.push(
28
+ ), a.push(
29
29
  ...m.filter((r) => !!r.path).filter((r) => r.path !== "").filter((r) => r.path !== "/").filter((r) => !r.path.startsWith(`/${r.microAppName}`)).map((r) => ({
30
30
  path: r.path,
31
31
  redirect: `/${f.microAppName}${r.path}`,
@@ -33,26 +33,27 @@ const B = (e) => {
33
33
  }))
34
34
  );
35
35
  });
36
- const s = ((g = e == null ? void 0 : e.router) == null ? void 0 : g.routers) || [], R = [
37
- ...n(t, e),
38
- ...n(s, e),
39
- ...n(u, e)
36
+ const s = ((g = e == null ? void 0 : e.router) == null ? void 0 : g.routers) || [], n = [
37
+ ...i(t, e),
38
+ ...i(s, e),
39
+ ...i(a, e)
40
40
  ];
41
- return { router: y({ history: D(a), routes: R, ...c }) };
42
- }, n = (e, a) => e.map((c) => {
41
+ return { router: j({ history: k(u), routes: n, ...c }) };
42
+ }, i = (e, u) => e.map((c) => {
43
43
  const l = c.meta || {};
44
- return l.keepAlive = l.keepAlive ?? (a == null ? void 0 : a.keepAlive) ?? !0, { ...c, meta: l };
45
- }), w = (e) => {
44
+ return l.keepAlive = l.keepAlive ?? (u == null ? void 0 : u.keepAlive) ?? !0, { ...c, meta: l };
45
+ }), q = (e) => {
46
+ var n;
46
47
  e || (e = {});
47
- const a = x(!0);
48
- Promise.all([P(e), W(e)]).then(() => {
49
- a.value = !1;
48
+ const u = o(!0);
49
+ Promise.all([w(e), O(e)]).then(() => {
50
+ u.value = !1;
50
51
  });
51
- const { container: c, component: l, props: t } = (e == null ? void 0 : e.root) || {}, u = O(l || $, t);
52
- u.use(N, e), u.use(d);
53
- const { router: s } = B(e);
54
- return u.use(s), u.mount(c || "#app"), { app: u, router: s, loading: a, store: d };
52
+ const { container: c, component: l, props: t } = (e == null ? void 0 : e.root) || {}, a = x(l || P, t);
53
+ a.use(y, e), a.use(d);
54
+ const { router: s } = D(e);
55
+ return a.use(s), a.mount(c || "#app"), (n = window.top) != null && n.vueRouter || window.top && (window.top.vueRouter = s), { app: a, router: s, loading: u, store: d };
55
56
  };
56
57
  export {
57
- w as createDasWebApp
58
+ q as createDasWebApp
58
59
  };
Binary file
Binary file