@skyfox2000/webui 1.6.3 → 1.6.5

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.
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as ce, ref as R, computed as I, watch as $, resolveDirective as de, createElementBlock as m, openBlock as d, normalizeClass as z, unref as n, createElementVNode as w, withDirectives as b, createCommentVNode as y, createBlock as V, mergeProps as G, withCtx as v, createVNode as p, createTextVNode as E, toDisplayString as P, Fragment as pe, renderList as me } from "vue";
2
- import { _ as H } from "./index-DP43BJ_M.js";
3
- import { a as B, _ as K } from "./toolIcon-DTZ86PSe.js";
2
+ import { _ as H } from "./index-bB6T2Hyg.js";
3
+ import { a as B, _ as K } from "./toolIcon-BGdGDnFx.js";
4
4
  import { httpPost as N, ResStatus as j } from "@skyfox2000/fapi";
5
- import { L as X, u as Y, $ as a, v as fe, _ as he } from "./upload-template-2YQlEeTh.js";
5
+ import { L as X, u as Y, $ as a, v as fe, _ as he } from "./upload-template-CRGikg1L.js";
6
6
  import U from "vue-m-message";
7
7
  import { Upload as J, Tag as we, Popconfirm as ve, Progress as xe } from "ant-design-vue";
8
- import { U as r, f as be, p as W } from "./file-upload-B74s5Vtb.js";
8
+ import { U as r, f as be, p as W } from "./file-upload-bpiAz1SH.js";
9
9
  import { combineParams as Z } from "@skyfox2000/microbase";
10
10
  import "async-validator";
11
11
  import "dayjs";
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as V, defineAsyncComponent as J, ref as m, watch as K, onMounted as W, createElementBlock as x, openBlock as p, Fragment as z, createElementVNode as f, createVNode as N, toDisplayString as $, unref as l, createBlock as A, withKeys as v, normalizeClass as O, withModifiers as w, withCtx as L, createCommentVNode as q } from "vue";
2
2
  import "ant-design-vue";
3
- import { _ as D } from "../../assets/modules/toolIcon-DTZ86PSe.js";
3
+ import { _ as D } from "../../assets/modules/toolIcon-BGdGDnFx.js";
4
4
  import "@skyfox2000/fapi";
5
- import { $ as b } from "../../assets/modules/upload-template-2YQlEeTh.js";
5
+ import { $ as b } from "../../assets/modules/upload-template-CRGikg1L.js";
6
6
  import "vue-m-message";
7
- import { _ as Q } from "../../assets/modules/index-CXDKjQwi.js";
7
+ import { _ as Q } from "../../assets/modules/index-CwCbe9fA.js";
8
8
  import "@skyfox2000/microbase";
9
9
  import "async-validator";
10
10
  import "dayjs";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as f, ref as d, watch as _, onMounted as v, resolveComponent as h, createBlock as o, openBlock as t, withCtx as s, createElementVNode as C, normalizeClass as x, createVNode as w, KeepAlive as y, unref as n, resolveDynamicComponent as I } from "vue";
2
- import { _ as g } from "../../assets/modules/baseLayout-D6mTs3zS.js";
3
- import { al as A, a as S } from "../../assets/modules/upload-template-2YQlEeTh.js";
2
+ import { _ as g } from "../../assets/modules/baseLayout-B5lPGr_f.js";
3
+ import { al as A, a as S } from "../../assets/modules/upload-template-CRGikg1L.js";
4
4
  import "@skyfox2000/microbase";
5
5
  import "@skyfox2000/fapi";
6
6
  import b from "vue-m-message";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, createBlock as n, openBlock as p, unref as r, withCtx as e, createVNode as m, createTextVNode as c, toDisplayString as a } from "vue";
2
- import { r as s } from "../../assets/modules/upload-template-2YQlEeTh.js";
2
+ import { r as s } from "../../assets/modules/upload-template-CRGikg1L.js";
3
3
  import "@skyfox2000/microbase";
4
4
  import "@skyfox2000/fapi";
5
5
  import "vue-m-message";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, createBlock as n, openBlock as p, unref as e, withCtx as r, createVNode as m, createTextVNode as a, toDisplayString as c } from "vue";
2
- import { r as u } from "../../assets/modules/upload-template-2YQlEeTh.js";
2
+ import { r as u } from "../../assets/modules/upload-template-CRGikg1L.js";
3
3
  import "@skyfox2000/microbase";
4
4
  import "@skyfox2000/fapi";
5
5
  import "vue-m-message";
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as be, ref as p, computed as S, watch as H, onMounted as he, createBlock as Q, openBlock as f, unref as r, withCtx as D, renderSlot as W, createElementBlock as g, createCommentVNode as B, createElementVNode as b, createVNode as _, createTextVNode as J, toDisplayString as E, normalizeClass as Fe, Fragment as ie, renderList as ne } from "vue";
2
- import { _ as Y } from "../../assets/modules/index-DP43BJ_M.js";
2
+ import { _ as Y } from "../../assets/modules/index-bB6T2Hyg.js";
3
3
  import { Modal as Ce, Upload as ce, Space as Ue } from "ant-design-vue";
4
4
  import { httpGet as _e, ResStatus as de } from "@skyfox2000/fapi";
5
- import { $ as a, H as Ee, a8 as Te, af as Re } from "../../assets/modules/upload-template-2YQlEeTh.js";
5
+ import { $ as a, H as Ee, a8 as Te, af as Re } from "../../assets/modules/upload-template-CRGikg1L.js";
6
6
  import m from "vue-m-message";
7
- import { c as pe, _ as Z, h as Se, p as De, i as ke } from "../../assets/modules/index-lmz2beMc.js";
8
- import { A as Pe, p as Le, U as ue } from "../../assets/modules/file-upload-B74s5Vtb.js";
7
+ import { c as pe, _ as Z, h as Se, p as De, i as ke } from "../../assets/modules/index-jK-cEnt-.js";
8
+ import { A as Pe, p as Le, U as ue } from "../../assets/modules/file-upload-bpiAz1SH.js";
9
9
  import "@skyfox2000/microbase";
10
10
  import "dayjs";
11
11
  import "vue-draggable-next";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as f, ref as d, watch as _, onMounted as v, resolveComponent as h, createBlock as o, openBlock as t, withCtx as s, createElementVNode as C, normalizeClass as x, createVNode as w, KeepAlive as I, unref as n, resolveDynamicComponent as g } from "vue";
2
- import { _ as y } from "../../assets/modules/baseLayout-D6mTs3zS.js";
3
- import { al as A, a as S } from "../../assets/modules/upload-template-2YQlEeTh.js";
2
+ import { _ as y } from "../../assets/modules/baseLayout-B5lPGr_f.js";
3
+ import { al as A, a as S } from "../../assets/modules/upload-template-CRGikg1L.js";
4
4
  import "@skyfox2000/microbase";
5
5
  import "@skyfox2000/fapi";
6
6
  import k from "vue-m-message";
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as T, ref as l, watch as x, onMounted as F, createBlock as C, openBlock as q, unref as u, withCtx as d, createVNode as f, createTextVNode as L, toDisplayString as b } from "vue";
2
- import { _ as g } from "../../assets/modules/index-DP43BJ_M.js";
2
+ import { _ as g } from "../../assets/modules/index-bB6T2Hyg.js";
3
3
  import { Modal as D, Space as z } from "ant-design-vue";
4
4
  import { httpPost as N, ResStatus as O } from "@skyfox2000/fapi";
5
- import { ao as n, $ as w } from "../../assets/modules/upload-template-2YQlEeTh.js";
5
+ import { ao as n, $ as w } from "../../assets/modules/upload-template-CRGikg1L.js";
6
6
  import "vue-m-message";
7
- import { U as M } from "../../assets/modules/file-upload-B74s5Vtb.js";
7
+ import { U as M } from "../../assets/modules/file-upload-bpiAz1SH.js";
8
8
  import "@skyfox2000/microbase";
9
9
  import "async-validator";
10
10
  import "dayjs";
11
11
  import "vue-draggable-next";
12
- import { U as $ } from "../../assets/modules/uploadList-DlwK6xXN.js";
12
+ import { U as $ } from "../../assets/modules/uploadList-zCZpWU-U.js";
13
13
  const H = /* @__PURE__ */ T({
14
14
  __name: "templateFile",
15
15
  props: {
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as F, ref as s, watch as y, onMounted as z, createBlock as D, openBlock as _, unref as u, withCtx as p, createVNode as m, mergeProps as L, createTextVNode as w, toDisplayString as C } from "vue";
2
- import { _ as g } from "../../assets/modules/index-DP43BJ_M.js";
2
+ import { _ as g } from "../../assets/modules/index-bB6T2Hyg.js";
3
3
  import { Modal as k, Space as N } from "ant-design-vue";
4
4
  import { ResStatus as T } from "@skyfox2000/fapi";
5
- import { $ as v, ab as $ } from "../../assets/modules/upload-template-2YQlEeTh.js";
5
+ import { $ as v, ab as $ } from "../../assets/modules/upload-template-CRGikg1L.js";
6
6
  import A from "vue-m-message";
7
7
  import "@skyfox2000/microbase";
8
8
  import "async-validator";
9
9
  import "dayjs";
10
- import { A as E } from "../../assets/modules/file-upload-B74s5Vtb.js";
10
+ import { A as E } from "../../assets/modules/file-upload-bpiAz1SH.js";
11
11
  import "vue-draggable-next";
12
- import { U as B } from "../../assets/modules/uploadList-DlwK6xXN.js";
12
+ import { U as B } from "../../assets/modules/uploadList-zCZpWU-U.js";
13
13
  const W = /* @__PURE__ */ F({
14
14
  __name: "uploadForm",
15
15
  props: {
@@ -5,4 +5,7 @@ export declare const useSettingInfo: StoreDefinition<"settingInfo", SettingInfo,
5
5
  setMenuCollapse(status: boolean): void;
6
6
  getTableColumns(pageUrl: string): Record<string, any>[];
7
7
  setTableColumns(pageUrl: string, columns: Record<string, any>[]): void;
8
+ setUserInfoPersist(status: boolean): void;
9
+ setShowExit(status: boolean): void;
10
+ setShowLanguage(status: boolean): void;
8
11
  }>;
package/lib/webui.es.js CHANGED
@@ -1,7 +1,7 @@
1
- import { u as Ae, i as ve, $ as y, a as ze, L as $t, c as Dt, P as oe, o as Qe, b as Ft, d as Pt, e as Je, g as Xe, r as fe, f as Ze, h as et, j as tt, k as It, l as be, m as at, _ as lt, n as rt, O as Oe, p as Et, q as ot, s as Lt, t as Ut, v as te, w as Mt, x as Nt, y as Rt, z as Bt, A as At, B as zt, C as se, D as Ot, E as de, F as Kt, G as jt, H as st, M as Vt } from "./assets/modules/upload-template-2YQlEeTh.js";
2
- import { ah as Vr, V as Yr, W as Gr, a0 as Wr, ag as Hr, ae as qr, af as Qr, ai as Jr, as as Xr, a3 as Zr, Y as eo, at as to, ac as ao, a8 as lo, T as ro, a9 as oo, ab as so, aq as no, ar as io, Z as co, K as uo, J as po, a5 as fo, aa as vo, ad as mo, U as go, X as ho, aj as bo, I as xo, a7 as yo, ak as wo, a2 as ko, a4 as _o, au as Co, a1 as So, ap as To, ao as $o, al as Do, N as Fo, Q as Po, am as Io, S as Eo, an as Lo, R as Uo, a6 as Mo } from "./assets/modules/upload-template-2YQlEeTh.js";
3
- import { f as Yt, p as Ye } from "./assets/modules/file-upload-B74s5Vtb.js";
4
- import { A as Ro, U as Bo } from "./assets/modules/file-upload-B74s5Vtb.js";
1
+ import { u as Ae, i as ve, $ as y, a as ze, L as $t, c as Dt, P as oe, o as Qe, b as Ft, d as Pt, e as Je, g as Xe, r as fe, f as Ze, h as et, j as tt, k as It, l as be, m as at, _ as lt, n as rt, O as Oe, p as Et, q as ot, s as Lt, t as Ut, v as te, w as Mt, x as Nt, y as Rt, z as Bt, A as At, B as zt, C as se, D as Ot, E as de, F as Kt, G as jt, H as st, M as Vt } from "./assets/modules/upload-template-CRGikg1L.js";
2
+ import { ah as Vr, V as Yr, W as Gr, a0 as Wr, ag as Hr, ae as qr, af as Qr, ai as Jr, as as Xr, a3 as Zr, Y as eo, at as to, ac as ao, a8 as lo, T as ro, a9 as oo, ab as so, aq as no, ar as io, Z as co, K as uo, J as po, a5 as fo, aa as vo, ad as mo, U as go, X as ho, aj as bo, I as xo, a7 as yo, ak as wo, a2 as ko, a4 as _o, au as Co, a1 as So, ap as To, ao as $o, al as Do, N as Fo, Q as Po, am as Io, S as Eo, an as Lo, R as Uo, a6 as Mo } from "./assets/modules/upload-template-CRGikg1L.js";
3
+ import { f as Yt, p as Ye } from "./assets/modules/file-upload-bpiAz1SH.js";
4
+ import { A as Ro, U as Bo } from "./assets/modules/file-upload-bpiAz1SH.js";
5
5
  import { EnvConfig as Ee, isMicroApp as Gt } from "@skyfox2000/microbase";
6
6
  import { FrontCache as he, httpPost as Ke, ResStatus as je, SERVER_HOST as Wt, fieldMapping as xe } from "@skyfox2000/fapi";
7
7
  import ae from "vue-m-message";
@@ -10,15 +10,15 @@ import "async-validator";
10
10
  import Re from "dayjs";
11
11
  import { Popover as Jt, theme as ct, Drawer as Xt, Space as pe, Form as ut, message as Zt, FormItem as dt, ConfigProvider as we, Popconfirm as pt, DropdownButton as ft, Menu as Te, MenuItem as $e, Dropdown as Be, Checkbox as ea, List as ta, ListItem as aa, Card as la, Button as vt, Table as mt, Tree as ra, Cascader as oa, DatePicker as sa, Input as me, InputPassword as na, InputNumber as ia, RangePicker as ca, Textarea as ua, TimePicker as da, Transfer as pa, TreeSelect as fa, Upload as va, Image as ma, LayoutContent as ga } from "ant-design-vue";
12
12
  import { VueDraggableNext as ha } from "vue-draggable-next";
13
- import { d as ba } from "./assets/modules/uploadList-DlwK6xXN.js";
14
- import { C as zo, U as Oo, a as Ko, p as jo } from "./assets/modules/uploadList-DlwK6xXN.js";
15
- import { c as gt } from "./assets/modules/index-lmz2beMc.js";
16
- import { _ as Yo, h as Go, b as Wo, a as Ho, d as qo, e as Qo, g as Jo, f as Xo, n as Zo, p as es, t as ts, v as as } from "./assets/modules/index-lmz2beMc.js";
17
- import { _ as ee } from "./assets/modules/index-DP43BJ_M.js";
18
- import { _ as Y } from "./assets/modules/toolIcon-DTZ86PSe.js";
19
- import { a as rs } from "./assets/modules/toolIcon-DTZ86PSe.js";
20
- import { _ as ss, b as ns, c as is, d as cs, e as us, I as ds, f as ps, g as fs, a as vs } from "./assets/modules/menuTabs-DGAhbfbK.js";
21
- import { _ as gs } from "./assets/modules/index-CXDKjQwi.js";
13
+ import { d as ba } from "./assets/modules/uploadList-zCZpWU-U.js";
14
+ import { C as zo, U as Oo, a as Ko, p as jo } from "./assets/modules/uploadList-zCZpWU-U.js";
15
+ import { c as gt } from "./assets/modules/index-jK-cEnt-.js";
16
+ import { _ as Yo, h as Go, b as Wo, a as Ho, d as qo, e as Qo, g as Jo, f as Xo, n as Zo, p as es, t as ts, v as as } from "./assets/modules/index-jK-cEnt-.js";
17
+ import { _ as ee } from "./assets/modules/index-bB6T2Hyg.js";
18
+ import { _ as Y } from "./assets/modules/toolIcon-BGdGDnFx.js";
19
+ import { a as rs } from "./assets/modules/toolIcon-BGdGDnFx.js";
20
+ import { _ as ss, b as ns, c as is, d as cs, e as us, I as ds, f as ps, g as fs, a as vs } from "./assets/modules/menuTabs-VaUjCTnJ.js";
21
+ import { _ as gs } from "./assets/modules/index-CwCbe9fA.js";
22
22
  import { _ as ce } from "./assets/modules/_plugin-vue_export-helper-CHgC5LLL.js";
23
23
  const We = (r, a, e, t = "remove") => {
24
24
  if (!e)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyfox2000/webui",
3
- "version": "1.6.3",
3
+ "version": "1.6.5",
4
4
  "description": "后台前端通用组件定义, 支持国际化",
5
5
  "type": "module",
6
6
  "keywords": [],
@@ -17,8 +17,8 @@ const onCollapseClick = () => {
17
17
  settingInfoStore.setMenuCollapse(!settingInfoStore.menuCollapse);
18
18
  };
19
19
 
20
- // 检查是否有可用语言来决定是否显示Language组件和相应的分隔符
21
- const showLanguageSelector = getAvailableLanguages().length > 1;
20
+ const showLanguageSelector = ((settingInfoStore as any).showLanguage ?? true) && getAvailableLanguages().length > 1;
21
+
22
22
  </script>
23
23
  <template>
24
24
  <LayoutHeader
@@ -48,8 +48,8 @@ const showLanguageSelector = getAvailableLanguages().length > 1;
48
48
  <Language v-if="showLanguageSelector" />
49
49
  <div v-if="showLanguageSelector" class="w-[1px] h-[16px] bg-[#d9d9d9] mx-[3px]"></div>
50
50
  <User />
51
- <div class="w-[1px] h-[16px] bg-[#d9d9d9] mx-[3px]"></div>
52
- <HeaderExits />
51
+ <div v-if="(settingInfoStore as any).showExit" class="w-[1px] h-[16px] bg-[#d9d9d9] mx-[3px]"></div>
52
+ <HeaderExits v-if="(settingInfoStore as any).showExit" />
53
53
  </Space>
54
54
  </div>
55
55
  </LayoutHeader>
@@ -3,11 +3,15 @@ import { SettingInfo } from '@skyfox2000/microbase';
3
3
  import { defineStore } from 'pinia';
4
4
 
5
5
  export const useSettingInfo = defineStore('settingInfo', {
6
- state: (): SettingInfo => ({
7
- fullscreen: false,
8
- menuCollapse: false,
9
- tableColumns: {},
10
- }),
6
+ state: () =>
7
+ ({
8
+ fullscreen: false,
9
+ menuCollapse: false,
10
+ tableColumns: {},
11
+ userInfoPersist: true,
12
+ showExit: true,
13
+ showLanguage: true,
14
+ }) as SettingInfo,
11
15
  actions: {
12
16
  /**
13
17
  * 设置全屏
@@ -42,6 +46,24 @@ export const useSettingInfo = defineStore('settingInfo', {
42
46
  },
43
47
  });
44
48
  },
49
+ /**
50
+ * 设置用户信息是否持久化
51
+ */
52
+ setUserInfoPersist(status: boolean) {
53
+ (this as any).userInfoPersist = status;
54
+ },
55
+ /**
56
+ * 设置是否显示退出按钮
57
+ */
58
+ setShowExit(status: boolean) {
59
+ (this as any).showExit = status;
60
+ },
61
+ /**
62
+ * 设置是否显示语言选择
63
+ */
64
+ setShowLanguage(status: boolean) {
65
+ (this as any).showLanguage = status;
66
+ },
45
67
  },
46
68
  persist: false,
47
69
  });
@@ -385,15 +385,5 @@ export const useUserInfo = defineStore('userInfo', {
385
385
  return Promise.resolve();
386
386
  },
387
387
  },
388
- persist: !isMicroApp() && EnvConfig.VITE_IS_JCIAPP !== "true"
389
- ? {
390
- key: 'MICROAPP_USER_INFO',
391
- storage: localStorage,
392
- pick: ['token', 'userInfo'], // 只存储token和userInfo
393
- afterHydrate: (ctx: any) => {
394
- // 加载后自动调用init()验证是否过期
395
- ctx.store.init();
396
- },
397
- }
398
- : false,
388
+ persist: false,
399
389
  });