@huyooo/ui 0.5.53 → 0.5.56

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.
@@ -9,7 +9,7 @@ import { _ as g } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
9
  /* empty css */
10
10
  import { u as Z } from "./useUploadCos-DKh-eczm.js";
11
11
  import { g as A } from "./auth-CDARHcht.js";
12
- import "./FeedbackModal-Dc9Pd_rr.js";
12
+ import "./FeedbackModal-CLRw0hmp.js";
13
13
  import { Icon as Y } from "@iconify/vue";
14
14
  const H = f({
15
15
  name: "IconDown",
@@ -3,7 +3,7 @@
3
3
  /* empty css */
4
4
  import { defineComponent as R, createElementBlock as S, openBlock as r, normalizeStyle as M, normalizeClass as oe, createElementVNode as I, computed as O, createBlock as y, unref as l, withCtx as n, createVNode as u, createCommentVNode as L, Fragment as B, createTextVNode as $, toDisplayString as z, ref as m, onUnmounted as xe, h as X, renderList as ie, nextTick as A } from "vue";
5
5
  import { Space as ue, Image as ce, Avatar as de, Descriptions as Se, DescriptionsItem as K, Tag as E, Spin as we, Button as G, Form as Ie, FormItem as H, Input as $e, Select as Fe, Option as Ue, Textarea as Le, Message as Re, Breadcrumb as Be, BreadcrumbItem as ee, Modal as ze, Drawer as qe } from "@arco-design/web-vue";
6
- import { M as De } from "./Menu-ejsosUdV.js";
6
+ import { M as De } from "./Menu-BjWB9hre.js";
7
7
  /* empty css */
8
8
  /* empty css */
9
9
  /* empty css */
@@ -0,0 +1,121 @@
1
+ import { defineComponent as B, ref as $, createElementBlock as r, createCommentVNode as f, openBlock as o, normalizeClass as x, createBlock as l, createElementVNode as t, unref as I, toDisplayString as K, Fragment as _, renderList as C } from "vue";
2
+ import { Icon as S } from "@iconify/vue";
3
+ import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
+ const E = /* @__PURE__ */ B({
5
+ __name: "MenuItem",
6
+ props: {
7
+ hidden: {
8
+ type: Boolean,
9
+ required: !0,
10
+ default: () => !1
11
+ },
12
+ path: {
13
+ type: String,
14
+ required: !0,
15
+ default: () => ""
16
+ },
17
+ icon: {
18
+ type: String,
19
+ required: !0,
20
+ default: () => ""
21
+ },
22
+ name: {
23
+ type: String,
24
+ required: !0,
25
+ default: () => ""
26
+ },
27
+ active: {
28
+ type: Boolean,
29
+ required: !0,
30
+ default: () => !1
31
+ }
32
+ },
33
+ setup(d) {
34
+ const c = d, a = $(!1);
35
+ function p() {
36
+ a.value = !0;
37
+ }
38
+ function s() {
39
+ a.value = !1;
40
+ }
41
+ return (u, h) => c.hidden ? f("", !0) : (o(), r("div", {
42
+ key: 0,
43
+ class: x(["List", {
44
+ Active: c.active,
45
+ Hover: a.value && !c.active
46
+ }]),
47
+ onMouseover: p,
48
+ onMouseout: s
49
+ }, [c.icon ? (o(), l(I(S), {
50
+ key: 0,
51
+ class: "icon",
52
+ icon: c.icon
53
+ }, null, 8, ["icon"])) : f("", !0), t("span", null, K(c.name), 1)], 34));
54
+ }
55
+ }), q = /* @__PURE__ */ A(E, [["__scopeId", "data-v-5a5b4938"]]), H = {
56
+ class: "Menu"
57
+ }, L = {
58
+ class: "TitleContent"
59
+ }, N = {
60
+ class: "Title"
61
+ }, T = {
62
+ class: "MenuItem2"
63
+ }, V = /* @__PURE__ */ B({
64
+ __name: "Menu",
65
+ props: {
66
+ menus: {
67
+ type: Array,
68
+ required: !0,
69
+ default: () => []
70
+ },
71
+ selectedKeys: {
72
+ type: Array,
73
+ required: !0,
74
+ default: () => []
75
+ }
76
+ },
77
+ emits: ["update:selectedKeys", "change"],
78
+ setup(d, {
79
+ emit: c
80
+ }) {
81
+ const a = d, p = c;
82
+ function s(u, h) {
83
+ console.log(u, "itemitemitemitem"), p("change", u, h);
84
+ }
85
+ return (u, h) => (o(), r("div", H, [(o(!0), r(_, null, C(a.menus, (e, i) => {
86
+ var v, y, k;
87
+ return o(), r("div", {
88
+ key: i
89
+ }, [e.children && e.children.length !== 0 ? (o(), r(_, {
90
+ key: 0
91
+ }, [t("span", L, [(v = e == null ? void 0 : e.meta) != null && v.icon || e != null && e.icon ? (o(), l(I(S), {
92
+ key: 0,
93
+ class: "icon",
94
+ icon: ((y = e == null ? void 0 : e.meta) == null ? void 0 : y.icon) || (e == null ? void 0 : e.icon)
95
+ }, null, 8, ["icon"])) : f("", !0), t("span", N, K(e.name), 1)]), t("span", T, [(o(!0), r(_, null, C(e.children, (n, g) => {
96
+ var M;
97
+ return o(), l(q, {
98
+ key: g,
99
+ hidden: n == null ? void 0 : n.hidden,
100
+ path: n.path,
101
+ icon: ((M = n == null ? void 0 : n.meta) == null ? void 0 : M.icon) || (n == null ? void 0 : n.icon),
102
+ name: n.name,
103
+ active: a.selectedKeys.includes(n.path),
104
+ onClick: (b) => s(n, g)
105
+ }, null, 8, ["hidden", "path", "icon", "name", "active", "onClick"]);
106
+ }), 128))])], 64)) : (o(), l(q, {
107
+ key: 1,
108
+ hidden: e == null ? void 0 : e.hidden,
109
+ path: e.path,
110
+ icon: ((k = e == null ? void 0 : e.meta) == null ? void 0 : k.icon) || (e == null ? void 0 : e.icon),
111
+ name: e.name,
112
+ active: a.selectedKeys.includes(e.path),
113
+ onClick: (n) => s(e, i)
114
+ }, null, 8, ["hidden", "path", "icon", "name", "active", "onClick"]))]);
115
+ }), 128))]));
116
+ }
117
+ }), j = /* @__PURE__ */ A(V, [["__scopeId", "data-v-833736e4"]]);
118
+ export {
119
+ j as M,
120
+ q as a
121
+ };
@@ -12,7 +12,7 @@ import { useIntersectionObserver as X } from "@vueuse/core";
12
12
  import { u as Y } from "./useMessageNotifications-CAiVf4PX.js";
13
13
  import { Icon as Z } from "@iconify/vue";
14
14
  import { u as ee } from "./useAuthkitCreateAndUpdate-Bsl_uyGQ.js";
15
- import { M as te } from "./Menu-ejsosUdV.js";
15
+ import { M as te } from "./Menu-BjWB9hre.js";
16
16
  function ne(a) {
17
17
  return S({
18
18
  url: `${D.prefixUrl}/restfulApi/messageCenter/changelogNotifications/find`,
@@ -7,7 +7,7 @@ import { c as U, g as y } from "./auth-CDARHcht.js";
7
7
  import { u as B } from "./useTableHandle-aJOWPWFL.js";
8
8
  import { C as D } from "./CustomTable-B8i1SbFB.js";
9
9
  import { C as E } from "./Clipboard-CXQgZeZq.js";
10
- import { a as H } from "./useAuthkitUsersProfile-KZgGxBAW.js";
10
+ import { a as H } from "./useAuthkitUsersProfile-B_uMdnat.js";
11
11
  import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
12
  function $(c) {
13
13
  return U({