@huyooo/ui 0.5.2 → 0.5.3
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,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as f, createElementBlock as n, openBlock as t, createElementVNode as c, createCommentVNode as p, toDisplayString as k, ref as
|
|
1
|
+
import { defineComponent as f, createElementBlock as n, openBlock as t, createElementVNode as c, createCommentVNode as p, toDisplayString as k, ref as x, onMounted as A, onUnmounted as U, Fragment as q, renderList as H, normalizeClass as C, normalizeStyle as S, watch as B, createVNode as w, unref as b, createBlock as P, resolveComponent as R, computed as M, renderSlot as V } from "vue";
|
|
2
2
|
import { _ as l } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
@@ -31,9 +31,9 @@ const Q = {
|
|
|
31
31
|
},
|
|
32
32
|
setup(o) {
|
|
33
33
|
const e = o;
|
|
34
|
-
return (s,
|
|
34
|
+
return (s, r) => (t(), n("div", Q, [c("h1", X, k(e.title), 1), e.description ? (t(), n("p", Y, k(e.description), 1)) : p("", !0)]));
|
|
35
35
|
}
|
|
36
|
-
}),
|
|
36
|
+
}), Be = /* @__PURE__ */ l(Z, [["__scopeId", "data-v-209a7bef"]]), ee = {
|
|
37
37
|
class: "HeaderMenus"
|
|
38
38
|
}, te = {
|
|
39
39
|
key: 0,
|
|
@@ -43,7 +43,7 @@ const Q = {
|
|
|
43
43
|
class: "mobile-menu"
|
|
44
44
|
}, se = {
|
|
45
45
|
class: "mobile-menu-content"
|
|
46
|
-
}, ae = ["onClick"],
|
|
46
|
+
}, ae = ["onClick"], re = /* @__PURE__ */ f({
|
|
47
47
|
__name: "HeaderMenus",
|
|
48
48
|
props: {
|
|
49
49
|
menus: {
|
|
@@ -59,7 +59,7 @@ const Q = {
|
|
|
59
59
|
setup(o, {
|
|
60
60
|
emit: e
|
|
61
61
|
}) {
|
|
62
|
-
const s = o,
|
|
62
|
+
const s = o, r = e, a = x(!1), u = x(!1);
|
|
63
63
|
function h() {
|
|
64
64
|
u.value = window.innerWidth <= 1024;
|
|
65
65
|
}
|
|
@@ -69,14 +69,14 @@ const Q = {
|
|
|
69
69
|
function m() {
|
|
70
70
|
a.value = !1;
|
|
71
71
|
}
|
|
72
|
-
function v(
|
|
73
|
-
|
|
72
|
+
function v(i) {
|
|
73
|
+
r("change", i), m();
|
|
74
74
|
}
|
|
75
|
-
function _(
|
|
76
|
-
return s.activateKey ===
|
|
75
|
+
function _(i) {
|
|
76
|
+
return s.activateKey === i.path;
|
|
77
77
|
}
|
|
78
|
-
function $(
|
|
79
|
-
|
|
78
|
+
function $(i) {
|
|
79
|
+
r("change", i);
|
|
80
80
|
}
|
|
81
81
|
function y() {
|
|
82
82
|
h(), u.value || m();
|
|
@@ -85,7 +85,7 @@ const Q = {
|
|
|
85
85
|
h(), window.addEventListener("resize", y);
|
|
86
86
|
}), U(() => {
|
|
87
87
|
window.removeEventListener("resize", y);
|
|
88
|
-
}), (
|
|
88
|
+
}), (i, z) => (t(), n("div", ee, [u.value ? p("", !0) : (t(), n("div", te, [(t(!0), n(q, null, H(s.menus, (d, I) => (t(), n("div", {
|
|
89
89
|
key: I,
|
|
90
90
|
class: C(["headerLink", {
|
|
91
91
|
activate: _(d)
|
|
@@ -116,7 +116,7 @@ const Q = {
|
|
|
116
116
|
onClick: (T) => v(d)
|
|
117
117
|
}, k(d.name), 11, ae))), 128))])])) : p("", !0)]));
|
|
118
118
|
}
|
|
119
|
-
}),
|
|
119
|
+
}), ie = /* @__PURE__ */ l(re, [["__scopeId", "data-v-67bf8ea1"]]), ce = ["src"], ue = /* @__PURE__ */ f({
|
|
120
120
|
__name: "Logo",
|
|
121
121
|
props: {
|
|
122
122
|
name: {
|
|
@@ -144,9 +144,9 @@ const Q = {
|
|
|
144
144
|
setup(o, {
|
|
145
145
|
emit: e
|
|
146
146
|
}) {
|
|
147
|
-
const s = o,
|
|
147
|
+
const s = o, r = e;
|
|
148
148
|
function a() {
|
|
149
|
-
|
|
149
|
+
r("to");
|
|
150
150
|
}
|
|
151
151
|
return (u, h) => (t(), n("div", {
|
|
152
152
|
class: "Logo",
|
|
@@ -187,13 +187,13 @@ const Q = {
|
|
|
187
187
|
const e = o, {
|
|
188
188
|
show: s
|
|
189
189
|
} = K(), {
|
|
190
|
-
isLoggedIn:
|
|
190
|
+
isLoggedIn: r
|
|
191
191
|
} = G(), {
|
|
192
192
|
appsData: a
|
|
193
193
|
} = W(), {
|
|
194
194
|
menus: u,
|
|
195
195
|
hasPermission: h
|
|
196
|
-
} = N(e.menuType), g =
|
|
196
|
+
} = N(e.menuType), g = x(""), m = j(), v = J();
|
|
197
197
|
function _() {
|
|
198
198
|
L(() => {
|
|
199
199
|
m.push({
|
|
@@ -205,27 +205,27 @@ const Q = {
|
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
207
|
function $(y) {
|
|
208
|
-
const
|
|
209
|
-
if (!h(
|
|
210
|
-
|
|
208
|
+
const i = y.path;
|
|
209
|
+
if (!h(i)) {
|
|
210
|
+
r.value || (s.value = !0);
|
|
211
211
|
return;
|
|
212
212
|
}
|
|
213
213
|
L(() => {
|
|
214
|
-
m.push(
|
|
214
|
+
m.push(i), g.value = i, window.scrollTo({
|
|
215
215
|
top: 0,
|
|
216
216
|
behavior: "smooth"
|
|
217
217
|
});
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
|
-
return
|
|
220
|
+
return B(() => v.path, () => {
|
|
221
221
|
g.value = O(v.matched, e.menuType, v.path);
|
|
222
222
|
}, {
|
|
223
223
|
immediate: !0
|
|
224
|
-
}), (y,
|
|
224
|
+
}), (y, i) => (t(), n("div", de, [c("div", pe, [w(le, {
|
|
225
225
|
icon: b(a).applicationLogoUrl,
|
|
226
226
|
name: b(a).name,
|
|
227
227
|
onTo: _
|
|
228
|
-
}, null, 8, ["icon", "name"])]), c("div", fe, [w(
|
|
228
|
+
}, null, 8, ["icon", "name"])]), c("div", fe, [w(ie, {
|
|
229
229
|
menus: b(u),
|
|
230
230
|
activateKey: g.value,
|
|
231
231
|
onChange: $
|
|
@@ -240,7 +240,7 @@ const Q = {
|
|
|
240
240
|
}, ge = {
|
|
241
241
|
key: 0,
|
|
242
242
|
class: "loading"
|
|
243
|
-
}, ve = /* @__PURE__ */ f({
|
|
243
|
+
}, ve = "linear-gradient(to bottom, #fefdff, #f9f6fe, #f2eefd, #ebe8fd, #e2e1fd, #dfe0fd, #dcdffd, #d9defd, #dde2fd, #e0e5fd, #e4e9fd, #e8ecfd)", ye = /* @__PURE__ */ f({
|
|
244
244
|
__name: "DefaultLayout",
|
|
245
245
|
props: {
|
|
246
246
|
menuType: {
|
|
@@ -251,19 +251,20 @@ const Q = {
|
|
|
251
251
|
default: !0
|
|
252
252
|
},
|
|
253
253
|
backgroundImage: {
|
|
254
|
-
default: "
|
|
254
|
+
default: ""
|
|
255
255
|
}
|
|
256
256
|
},
|
|
257
257
|
setup(o) {
|
|
258
258
|
const e = o, {
|
|
259
259
|
isChecking: s
|
|
260
260
|
} = F();
|
|
261
|
-
return (
|
|
262
|
-
const u =
|
|
261
|
+
return (r, a) => {
|
|
262
|
+
const u = R("RouterView");
|
|
263
263
|
return t(), n("div", {
|
|
264
264
|
class: "layout",
|
|
265
265
|
style: S({
|
|
266
|
-
|
|
266
|
+
backgroundImage: e.backgroundImage || ve,
|
|
267
|
+
backgroundAttachment: "fixed"
|
|
267
268
|
})
|
|
268
269
|
}, [w(_e, {
|
|
269
270
|
"menu-type": e.menuType,
|
|
@@ -275,7 +276,7 @@ const Q = {
|
|
|
275
276
|
}))])], 4);
|
|
276
277
|
};
|
|
277
278
|
}
|
|
278
|
-
}), Re = /* @__PURE__ */ l(
|
|
279
|
+
}), Re = /* @__PURE__ */ l(ye, [["__scopeId", "data-v-c86c5eb9"]]), be = /* @__PURE__ */ f({
|
|
279
280
|
__name: "Gradientbackground",
|
|
280
281
|
props: {
|
|
281
282
|
width: {
|
|
@@ -313,14 +314,14 @@ const Q = {
|
|
|
313
314
|
}
|
|
314
315
|
},
|
|
315
316
|
setup(o) {
|
|
316
|
-
const e = o, s =
|
|
317
|
+
const e = o, s = M(() => ({
|
|
317
318
|
pointerEvents: "none",
|
|
318
319
|
position: "absolute",
|
|
319
320
|
zIndex: e.zIndex,
|
|
320
321
|
width: e.width,
|
|
321
322
|
height: e.height,
|
|
322
323
|
filter: `blur(${e.blur})`
|
|
323
|
-
})),
|
|
324
|
+
})), r = M(() => ({
|
|
324
325
|
width: "100%",
|
|
325
326
|
height: "100%",
|
|
326
327
|
background: e.background
|
|
@@ -333,12 +334,12 @@ const Q = {
|
|
|
333
334
|
style: S(s.value)
|
|
334
335
|
}, [c("div", {
|
|
335
336
|
class: "ellipsis-item",
|
|
336
|
-
style: S(
|
|
337
|
+
style: S(r.value)
|
|
337
338
|
}, null, 4)], 4));
|
|
338
339
|
}
|
|
339
|
-
}), Ve = /* @__PURE__ */ l(
|
|
340
|
+
}), Ve = /* @__PURE__ */ l(be, [["__scopeId", "data-v-b6461ac4"]]), ke = {
|
|
340
341
|
class: "SvgIcon"
|
|
341
|
-
},
|
|
342
|
+
}, Se = ["href", "fill"], we = /* @__PURE__ */ f({
|
|
342
343
|
__name: "SvgIcon",
|
|
343
344
|
props: {
|
|
344
345
|
prefix: {
|
|
@@ -357,26 +358,26 @@ const Q = {
|
|
|
357
358
|
}
|
|
358
359
|
},
|
|
359
360
|
setup(o) {
|
|
360
|
-
const e = o, s =
|
|
361
|
-
return (
|
|
361
|
+
const e = o, s = M(() => `#${e.prefix ?? "icon"}-${e.name}`);
|
|
362
|
+
return (r, a) => (t(), n("svg", ke, [c("use", {
|
|
362
363
|
href: s.value,
|
|
363
364
|
fill: e.color
|
|
364
|
-
}, null, 8,
|
|
365
|
+
}, null, 8, Se)]));
|
|
365
366
|
}
|
|
366
|
-
}),
|
|
367
|
+
}), De = /* @__PURE__ */ l(we, [["__scopeId", "data-v-0a9de94e"]]), $e = {}, Ie = {
|
|
367
368
|
class: "WidthContainer"
|
|
368
369
|
};
|
|
369
|
-
function
|
|
370
|
-
return t(), n("div",
|
|
370
|
+
function Ce(o, e) {
|
|
371
|
+
return t(), n("div", Ie, [V(o.$slots, "default", {}, void 0, !0)]);
|
|
371
372
|
}
|
|
372
|
-
const
|
|
373
|
+
const Ee = /* @__PURE__ */ l($e, [["render", Ce], ["__scopeId", "data-v-d06aac1f"]]);
|
|
373
374
|
export {
|
|
374
|
-
|
|
375
|
+
Be as C,
|
|
375
376
|
Re as D,
|
|
376
377
|
Ve as G,
|
|
377
378
|
_e as H,
|
|
378
379
|
le as L,
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
380
|
+
De as S,
|
|
381
|
+
Ee as W,
|
|
382
|
+
ie as a
|
|
382
383
|
};
|
package/dist/common.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as s, a as o } from "./CollapseItem-Cw1vcdLu.js";
|
|
2
|
-
import { C as r, D as n, G as l, H as C, a as m, L as p, S as u, W as d } from "./WidthContainer-
|
|
2
|
+
import { C as r, D as n, G as l, H as C, a as m, L as p, S as u, W as d } from "./WidthContainer-C30YFs9X.js";
|
|
3
3
|
import { C as i, E as x } from "./CustomTable-kfI18phy.js";
|
|
4
4
|
import { M, a as g } from "./Menu-BKBnsDJ8.js";
|
|
5
5
|
export {
|
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import { C as i4 } from "./Clipboard-CGm0G1dN.js";
|
|
|
17
17
|
import { F as C4, a as r4, c as c4, b as l4, d as d4 } from "./FeedbackItem-Day3rfSw.js";
|
|
18
18
|
import { L as f4, a as _4, b as h4, c as g4, d as u4, B as L4, C as m4, e as F4, f as w4, g as y4, h as M4, D as v4, i as Z4, j as x4, P as V4, Q as H4, k as U4, l as E4, R as k4, m as G4, n as S4, o as A4, p as D4, q as B4, r as b4, s as P4, t as O4, u as I4, v as T4, w as $4, x as N4, y as R4, z as W4, A as z4, V as q4, E as j4, F as Q4, G as J4, H as K4, S as X4, T as Y4, I as e6, J as t6, K as o6, U as a6, M as s6, N as i6, O as n6 } from "./LandingPageSectionTabs-DPTZIwiJ.js";
|
|
19
19
|
import { C as r6, a as c6 } from "./CollapseItem-Cw1vcdLu.js";
|
|
20
|
-
import { C as d6, D as p6, G as f6, H as _6, a as h6, L as g6, S as u6, W as L6 } from "./WidthContainer-
|
|
20
|
+
import { C as d6, D as p6, G as f6, H as _6, a as h6, L as g6, S as u6, W as L6 } from "./WidthContainer-C30YFs9X.js";
|
|
21
21
|
import { C as F6, E as w6 } from "./CustomTable-kfI18phy.js";
|
|
22
22
|
import { M as M6, a as v6 } from "./Menu-BKBnsDJ8.js";
|
|
23
23
|
import { S as x6 } from "./PaySubscriptions-Dp8y1fdJ.js";
|