@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 +3 -2
- package/dist/index.mjs +24 -18
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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,
|
|
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
|
|
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 =
|
|
3257
|
-
r > s
|
|
3256
|
+
const r = l.scrollWidth, s = e.value.parentNode.clientWidth;
|
|
3257
|
+
t.value || r > s && (t.value = !0);
|
|
3258
3258
|
}
|
|
3259
3259
|
}
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
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:
|
|
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
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
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
|
|
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.
|
|
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",
|