@gonsin/gview 2.0.36 → 2.0.37

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/CHANGELOG.md CHANGED
@@ -5,8 +5,9 @@
5
5
  + 🐛 fix:
6
6
  `2.0.36` fix(layout): 修改侧边菜单栏
7
7
  `2.0.36` fix(GTab): 修改样式
8
- `2.0.36`
9
- `2.0.36`
8
+ `2.0.37` fix: 修复登录后加载语言问题
9
+ `2.0.37` fix: 菜单显示省略修改
10
+ `2.0.37` fix(http): 请求授权问题修复
10
11
 
11
12
  ### 2.0.31 ~ 2.0.35
12
13
 
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  var fa = Object.defineProperty;
2
2
  var ha = (n, e, t) => e in n ? fa(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
3
  var Ve = (n, e, t) => (ha(n, typeof e != "symbol" ? e + "" : e, t), t);
4
- import { defineComponent as oe, ref as Y, computed as O, resolveComponent as G, openBlock as y, createBlock as k, normalizeClass as R, unref as c, withCtx as M, createElementBlock as q, Fragment as ke, renderList as Ae, createVNode as D, createTextVNode as re, toDisplayString as ee, createCommentVNode as j, nextTick as pa, createElementVNode as ae, normalizeStyle as dn, renderSlot as $e, onMounted as ht, onBeforeUnmount as ft, isRef as Vn, Transition as ga, mergeProps as rt, createSlots as Nt, normalizeProps as Xt, guardReactiveProps as Zt, inject as Ye, useSlots as Co, withModifiers as on, resolveDynamicComponent as va, TransitionGroup as ya, toRefs as ba, watch as we, provide as ko, reactive as Mn, defineAsyncComponent as wa, onBeforeMount as _t, toRaw as an, shallowRef as Ma } from "vue";
4
+ import { defineComponent as oe, ref as Y, computed as O, resolveComponent as G, openBlock as y, createBlock as k, normalizeClass as R, unref as c, withCtx as M, createElementBlock as q, Fragment as ke, renderList as Ae, createVNode as D, createTextVNode as re, toDisplayString as ee, createCommentVNode as j, nextTick as pa, createElementVNode as ae, normalizeStyle as dn, renderSlot as $e, watch as we, onMounted as ht, onBeforeUnmount as ft, isRef as Vn, Transition as ga, mergeProps as rt, createSlots as Nt, normalizeProps as Xt, guardReactiveProps as Zt, inject as Ye, useSlots as Co, withModifiers as on, resolveDynamicComponent as va, TransitionGroup as ya, toRefs as ba, provide as ko, reactive as Mn, defineAsyncComponent as wa, onBeforeMount as _t, toRaw as an, shallowRef as Ma } from "vue";
5
5
  import { useRouter as pt, useRoute as xt } from "vue-router";
6
6
  import { defineStore as mn, storeToRefs as Ta } from "pinia";
7
7
  import { createI18n as Ca, useI18n as ka } from "vue-i18n";
@@ -2712,7 +2712,7 @@ const Fe = mn("setting", {
2712
2712
  },
2713
2713
  async initUserLang(n) {
2714
2714
  if (n) {
2715
- je.setItem(Ft, n);
2715
+ je.setItem(Ft, n), this.userLang = n;
2716
2716
  const { setupI18n: e } = Ee();
2717
2717
  await e(n);
2718
2718
  }
@@ -3249,21 +3249,25 @@ const Fe = mn("setting", {
3249
3249
  title: null
3250
3250
  },
3251
3251
  setup(n) {
3252
- const e = Y(!1);
3253
- function t(a) {
3252
+ const e = Y(), t = Y(!1);
3253
+ function o(a) {
3254
3254
  const l = a.relatedTarget;
3255
3255
  if (l) {
3256
- const r = l.scrollWidth, s = l.clientWidth;
3257
- r > s ? e.value = !0 : e.value = !1;
3256
+ const r = l.scrollWidth, s = e.value.parentNode.clientWidth;
3257
+ t.value || r > s && (t.value = !0);
3258
3258
  }
3259
3259
  }
3260
- function o() {
3261
- e.value = !1;
3262
- }
3263
- return (a, l) => {
3260
+ return we(
3261
+ () => t.value,
3262
+ () => {
3263
+ t.value && setTimeout(() => {
3264
+ t.value = !1;
3265
+ }, 3e3);
3266
+ }
3267
+ ), (a, l) => {
3264
3268
  const r = G("t-tooltip");
3265
3269
  return y(), k(r, {
3266
- visible: e.value,
3270
+ visible: t.value,
3267
3271
  content: n.title,
3268
3272
  showArrow: !1,
3269
3273
  placement: "bottom",
@@ -3272,9 +3276,10 @@ const Fe = mn("setting", {
3272
3276
  }, {
3273
3277
  default: M(() => [
3274
3278
  ae("span", {
3275
- onMouseover: t,
3276
- onMouseleave: o
3277
- }, ee(n.title), 33)
3279
+ ref_key: "titleRef",
3280
+ ref: e,
3281
+ onMouseover: o
3282
+ }, ee(n.title), 545)
3278
3283
  ]),
3279
3284
  _: 1
3280
3285
  }, 8, ["visible", "content"]);
@@ -3827,12 +3832,12 @@ class nr {
3827
3832
  ), this.service.interceptors.response.use(
3828
3833
  (t) => {
3829
3834
  const { data: o } = t, { state: a, message: l } = o;
3830
- if (a) {
3835
+ if (a != null) {
3831
3836
  if (a === 302)
3832
3837
  return ue.error(l), this.router && this.router.push({
3833
3838
  name: "login"
3834
3839
  }), o;
3835
- if (a === "-409") {
3840
+ if (a == "-409") {
3836
3841
  const { device: r, uuid: s } = o.data;
3837
3842
  if (r && s) {
3838
3843
  if (this.router) {
@@ -10042,9 +10047,10 @@ const un = ze(os), as = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
10042
10047
  _: 1
10043
10048
  }, 8, ["title"]));
10044
10049
  }
10045
- }), rs = "@gonsin/gview", is = "2.0.36", ss = "dist/index.mjs", cs = "dist/types/index.d.ts", us = [
10050
+ }), rs = "@gonsin/gview", is = "2.0.37", ss = "dist/index.mjs", cs = "dist/types/index.d.ts", us = [
10046
10051
  "dist",
10047
- "README.md"
10052
+ "README.md",
10053
+ "CHANGELOG.md"
10048
10054
  ], ds = {
10049
10055
  dev: "cd develop && vite --host",
10050
10056
  preview: "cd develop && vite preview",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gonsin/gview",
3
- "version": "2.0.36",
3
+ "version": "2.0.37",
4
4
  "main": "dist/index.mjs",
5
5
  "typings": "dist/types/index.d.ts",
6
6
  "files": [