@huyooo/ui 0.5.0 → 0.5.2
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
|
|
1
|
+
import { defineComponent as f, createElementBlock as n, openBlock as t, createElementVNode as c, createCommentVNode as p, toDisplayString as k, ref as M, onMounted as A, onUnmounted as U, Fragment as q, renderList as H, normalizeClass as C, normalizeStyle as S, watch as R, createVNode as w, unref as b, createBlock as P, resolveComponent as V, computed as x, renderSlot as B } from "vue";
|
|
2
2
|
import { _ as l } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
@@ -15,7 +15,7 @@ const Q = {
|
|
|
15
15
|
}, Y = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "description"
|
|
18
|
-
}, Z = /* @__PURE__ */
|
|
18
|
+
}, Z = /* @__PURE__ */ f({
|
|
19
19
|
__name: "ContentHead",
|
|
20
20
|
props: {
|
|
21
21
|
title: {
|
|
@@ -33,7 +33,7 @@ const Q = {
|
|
|
33
33
|
const e = o;
|
|
34
34
|
return (s, i) => (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
|
+
}), Ue = /* @__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"], ie = /* @__PURE__ */
|
|
46
|
+
}, ae = ["onClick"], ie = /* @__PURE__ */ f({
|
|
47
47
|
__name: "HeaderMenus",
|
|
48
48
|
props: {
|
|
49
49
|
menus: {
|
|
@@ -59,38 +59,38 @@ const Q = {
|
|
|
59
59
|
setup(o, {
|
|
60
60
|
emit: e
|
|
61
61
|
}) {
|
|
62
|
-
const s = o, i = e, a =
|
|
63
|
-
function
|
|
62
|
+
const s = o, i = e, a = M(!1), u = M(!1);
|
|
63
|
+
function h() {
|
|
64
64
|
u.value = window.innerWidth <= 1024;
|
|
65
65
|
}
|
|
66
66
|
function g() {
|
|
67
67
|
a.value = !a.value;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function m() {
|
|
70
70
|
a.value = !1;
|
|
71
71
|
}
|
|
72
72
|
function v(r) {
|
|
73
|
-
i("change", r),
|
|
73
|
+
i("change", r), m();
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function _(r) {
|
|
76
76
|
return s.activateKey === r.path;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function $(r) {
|
|
79
79
|
i("change", r);
|
|
80
80
|
}
|
|
81
81
|
function y() {
|
|
82
|
-
|
|
82
|
+
h(), u.value || m();
|
|
83
83
|
}
|
|
84
84
|
return A(() => {
|
|
85
|
-
|
|
85
|
+
h(), window.addEventListener("resize", y);
|
|
86
86
|
}), U(() => {
|
|
87
87
|
window.removeEventListener("resize", y);
|
|
88
|
-
}), (r, z) => (t(), n("div", ee, [u.value ? p("", !0) : (t(), n("div", te, [(t(!0), n(q, null, H(s.menus, (d,
|
|
89
|
-
key:
|
|
88
|
+
}), (r, 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
|
+
key: I,
|
|
90
90
|
class: C(["headerLink", {
|
|
91
|
-
activate:
|
|
91
|
+
activate: _(d)
|
|
92
92
|
}]),
|
|
93
|
-
onClick: (T) =>
|
|
93
|
+
onClick: (T) => $(d)
|
|
94
94
|
}, k(d.name), 11, ne))), 128))])), u.value ? (t(), n("button", {
|
|
95
95
|
key: 1,
|
|
96
96
|
class: C(["mobile-menu-toggle", {
|
|
@@ -107,16 +107,16 @@ const Q = {
|
|
|
107
107
|
}, null, -1)]), 2)) : p("", !0), a.value ? (t(), n("div", {
|
|
108
108
|
key: 2,
|
|
109
109
|
class: "mobile-menu-overlay",
|
|
110
|
-
onClick:
|
|
111
|
-
})) : p("", !0), a.value ? (t(), n("div", oe, [c("div", se, [(t(!0), n(q, null, H(s.menus, (d,
|
|
112
|
-
key:
|
|
110
|
+
onClick: m
|
|
111
|
+
})) : p("", !0), a.value ? (t(), n("div", oe, [c("div", se, [(t(!0), n(q, null, H(s.menus, (d, I) => (t(), n("div", {
|
|
112
|
+
key: I,
|
|
113
113
|
class: C(["mobile-menu-item", {
|
|
114
|
-
activate:
|
|
114
|
+
activate: _(d)
|
|
115
115
|
}]),
|
|
116
116
|
onClick: (T) => v(d)
|
|
117
117
|
}, k(d.name), 11, ae))), 128))])])) : p("", !0)]));
|
|
118
118
|
}
|
|
119
|
-
}), re = /* @__PURE__ */ l(ie, [["__scopeId", "data-v-67bf8ea1"]]), ce = ["src"], ue = /* @__PURE__ */
|
|
119
|
+
}), re = /* @__PURE__ */ l(ie, [["__scopeId", "data-v-67bf8ea1"]]), ce = ["src"], ue = /* @__PURE__ */ f({
|
|
120
120
|
__name: "Logo",
|
|
121
121
|
props: {
|
|
122
122
|
name: {
|
|
@@ -148,7 +148,7 @@ const Q = {
|
|
|
148
148
|
function a() {
|
|
149
149
|
i("to");
|
|
150
150
|
}
|
|
151
|
-
return (u,
|
|
151
|
+
return (u, h) => (t(), n("div", {
|
|
152
152
|
class: "Logo",
|
|
153
153
|
onClick: a
|
|
154
154
|
}, [o.icon ? (t(), n("img", {
|
|
@@ -160,7 +160,7 @@ const Q = {
|
|
|
160
160
|
decoding: "async"
|
|
161
161
|
}, null, 8, ce)) : p("", !0), c("div", {
|
|
162
162
|
class: "text",
|
|
163
|
-
style:
|
|
163
|
+
style: S({
|
|
164
164
|
color: s.color,
|
|
165
165
|
fontSize: s.fontSize
|
|
166
166
|
})
|
|
@@ -170,9 +170,9 @@ const Q = {
|
|
|
170
170
|
class: "HeaderCom"
|
|
171
171
|
}, pe = {
|
|
172
172
|
class: "left"
|
|
173
|
-
},
|
|
173
|
+
}, fe = {
|
|
174
174
|
class: "right"
|
|
175
|
-
},
|
|
175
|
+
}, me = /* @__PURE__ */ f({
|
|
176
176
|
__name: "Header",
|
|
177
177
|
props: {
|
|
178
178
|
menuType: {
|
|
@@ -192,11 +192,11 @@ const Q = {
|
|
|
192
192
|
appsData: a
|
|
193
193
|
} = W(), {
|
|
194
194
|
menus: u,
|
|
195
|
-
hasPermission:
|
|
196
|
-
} = N(e.menuType), g =
|
|
197
|
-
function
|
|
195
|
+
hasPermission: h
|
|
196
|
+
} = N(e.menuType), g = M(""), m = j(), v = J();
|
|
197
|
+
function _() {
|
|
198
198
|
L(() => {
|
|
199
|
-
|
|
199
|
+
m.push({
|
|
200
200
|
path: "/"
|
|
201
201
|
}), window.scrollTo({
|
|
202
202
|
top: 0,
|
|
@@ -204,14 +204,14 @@ const Q = {
|
|
|
204
204
|
});
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function $(y) {
|
|
208
208
|
const r = y.path;
|
|
209
|
-
if (!
|
|
209
|
+
if (!h(r)) {
|
|
210
210
|
i.value || (s.value = !0);
|
|
211
211
|
return;
|
|
212
212
|
}
|
|
213
213
|
L(() => {
|
|
214
|
-
|
|
214
|
+
m.push(r), g.value = r, window.scrollTo({
|
|
215
215
|
top: 0,
|
|
216
216
|
behavior: "smooth"
|
|
217
217
|
});
|
|
@@ -221,28 +221,26 @@ const Q = {
|
|
|
221
221
|
g.value = O(v.matched, e.menuType, v.path);
|
|
222
222
|
}, {
|
|
223
223
|
immediate: !0
|
|
224
|
-
}), (y, r) => (t(), n("div", de, [c("div", pe, [
|
|
224
|
+
}), (y, r) => (t(), n("div", de, [c("div", pe, [w(le, {
|
|
225
225
|
icon: b(a).applicationLogoUrl,
|
|
226
226
|
name: b(a).name,
|
|
227
|
-
onTo:
|
|
228
|
-
}, null, 8, ["icon", "name"])]), c("div",
|
|
227
|
+
onTo: _
|
|
228
|
+
}, null, 8, ["icon", "name"])]), c("div", fe, [w(re, {
|
|
229
229
|
menus: b(u),
|
|
230
230
|
activateKey: g.value,
|
|
231
|
-
onChange:
|
|
231
|
+
onChange: $
|
|
232
232
|
}, null, 8, ["menus", "activateKey"]), e.showUserPanel ? (t(), P(E, {
|
|
233
233
|
key: 0,
|
|
234
|
-
onToHomePage:
|
|
235
|
-
onSignOut:
|
|
234
|
+
onToHomePage: _,
|
|
235
|
+
onSignOut: _
|
|
236
236
|
})) : p("", !0)])]));
|
|
237
237
|
}
|
|
238
|
-
}),
|
|
239
|
-
class: "layout"
|
|
240
|
-
}, ge = {
|
|
238
|
+
}), _e = /* @__PURE__ */ l(me, [["__scopeId", "data-v-2225e367"]]), he = {
|
|
241
239
|
class: "body"
|
|
242
|
-
},
|
|
240
|
+
}, ge = {
|
|
243
241
|
key: 0,
|
|
244
242
|
class: "loading"
|
|
245
|
-
},
|
|
243
|
+
}, ve = /* @__PURE__ */ f({
|
|
246
244
|
__name: "DefaultLayout",
|
|
247
245
|
props: {
|
|
248
246
|
menuType: {
|
|
@@ -251,25 +249,33 @@ const Q = {
|
|
|
251
249
|
showUserPanel: {
|
|
252
250
|
type: Boolean,
|
|
253
251
|
default: !0
|
|
252
|
+
},
|
|
253
|
+
backgroundImage: {
|
|
254
|
+
default: "linear-gradient(to bottom, #fefdff, #f9f6fe, #f2eefd, #ebe8fd, #e2e1fd, #dfe0fd, #dcdffd, #d9defd, #dde2fd, #e0e5fd, #e4e9fd, #e8ecfd)"
|
|
254
255
|
}
|
|
255
256
|
},
|
|
256
257
|
setup(o) {
|
|
257
|
-
const {
|
|
258
|
-
isChecking:
|
|
258
|
+
const e = o, {
|
|
259
|
+
isChecking: s
|
|
259
260
|
} = F();
|
|
260
|
-
return (
|
|
261
|
-
const
|
|
262
|
-
return t(), n("div",
|
|
263
|
-
"
|
|
264
|
-
|
|
265
|
-
|
|
261
|
+
return (i, a) => {
|
|
262
|
+
const u = V("RouterView");
|
|
263
|
+
return t(), n("div", {
|
|
264
|
+
class: "layout",
|
|
265
|
+
style: S({
|
|
266
|
+
background: e.backgroundImage
|
|
267
|
+
})
|
|
268
|
+
}, [w(_e, {
|
|
269
|
+
"menu-type": e.menuType,
|
|
270
|
+
"show-user-panel": e.showUserPanel
|
|
271
|
+
}, null, 8, ["menu-type", "show-user-panel"]), c("div", he, [b(s) ? (t(), n("div", ge, [w(b(D), {
|
|
266
272
|
size: 40
|
|
267
|
-
})])) : (t(), P(
|
|
273
|
+
})])) : (t(), P(u, {
|
|
268
274
|
key: 1
|
|
269
|
-
}))])]);
|
|
275
|
+
}))])], 4);
|
|
270
276
|
};
|
|
271
277
|
}
|
|
272
|
-
}),
|
|
278
|
+
}), Re = /* @__PURE__ */ l(ve, [["__scopeId", "data-v-a4e3a9c9"]]), ye = /* @__PURE__ */ f({
|
|
273
279
|
__name: "Gradientbackground",
|
|
274
280
|
props: {
|
|
275
281
|
width: {
|
|
@@ -324,15 +330,15 @@ const Q = {
|
|
|
324
330
|
}));
|
|
325
331
|
return (a, u) => (t(), n("div", {
|
|
326
332
|
class: "ellipsis",
|
|
327
|
-
style:
|
|
333
|
+
style: S(s.value)
|
|
328
334
|
}, [c("div", {
|
|
329
335
|
class: "ellipsis-item",
|
|
330
|
-
style:
|
|
336
|
+
style: S(i.value)
|
|
331
337
|
}, null, 4)], 4));
|
|
332
338
|
}
|
|
333
|
-
}),
|
|
339
|
+
}), Ve = /* @__PURE__ */ l(ye, [["__scopeId", "data-v-b6461ac4"]]), be = {
|
|
334
340
|
class: "SvgIcon"
|
|
335
|
-
},
|
|
341
|
+
}, ke = ["href", "fill"], Se = /* @__PURE__ */ f({
|
|
336
342
|
__name: "SvgIcon",
|
|
337
343
|
props: {
|
|
338
344
|
prefix: {
|
|
@@ -352,25 +358,25 @@ const Q = {
|
|
|
352
358
|
},
|
|
353
359
|
setup(o) {
|
|
354
360
|
const e = o, s = x(() => `#${e.prefix ?? "icon"}-${e.name}`);
|
|
355
|
-
return (i, a) => (t(), n("svg",
|
|
361
|
+
return (i, a) => (t(), n("svg", be, [c("use", {
|
|
356
362
|
href: s.value,
|
|
357
363
|
fill: e.color
|
|
358
|
-
}, null, 8,
|
|
364
|
+
}, null, 8, ke)]));
|
|
359
365
|
}
|
|
360
|
-
}),
|
|
366
|
+
}), Be = /* @__PURE__ */ l(Se, [["__scopeId", "data-v-0a9de94e"]]), we = {}, $e = {
|
|
361
367
|
class: "WidthContainer"
|
|
362
368
|
};
|
|
363
369
|
function Ie(o, e) {
|
|
364
|
-
return t(), n("div",
|
|
370
|
+
return t(), n("div", $e, [B(o.$slots, "default", {}, void 0, !0)]);
|
|
365
371
|
}
|
|
366
|
-
const
|
|
372
|
+
const De = /* @__PURE__ */ l(we, [["render", Ie], ["__scopeId", "data-v-d06aac1f"]]);
|
|
367
373
|
export {
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
374
|
+
Ue as C,
|
|
375
|
+
Re as D,
|
|
376
|
+
Ve as G,
|
|
377
|
+
_e as H,
|
|
372
378
|
le as L,
|
|
373
|
-
|
|
374
|
-
|
|
379
|
+
Be as S,
|
|
380
|
+
De as W,
|
|
375
381
|
re as a
|
|
376
382
|
};
|
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-CMiKkPuv.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 {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
interface Props {
|
|
2
2
|
menuType?: string;
|
|
3
3
|
showUserPanel?: boolean;
|
|
4
|
+
backgroundImage?: string;
|
|
4
5
|
}
|
|
5
6
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
7
|
+
backgroundImage: string;
|
|
6
8
|
menuType: string;
|
|
7
9
|
showUserPanel: boolean;
|
|
8
10
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
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-CMiKkPuv.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";
|