vft 0.0.83 → 0.0.85

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.
Files changed (70) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/es/component.js +28 -26
  4. package/es/components/alert/index.js +1 -1
  5. package/es/components/backtop/backtop.vue.js +4 -0
  6. package/es/components/{back-top/back-top.vue2.js → backtop/backtop.vue2.js} +5 -4
  7. package/es/components/{back-top → backtop}/index.js +2 -2
  8. package/es/components/backtop/style/css.js +2 -0
  9. package/es/components/backtop/style/index.js +2 -0
  10. package/es/components/container/footer.vue2.js +15 -21
  11. package/es/components/container/header.vue2.js +10 -16
  12. package/es/components/context-menu/context-menu.vue2.js +4 -3
  13. package/es/components/footer-layout/footer-layout.vue2.js +4 -3
  14. package/es/components/header-layout/header-layout.vue2.js +4 -3
  15. package/es/components/horizontal-menu/horizontal-menu.vue2.js +37 -37
  16. package/es/components/index.js +151 -149
  17. package/es/components/md-container/md-container.vue2.js +4 -3
  18. package/es/components/menu/menu-item.vue2.js +4 -3
  19. package/es/components/menu/sub-menu.vue2.js +4 -3
  20. package/es/components/multiple-tabs/multiple-tabs.vue2.js +4 -3
  21. package/es/components/result/result.vue2.js +4 -3
  22. package/es/components/side-menu/side-menu.vue2.js +4 -3
  23. package/es/components/table/columns.js +10 -0
  24. package/es/components/table/table.vue2.js +121 -154
  25. package/es/components/tabs/tab-nav.vue2.js +4 -3
  26. package/es/index.js +280 -278
  27. package/es/package.json.js +1 -1
  28. package/lib/component.cjs +1 -1
  29. package/lib/components/alert/index.cjs +1 -1
  30. package/lib/components/{back-top/back-top.vue.cjs → backtop/backtop.vue.cjs} +1 -1
  31. package/lib/components/{back-top/back-top.vue2.cjs → backtop/backtop.vue2.cjs} +1 -1
  32. package/lib/components/{back-top → backtop}/index.cjs +1 -1
  33. package/lib/components/{back-top → backtop}/style/css.cjs +1 -1
  34. package/lib/components/{back-top → backtop}/style/index.cjs +1 -1
  35. package/lib/components/container/footer.vue2.cjs +1 -1
  36. package/lib/components/container/header.vue2.cjs +1 -1
  37. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  38. package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
  39. package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
  40. package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -1
  41. package/lib/components/index.cjs +1 -1
  42. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  43. package/lib/components/menu/menu-item.vue2.cjs +1 -1
  44. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  45. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  46. package/lib/components/result/result.vue2.cjs +1 -1
  47. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  48. package/lib/components/table/columns.cjs +1 -0
  49. package/lib/components/table/table.vue2.cjs +1 -1
  50. package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
  51. package/lib/index.cjs +1 -1
  52. package/lib/package.json.cjs +1 -1
  53. package/package.json +2 -2
  54. package/tags.json +1 -1
  55. package/theme-style/base.css +1 -1
  56. package/theme-style/index.css +1 -1
  57. package/theme-style/src/{back-top.scss → backtop.scss} +3 -3
  58. package/theme-style/src/common/var.scss +6 -6
  59. package/theme-style/src/index.scss +1 -1
  60. package/theme-style/src/table.scss +105 -66
  61. package/theme-style/vft-backtop.css +1 -0
  62. package/theme-style/vft-menu.css +1 -1
  63. package/theme-style/vft-table.css +1 -1
  64. package/theme-style/vft-var.css +1 -1
  65. package/web-types.json +1 -1
  66. package/es/components/back-top/back-top.vue.js +0 -4
  67. package/es/components/back-top/style/css.js +0 -2
  68. package/es/components/back-top/style/index.js +0 -2
  69. /package/es/components/{back-top/use-back-top.js → backtop/use-backtop.js} +0 -0
  70. /package/lib/components/{back-top/use-back-top.cjs → backtop/use-backtop.cjs} +0 -0
package/es/component.js CHANGED
@@ -5,7 +5,7 @@ import { VftAvatar as f } from "./components/avatar/index.js";
5
5
  import { VftEmpty as m } from "./components/empty/index.js";
6
6
  import { VftResult as i } from "./components/result/index.js";
7
7
  import { VftTooltip as p } from "./components/tooltip/index.js";
8
- import { VftBackTop as V } from "./components/back-top/index.js";
8
+ import { VftBacktop as V } from "./components/backtop/index.js";
9
9
  import { VftPopover as e } from "./components/popover/index.js";
10
10
  import { VftPopper as a } from "./components/popper/index.js";
11
11
  import { VftLogo as n } from "./components/logo/index.js";
@@ -14,8 +14,8 @@ import { VftImage as u } from "./components/image/index.js";
14
14
  import { VftFullScreen as c } from "./components/full-screen/index.js";
15
15
  import { VftInput as d } from "./components/input/index.js";
16
16
  import { VftLink as C } from "./components/link/index.js";
17
- import { VftTag as T } from "./components/tag/index.js";
18
- import { VftQrcode as s } from "./components/qrcode/index.js";
17
+ import { VftTag as s } from "./components/tag/index.js";
18
+ import { VftQrcode as T } from "./components/qrcode/index.js";
19
19
  import { VftOverlay as M } from "./components/overlay/index.js";
20
20
  import { VftSideMenu as S } from "./components/side-menu/index.js";
21
21
  import { VftClamp as g } from "./components/clamp/index.js";
@@ -31,7 +31,7 @@ import { VftForm as L, VftFormItem as R } from "./components/form/index.js";
31
31
  import { VftDescriptions as v, VftDescriptionsItem as B } from "./components/descriptions/index.js";
32
32
  import { VftMultipleTabs as F } from "./components/multiple-tabs/index.js";
33
33
  import { VftCollapseTransition as G } from "./components/collapse-transition/index.js";
34
- import { VftMenu as H, VftMenuItem as O, VftMenuItemGroup as A, VftSubMenu as E } from "./components/menu/index.js";
34
+ import { VftMenu as A, VftMenuItem as H, VftMenuItemGroup as O, VftSubMenu as E } from "./components/menu/index.js";
35
35
  import { VftException as z } from "./components/exception/index.js";
36
36
  import { VftSearch as Q } from "./components/search/index.js";
37
37
  import { VftButton as W, VftButtonGroup as j } from "./components/button/index.js";
@@ -54,44 +54,46 @@ import { VftRow as lo } from "./components/row/index.js";
54
54
  import { VftTimePicker as uo } from "./components/time-picker/index.js";
55
55
  import { VftDatePicker as co } from "./components/date-picker/index.js";
56
56
  import { VftCheckTag as Co } from "./components/check-tag/index.js";
57
- import { VftTree as To } from "./components/tree/index.js";
58
- import { VftSpace as so } from "./components/space/index.js";
57
+ import { VftTree as so } from "./components/tree/index.js";
58
+ import { VftSpace as To } from "./components/space/index.js";
59
59
  import { VftCard as Mo } from "./components/card/index.js";
60
60
  import { VftPopconfirm as So } from "./components/popconfirm/index.js";
61
61
  import { VftTreeSelect as go } from "./components/tree-select/index.js";
62
- import { VftSkeleton as Io, VftSkeletonItem as bo } from "./components/skeleton/index.js";
63
- import { VftAside as ko, VftContainer as Po, VftFooter as Do, VftHeader as wo, VftMain as yo } from "./components/container/index.js";
64
- import { VftOption as ho, VftOptionGroup as xo, VftSelect as Lo } from "./components/select/index.js";
65
- import { VftMdComment as Ro } from "./components/md-comment/index.js";
66
- import { VftMdTabs as vo } from "./components/md-tabs/index.js";
67
- import { VftMdVuePlayground as Bo } from "./components/md-vue-playground/index.js";
68
- import { VftMdCodeDemo as Fo } from "./components/md-code-demo/index.js";
69
- import { VftMdCodeTabs as Go } from "./components/md-code-tabs/index.js";
62
+ import { VftAlert as Io } from "./components/alert/index.js";
63
+ import { VftSkeleton as bo, VftSkeletonItem as ko } from "./components/skeleton/index.js";
64
+ import { VftAside as Po, VftContainer as Do, VftFooter as wo, VftHeader as yo, VftMain as ho } from "./components/container/index.js";
65
+ import { VftOption as xo, VftOptionGroup as Lo, VftSelect as Ro } from "./components/select/index.js";
66
+ import { VftMdComment as vo } from "./components/md-comment/index.js";
67
+ import { VftMdTabs as Bo } from "./components/md-tabs/index.js";
68
+ import { VftMdVuePlayground as Fo } from "./components/md-vue-playground/index.js";
69
+ import { VftMdCodeDemo as Go } from "./components/md-code-demo/index.js";
70
+ import { VftMdCodeTabs as Ao } from "./components/md-code-tabs/index.js";
70
71
  import { VftMdContainer as Ho } from "./components/md-container/index.js";
71
- const $t = [
72
+ const tr = [
73
+ Io,
72
74
  go,
73
- ho,
74
75
  xo,
75
76
  Lo,
77
+ Ro,
76
78
  So,
77
79
  Mo,
78
- so,
79
- Io,
80
- bo,
81
80
  To,
81
+ bo,
82
+ ko,
83
+ so,
82
84
  Co,
83
85
  Ho,
86
+ Ao,
84
87
  Go,
85
88
  Fo,
86
89
  Bo,
87
- vo,
88
90
  co,
89
- Ro,
90
- ko,
91
+ vo,
91
92
  Po,
92
93
  Do,
93
94
  wo,
94
95
  yo,
96
+ ho,
95
97
  ao,
96
98
  no,
97
99
  uo,
@@ -123,9 +125,9 @@ const $t = [
123
125
  I,
124
126
  g,
125
127
  b,
126
- s,
127
- M,
128
128
  T,
129
+ M,
130
+ s,
129
131
  S,
130
132
  y,
131
133
  C,
@@ -143,9 +145,9 @@ const $t = [
143
145
  w,
144
146
  n,
145
147
  F,
148
+ A,
146
149
  H,
147
150
  O,
148
- A,
149
151
  E,
150
152
  G,
151
153
  o,
@@ -161,5 +163,5 @@ const $t = [
161
163
  z
162
164
  ];
163
165
  export {
164
- $t as default
166
+ tr as default
165
167
  };
@@ -7,6 +7,6 @@ import "../../utils/ns-cover.js";
7
7
  import o from "./alert.vue2.js";
8
8
  const s = t(o);
9
9
  export {
10
- s as WflyAlert,
10
+ s as VftAlert,
11
11
  s as default
12
12
  };
@@ -0,0 +1,4 @@
1
+ import f from "./backtop.vue2.js";
2
+ export {
3
+ f as default
4
+ };
@@ -70,6 +70,7 @@ import "../skeleton/index.js";
70
70
  import "../space/index.js";
71
71
  import "../card/index.js";
72
72
  import "../popconfirm/index.js";
73
+ import "../alert/index.js";
73
74
  import "../md-container/index.js";
74
75
  import "../md-comment/index.js";
75
76
  import "../md-tabs/index.js";
@@ -83,13 +84,13 @@ import "lodash";
83
84
  import "../../hooks/use-z-index/index.js";
84
85
  import "@vueuse/core";
85
86
  import "../../utils/ns-cover.js";
86
- import { useBackTop as I } from "./use-back-top.js";
87
+ import { useBackTop as I } from "./use-backtop.js";
87
88
  const r = (
88
89
  /* hoist-static*/
89
- _("back-top")
90
+ _("backtop")
90
91
  ), N = c({
91
92
  name: r.b()
92
- }), so = /* @__PURE__ */ c({
93
+ }), co = /* @__PURE__ */ c({
93
94
  ...N,
94
95
  props: {
95
96
  visibilityHeight: { default: 200 },
@@ -132,5 +133,5 @@ const r = (
132
133
  }
133
134
  });
134
135
  export {
135
- so as default
136
+ co as default
136
137
  };
@@ -4,9 +4,9 @@ import "@vft/utils";
4
4
  import "lodash";
5
5
  import "@vueuse/core";
6
6
  import "../../utils/ns-cover.js";
7
- import o from "./back-top.vue2.js";
7
+ import o from "./backtop.vue2.js";
8
8
  const c = t(o);
9
9
  export {
10
- c as VftBackTop,
10
+ c as VftBacktop,
11
11
  c as default
12
12
  };
@@ -0,0 +1,2 @@
1
+ import "vft/theme-style/base.css";
2
+ import "vft/theme-style/vft-backtop.css";
@@ -0,0 +1,2 @@
1
+ import "vft/theme-style/src/base.scss";
2
+ import "vft/theme-style/src/backtop.scss";
@@ -1,39 +1,33 @@
1
- import { defineComponent as r, computed as p, openBlock as m, createElementBlock as i, normalizeClass as a, unref as o, normalizeStyle as c, renderSlot as f } from "vue";
2
- import { useNamespace as u } from "../../hooks/use-namespace/index.js";
1
+ import { defineComponent as r, computed as m, openBlock as l, createElementBlock as i, normalizeClass as a, unref as o, normalizeStyle as c, renderSlot as p } from "vue";
2
+ import { useNamespace as f } from "../../hooks/use-namespace/index.js";
3
3
  import "@popperjs/core";
4
4
  import "lodash";
5
5
  import "../../hooks/use-z-index/index.js";
6
6
  import "@vueuse/core";
7
- import "@vft/utils";
7
+ import { addUnit as u } from "@vft/utils";
8
8
  import "../../utils/ns-cover.js";
9
- const t = (
9
+ const e = (
10
10
  /* hoist-static*/
11
- u("footer")
11
+ f("footer")
12
12
  ), h = r({
13
- name: t.b()
14
- }), C = /* @__PURE__ */ r({
13
+ name: e.b()
14
+ }), S = /* @__PURE__ */ r({
15
15
  ...h,
16
16
  props: {
17
- /**
18
- * @description height of the footer
19
- */
20
- height: {
21
- type: String,
22
- default: null
23
- }
17
+ height: null
24
18
  },
25
- setup(s) {
26
- const e = s, n = p(
27
- () => e.height ? t.cssVarBlock({ height: e.height }) : {}
19
+ setup(t) {
20
+ const n = m(
21
+ () => t.height ? e.cssVarBlock({ height: u(t.height) }) : {}
28
22
  );
29
- return (l, d) => (m(), i("footer", {
30
- class: a(o(t).b()),
23
+ return (s, d) => (l(), i("footer", {
24
+ class: a(o(e).b()),
31
25
  style: c(o(n))
32
26
  }, [
33
- f(l.$slots, "default")
27
+ p(s.$slots, "default")
34
28
  ], 6));
35
29
  }
36
30
  });
37
31
  export {
38
- C as default
32
+ S as default
39
33
  };
@@ -1,39 +1,33 @@
1
- import { defineComponent as r, computed as p, openBlock as a, createElementBlock as m, normalizeClass as i, unref as o, normalizeStyle as c, renderSlot as u } from "vue";
1
+ import { defineComponent as r, computed as m, openBlock as a, createElementBlock as l, normalizeClass as i, unref as o, normalizeStyle as c, renderSlot as p } from "vue";
2
2
  import { useNamespace as h } from "../../hooks/use-namespace/index.js";
3
3
  import "@popperjs/core";
4
4
  import "lodash";
5
5
  import "../../hooks/use-z-index/index.js";
6
6
  import "@vueuse/core";
7
- import "@vft/utils";
7
+ import { addUnit as u } from "@vft/utils";
8
8
  import "../../utils/ns-cover.js";
9
9
  const e = (
10
10
  /* hoist-static*/
11
11
  h("header")
12
12
  ), d = r({
13
13
  name: e.b()
14
- }), C = /* @__PURE__ */ r({
14
+ }), S = /* @__PURE__ */ r({
15
15
  ...d,
16
16
  props: {
17
- /**
18
- * @description height of the header
19
- */
20
- height: {
21
- type: String,
22
- default: null
23
- }
17
+ height: null
24
18
  },
25
- setup(s) {
26
- const t = s, n = p(() => t.height ? e.cssVarBlock({
27
- height: t.height
19
+ setup(t) {
20
+ const n = m(() => t.height ? e.cssVarBlock({
21
+ height: u(t.height)
28
22
  }) : {});
29
- return (l, f) => (a(), m("header", {
23
+ return (s, f) => (a(), l("header", {
30
24
  class: i(o(e).b()),
31
25
  style: c(o(n))
32
26
  }, [
33
- u(l.$slots, "default")
27
+ p(s.$slots, "default")
34
28
  ], 6));
35
29
  }
36
30
  });
37
31
  export {
38
- C as default
32
+ S as default
39
33
  };
@@ -24,7 +24,7 @@ import "../footer-layout/index.js";
24
24
  import "../iframe-layout/index.js";
25
25
  import "../router-view-content/index.js";
26
26
  import "../logo/index.js";
27
- import "../back-top/index.js";
27
+ import "../backtop/index.js";
28
28
  import "../container/index.js";
29
29
  import "../config-provider/index.js";
30
30
  import "../descriptions/index.js";
@@ -76,6 +76,7 @@ import "../skeleton/index.js";
76
76
  import "../space/index.js";
77
77
  import "../card/index.js";
78
78
  import "../popconfirm/index.js";
79
+ import "../alert/index.js";
79
80
  import "../md-container/index.js";
80
81
  import "../md-comment/index.js";
81
82
  import "../md-tabs/index.js";
@@ -88,7 +89,7 @@ const N = { class: "vft-sub-menu" }, x = (
88
89
  F("context-menu")
89
90
  ), R = f({
90
91
  name: x.b()
91
- }), xo = /* @__PURE__ */ f({
92
+ }), vo = /* @__PURE__ */ f({
92
93
  ...R,
93
94
  props: {
94
95
  axis: null,
@@ -162,5 +163,5 @@ const N = { class: "vft-sub-menu" }, x = (
162
163
  }
163
164
  });
164
165
  export {
165
- xo as default
166
+ vo as default
166
167
  };
@@ -24,7 +24,7 @@ import "./index.js";
24
24
  import "../iframe-layout/index.js";
25
25
  import "../router-view-content/index.js";
26
26
  import "../logo/index.js";
27
- import "../back-top/index.js";
27
+ import "../backtop/index.js";
28
28
  import { VftFooter as C } from "../container/index.js";
29
29
  import "../config-provider/index.js";
30
30
  import "../descriptions/index.js";
@@ -76,6 +76,7 @@ import "../skeleton/index.js";
76
76
  import "../space/index.js";
77
77
  import "../card/index.js";
78
78
  import "../popconfirm/index.js";
79
+ import "../alert/index.js";
79
80
  import "../md-container/index.js";
80
81
  import "../md-comment/index.js";
81
82
  import "../md-tabs/index.js";
@@ -88,7 +89,7 @@ const o = (
88
89
  h("footer-layout")
89
90
  ), _ = s({
90
91
  name: o.b()
91
- }), Wt = /* @__PURE__ */ s({
92
+ }), Xt = /* @__PURE__ */ s({
92
93
  ..._,
93
94
  props: {
94
95
  leftDistance: null
@@ -124,5 +125,5 @@ const o = (
124
125
  }
125
126
  });
126
127
  export {
127
- Wt as default
128
+ Xt as default
128
129
  };
@@ -24,7 +24,7 @@ import "./index.js";
24
24
  import "../footer-layout/index.js";
25
25
  import "../iframe-layout/index.js";
26
26
  import "../router-view-content/index.js";
27
- import "../back-top/index.js";
27
+ import "../backtop/index.js";
28
28
  import { VftHeader as V, VftContainer as _, VftMain as k, VftFooter as $ } from "../container/index.js";
29
29
  import "../config-provider/index.js";
30
30
  import "../descriptions/index.js";
@@ -76,6 +76,7 @@ import "../skeleton/index.js";
76
76
  import "../space/index.js";
77
77
  import "../card/index.js";
78
78
  import "../popconfirm/index.js";
79
+ import "../alert/index.js";
79
80
  import "../md-container/index.js";
80
81
  import "../md-comment/index.js";
81
82
  import "../md-tabs/index.js";
@@ -94,7 +95,7 @@ const y = { class: "content" }, b = {
94
95
  h("header-layout")
95
96
  ), v = c({
96
97
  name: p.b()
97
- }), mo = /* @__PURE__ */ c({
98
+ }), po = /* @__PURE__ */ c({
98
99
  ...v,
99
100
  props: {
100
101
  logoCfg: null
@@ -140,5 +141,5 @@ const y = { class: "content" }, b = {
140
141
  }
141
142
  });
142
143
  export {
143
- mo as default
144
+ po as default
144
145
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as L, computed as k, getCurrentInstance as Q, useSlots as W, ref as X, createVNode as v, mergeProps as A } from "vue";
1
+ import { defineComponent as L, computed as w, getCurrentInstance as Q, useSlots as W, ref as X, createVNode as v, mergeProps as J } from "vue";
2
2
  import { VftMenu as Y, VftSubMenu as Z, VftMenuItem as m } from "../menu/index.js";
3
3
  import { useNamespace as _ } from "../../hooks/use-namespace/index.js";
4
4
  import "@popperjs/core";
@@ -42,36 +42,36 @@ const y = (
42
42
  defaultOpeneds: null
43
43
  },
44
44
  emits: ["open", "close"],
45
- setup(t, {
45
+ setup(o, {
46
46
  expose: z,
47
- emit: w
47
+ emit: k
48
48
  }) {
49
- const D = k(() => (e, o) => {
49
+ const D = w(() => (e, t) => {
50
50
  var a, d, r, n;
51
51
  return {
52
- "grid-template-rows": `repeat(${Math.min(((d = (a = e == null ? void 0 : e[o]) == null ? void 0 : a[l.value.children]) == null ? void 0 : d.length) || 0, Number(t.maxRowLength ? t.maxRowLength : (n = (r = e == null ? void 0 : e[o]) == null ? void 0 : r[l.value.children]) == null ? void 0 : n.length))}, auto)`
52
+ "grid-template-rows": `repeat(${Math.min(((d = (a = e == null ? void 0 : e[t]) == null ? void 0 : a[l.value.children]) == null ? void 0 : d.length) || 0, Number(o.maxRowLength ? o.maxRowLength : (n = (r = e == null ? void 0 : e[t]) == null ? void 0 : r[l.value.children]) == null ? void 0 : n.length))}, auto)`
53
53
  };
54
- }), l = k(() => ({
54
+ }), l = w(() => ({
55
55
  path: "path",
56
56
  children: "children",
57
57
  title: "title",
58
58
  index: "path",
59
59
  icon: "icon",
60
60
  disabled: "disabled",
61
- ...t.attrMapping
61
+ ...o.attrMapping
62
62
  })), P = Q(), p = W(), I = X(), x = P.appContext.config.globalProperties.$router, {
63
63
  go: E
64
64
  } = B(x), $ = (e) => {
65
- const o = l.value.path;
66
- E(e[o]);
67
- }, T = (e, o, a) => {
68
- const d = e[l.value.path], r = e[l.value.title], n = e == null ? void 0 : e[l.value.index], b = e == null ? void 0 : e[l.value.icon], f = !!(e != null && e[l.value.disabled]), s = t.disabledJudgeTurnOver ? !f : f, i = n || d || o + r;
69
- return v(m, A(e, {
65
+ const t = l.value.path;
66
+ E(e[t]);
67
+ }, T = (e, t, a) => {
68
+ const d = e[l.value.path], r = e[l.value.title], n = e == null ? void 0 : e[l.value.index], b = e == null ? void 0 : e[l.value.icon], f = !!(e != null && e[l.value.disabled]), s = o.disabledJudgeTurnOver ? !f : f, i = n || d || t + r;
69
+ return v(m, J(e, {
70
70
  key: i,
71
71
  index: i,
72
72
  icon: b,
73
73
  title: r,
74
- disabled: t.openDisabled && s,
74
+ disabled: o.openDisabled && s,
75
75
  className: a ? "vft-menu-popup-item" : "vft-menu-no-popup-item",
76
76
  onClick: () => $(e)
77
77
  }), {
@@ -88,14 +88,14 @@ const y = (
88
88
  } : null
89
89
  });
90
90
  }, j = () => {
91
- w("open");
91
+ k("open");
92
92
  }, H = () => {
93
- w("close");
94
- }, S = (e, o, a) => {
93
+ k("close");
94
+ }, S = (e, t, a) => {
95
95
  var N;
96
- const d = e[l.value.path], r = e[l.value.title], n = e == null ? void 0 : e[l.value.children], b = e == null ? void 0 : e[l.value.index], f = e == null ? void 0 : e[l.value.icon], s = e == null ? void 0 : e.menuOrder, i = !!(e != null && e[l.value.disabled]), g = t.disabledJudgeTurnOver ? !i : i, R = b || d || o + r, O = e.type === ne.TILE;
97
- let C = [];
98
- if (O)
96
+ const d = e[l.value.path], r = e[l.value.title], n = e == null ? void 0 : e[l.value.children], b = e == null ? void 0 : e[l.value.index], f = e == null ? void 0 : e[l.value.icon], s = e == null ? void 0 : e.menuOrder, i = !!(e != null && e[l.value.disabled]), g = o.disabledJudgeTurnOver ? !i : i, R = b || d || t + r, C = e.type === ne.TILE;
97
+ let O = [];
98
+ if (C)
99
99
  if (s) {
100
100
  const u = s.flat();
101
101
  if ((u == null ? void 0 : u.length) < n.length) {
@@ -103,35 +103,35 @@ const y = (
103
103
  for (let c = M + 1; c < n.length; c++)
104
104
  s.push([c]);
105
105
  }
106
- C = s;
106
+ O = s;
107
107
  } else
108
108
  for (let u = 0; u < n.length; u++)
109
- C.push([u]);
110
- return n != null && n.length || e != null && e.render ? v(Z, A(t.subMenuCfg, e, {
109
+ O.push([u]);
110
+ return n != null && n.length || e != null && e.render ? v(Z, J(o.subMenuCfg, e, {
111
111
  index: R,
112
112
  key: R,
113
113
  icon: f,
114
- showArrow: e.showArrow ?? !0,
115
- disabled: t.openDisabled && g,
114
+ showArrow: e.showArrow ?? o.subMenuCfg.showArrow,
115
+ disabled: o.openDisabled && g,
116
116
  toolTipCfg: {
117
- ...t.subMenuCfg.toolTipCfg || {},
117
+ ...o.subMenuCfg.toolTipCfg || {},
118
118
  ...((N = e.subMenuCfg) == null ? void 0 : N.toolTipCfg) || {}
119
119
  },
120
120
  teleported: !1,
121
- "popper-class": [O ? y.e("tile") : "", y.e("normal")]
121
+ "popper-class": [C ? y.e("tile") : "", y.e("normal")]
122
122
  }), {
123
- default: () => [e != null && e.render ? e == null ? void 0 : e.render : O ? C.map((u, M) => v("div", {
123
+ default: () => [e != null && e.render ? e == null ? void 0 : e.render : C ? O.map((u, M) => v("div", {
124
124
  class: "content-main",
125
125
  key: M
126
126
  }, [u.map((c, F) => {
127
- var V, J;
127
+ var V, A;
128
128
  const h = (V = n == null ? void 0 : n[c]) == null ? void 0 : V[l.value.children];
129
129
  return n != null && n.length ? v("div", {
130
130
  class: "content-col",
131
131
  key: F
132
132
  }, [v("span", {
133
133
  class: h != null && h.length ? "title" : ""
134
- }, [(J = n == null ? void 0 : n[c]) == null ? void 0 : J[l.value.title]]), h != null && h.length ? v("div", {
134
+ }, [(A = n == null ? void 0 : n[c]) == null ? void 0 : A[l.value.title]]), h != null && h.length ? v("div", {
135
135
  class: "content",
136
136
  style: D.value(n, c)
137
137
  }, [h.map((G, K) => T(G, K, !0))]) : null]) : null;
@@ -140,17 +140,17 @@ const y = (
140
140
  return (c = u[l.value.children]) != null && c.length ? S(u, M, !0) : T(u, M, !0);
141
141
  })],
142
142
  title: () => r
143
- }) : T(e, o, a);
143
+ }) : T(e, t, a);
144
144
  };
145
145
  async function U(e) {
146
- var o, a, d;
147
- if (t.useRouterJump) {
146
+ var t, a, d;
147
+ if (o.useRouterJump) {
148
148
  const {
149
149
  go: r
150
150
  } = B(x), n = e.route;
151
151
  let b = e.route;
152
152
  e.indexPath.some((s) => ee(s)) && (b = e.indexPath.slice(-2).join("/"));
153
- const f = (d = (a = (o = x.getRoutes().filter((s) => s.path === b)) == null ? void 0 : o[0]) == null ? void 0 : a.meta) == null ? void 0 : d.linkTarget;
153
+ const f = (d = (a = (t = x.getRoutes().filter((s) => s.path === b)) == null ? void 0 : t[0]) == null ? void 0 : a.meta) == null ? void 0 : d.linkTarget;
154
154
  r(f ? {
155
155
  url: n,
156
156
  winOpenOpt: {
@@ -159,7 +159,7 @@ const y = (
159
159
  } : n);
160
160
  }
161
161
  }
162
- const q = k(() => {
162
+ const q = w(() => {
163
163
  var e;
164
164
  return (e = I.value) == null ? void 0 : e.inSubMenu;
165
165
  });
@@ -172,12 +172,12 @@ const y = (
172
172
  onClose: H,
173
173
  mode: "horizontal",
174
174
  class: y.b(),
175
- defaultActive: t.defaultActive,
176
- defaultOpeneds: t.defaultOpeneds
175
+ defaultActive: o.defaultActive,
176
+ defaultOpeneds: o.defaultOpeneds
177
177
  }, {
178
178
  default: () => {
179
179
  var e;
180
- return [(e = t.menus) != null && e.length ? t.menus.map((o, a) => S(o, a, !1)) : null];
180
+ return [(e = o.menus) != null && e.length ? o.menus.map((t, a) => S(t, a, !1)) : null];
181
181
  }
182
182
  });
183
183
  }