@fmdeui/fmui 1.0.28 → 1.0.30

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 (187) hide show
  1. package/es/component.mjs +3 -1
  2. package/es/components/fm-layout/index.d.ts +32 -0
  3. package/es/components/fm-layout/src/component/aside.vue.d.ts +5 -0
  4. package/es/components/fm-layout/src/component/columnsAside.vue.d.ts +5 -0
  5. package/es/components/fm-layout/src/component/header.vue.d.ts +16 -0
  6. package/es/components/fm-layout/src/component/main.vue.d.ts +7 -0
  7. package/es/components/fm-layout/src/footer/index.vue.d.ts +3 -0
  8. package/es/components/fm-layout/src/index.vue.d.ts +22 -0
  9. package/es/components/fm-layout/src/logo/index.vue.d.ts +3 -0
  10. package/es/components/fm-layout/src/main/classic.vue.d.ts +18 -0
  11. package/es/components/fm-layout/src/main/columns.vue.d.ts +19 -0
  12. package/es/components/fm-layout/src/main/defaults.vue.d.ts +48 -0
  13. package/es/components/fm-layout/src/main/transverse.vue.d.ts +18 -0
  14. package/es/components/fm-layout/src/navBars/index.vue.d.ts +16 -0
  15. package/es/components/fm-layout/src/navBars/tagsView/contextmenu.vue.d.ts +28 -0
  16. package/es/components/fm-layout/src/navBars/tagsView/tagsView.vue.d.ts +45 -0
  17. package/es/components/fm-layout/src/navBars/topBar/breadcrumb.vue.d.ts +3 -0
  18. package/es/components/fm-layout/src/navBars/topBar/index.vue.d.ts +16 -0
  19. package/es/components/fm-layout/src/navBars/topBar/search.vue.d.ts +7 -0
  20. package/es/components/fm-layout/src/navBars/topBar/upgradeInfo.vue.d.ts +5 -0
  21. package/es/components/fm-layout/src/navBars/topBar/user.vue.d.ts +75 -0
  22. package/es/components/fm-layout/src/navBars/topBar/userNews.vue.d.ts +9 -0
  23. package/es/components/fm-layout/src/navMenu/horizontal.vue.d.ts +42 -0
  24. package/es/components/fm-layout/src/navMenu/subItem.vue.d.ts +42 -0
  25. package/es/components/fm-layout/src/navMenu/vertical.vue.d.ts +42 -0
  26. package/es/components/fm-layout/src/routerView/iframes.vue.d.ts +35 -0
  27. package/es/components/fm-layout/src/routerView/parent.vue.d.ts +3 -0
  28. package/es/components/fm-layout/src/type.d.ts +2 -0
  29. package/es/components/fm-layout/style/css.d.ts +0 -0
  30. package/es/components/fm-layout/style/index.d.ts +0 -0
  31. package/es/components/index.d.ts +1 -0
  32. package/es/packages/components/fm-layout/index.mjs +7 -0
  33. package/es/packages/components/fm-layout/src/component/aside.vue.mjs +5 -0
  34. package/es/packages/components/fm-layout/src/component/aside.vue2.mjs +175 -0
  35. package/es/packages/components/fm-layout/src/component/columnsAside.vue.mjs +5 -0
  36. package/es/packages/components/fm-layout/src/component/columnsAside.vue2.mjs +273 -0
  37. package/es/packages/components/fm-layout/src/component/header.vue.mjs +5 -0
  38. package/es/packages/components/fm-layout/src/component/header.vue2.mjs +50 -0
  39. package/es/packages/components/fm-layout/src/component/main.vue.mjs +5 -0
  40. package/es/packages/components/fm-layout/src/component/main.vue2.mjs +81 -0
  41. package/es/packages/components/fm-layout/src/footer/index.vue.mjs +5 -0
  42. package/es/packages/components/fm-layout/src/footer/index.vue2.mjs +29 -0
  43. package/es/packages/components/fm-layout/src/index.vue.mjs +5 -0
  44. package/es/packages/components/fm-layout/src/index.vue2.mjs +91 -0
  45. package/es/packages/components/fm-layout/src/logo/index.vue.mjs +5 -0
  46. package/es/packages/components/fm-layout/src/logo/index.vue2.mjs +57 -0
  47. package/es/packages/components/fm-layout/src/main/classic.vue.mjs +5 -0
  48. package/es/packages/components/fm-layout/src/main/classic.vue2.mjs +87 -0
  49. package/es/packages/components/fm-layout/src/main/columns.vue.mjs +5 -0
  50. package/es/packages/components/fm-layout/src/main/columns.vue2.mjs +100 -0
  51. package/es/packages/components/fm-layout/src/main/defaults.vue.mjs +5 -0
  52. package/es/packages/components/fm-layout/src/main/defaults.vue2.mjs +153 -0
  53. package/es/packages/components/fm-layout/src/main/transverse.vue.mjs +5 -0
  54. package/es/packages/components/fm-layout/src/main/transverse.vue2.mjs +70 -0
  55. package/es/packages/components/fm-layout/src/navBars/index.vue.mjs +5 -0
  56. package/es/packages/components/fm-layout/src/navBars/index.vue2.mjs +44 -0
  57. package/es/packages/components/fm-layout/src/navBars/tagsView/contextmenu.vue.mjs +5 -0
  58. package/es/packages/components/fm-layout/src/navBars/tagsView/contextmenu.vue2.mjs +156 -0
  59. package/es/packages/components/fm-layout/src/navBars/tagsView/tagsView.vue.mjs +5 -0
  60. package/es/packages/components/fm-layout/src/navBars/tagsView/tagsView.vue2.mjs +576 -0
  61. package/es/packages/components/fm-layout/src/navBars/topBar/breadcrumb.vue.mjs +5 -0
  62. package/es/packages/components/fm-layout/src/navBars/topBar/breadcrumb.vue2.mjs +169 -0
  63. package/es/packages/components/fm-layout/src/navBars/topBar/index.vue.mjs +5 -0
  64. package/es/packages/components/fm-layout/src/navBars/topBar/index.vue2.mjs +113 -0
  65. package/es/packages/components/fm-layout/src/navBars/topBar/search.vue.mjs +5 -0
  66. package/es/packages/components/fm-layout/src/navBars/topBar/search.vue2.mjs +120 -0
  67. package/es/packages/components/fm-layout/src/navBars/topBar/upgradeInfo.vue.mjs +5 -0
  68. package/es/packages/components/fm-layout/src/navBars/topBar/upgradeInfo.vue2.mjs +72 -0
  69. package/es/packages/components/fm-layout/src/navBars/topBar/user.vue.mjs +5 -0
  70. package/es/packages/components/fm-layout/src/navBars/topBar/user.vue2.mjs +699 -0
  71. package/es/packages/components/fm-layout/src/navBars/topBar/userNews.vue.mjs +5 -0
  72. package/es/packages/components/fm-layout/src/navBars/topBar/userNews.vue2.mjs +255 -0
  73. package/es/packages/components/fm-layout/src/navMenu/horizontal.vue.mjs +5 -0
  74. package/es/packages/components/fm-layout/src/navMenu/horizontal.vue2.mjs +182 -0
  75. package/es/packages/components/fm-layout/src/navMenu/subItem.vue.mjs +5 -0
  76. package/es/packages/components/fm-layout/src/navMenu/subItem.vue2.mjs +113 -0
  77. package/es/packages/components/fm-layout/src/navMenu/vertical.vue.mjs +5 -0
  78. package/es/packages/components/fm-layout/src/navMenu/vertical.vue2.mjs +159 -0
  79. package/es/packages/components/fm-layout/src/routerView/iframes.vue.mjs +5 -0
  80. package/es/packages/components/fm-layout/src/routerView/iframes.vue2.mjs +128 -0
  81. package/es/packages/components/fm-layout/src/routerView/parent.vue.mjs +5 -0
  82. package/es/packages/components/fm-layout/src/routerView/parent.vue2.mjs +141 -0
  83. package/es/packages/components/fm-layout/src/type.mjs +1 -0
  84. package/es/packages/components/index.mjs +1 -0
  85. package/index.js +4071 -73
  86. package/index.min.js +5 -5
  87. package/index.min.mjs +5 -5
  88. package/index.mjs +4082 -81
  89. package/lib/{index.css → component.css} +2 -2
  90. package/lib/component.js +3 -1
  91. package/lib/components/fm-layout/index.d.ts +32 -0
  92. package/lib/components/fm-layout/src/component/aside.vue.d.ts +5 -0
  93. package/lib/components/fm-layout/src/component/columnsAside.vue.d.ts +5 -0
  94. package/lib/components/fm-layout/src/component/header.vue.d.ts +16 -0
  95. package/lib/components/fm-layout/src/component/main.vue.d.ts +7 -0
  96. package/lib/components/fm-layout/src/footer/index.vue.d.ts +3 -0
  97. package/lib/components/fm-layout/src/index.vue.d.ts +22 -0
  98. package/lib/components/fm-layout/src/logo/index.vue.d.ts +3 -0
  99. package/lib/components/fm-layout/src/main/classic.vue.d.ts +18 -0
  100. package/lib/components/fm-layout/src/main/columns.vue.d.ts +19 -0
  101. package/lib/components/fm-layout/src/main/defaults.vue.d.ts +48 -0
  102. package/lib/components/fm-layout/src/main/transverse.vue.d.ts +18 -0
  103. package/lib/components/fm-layout/src/navBars/index.vue.d.ts +16 -0
  104. package/lib/components/fm-layout/src/navBars/tagsView/contextmenu.vue.d.ts +28 -0
  105. package/lib/components/fm-layout/src/navBars/tagsView/tagsView.vue.d.ts +45 -0
  106. package/lib/components/fm-layout/src/navBars/topBar/breadcrumb.vue.d.ts +3 -0
  107. package/lib/components/fm-layout/src/navBars/topBar/index.vue.d.ts +16 -0
  108. package/lib/components/fm-layout/src/navBars/topBar/search.vue.d.ts +7 -0
  109. package/lib/components/fm-layout/src/navBars/topBar/upgradeInfo.vue.d.ts +5 -0
  110. package/lib/components/fm-layout/src/navBars/topBar/user.vue.d.ts +75 -0
  111. package/lib/components/fm-layout/src/navBars/topBar/userNews.vue.d.ts +9 -0
  112. package/lib/components/fm-layout/src/navMenu/horizontal.vue.d.ts +42 -0
  113. package/lib/components/fm-layout/src/navMenu/subItem.vue.d.ts +42 -0
  114. package/lib/components/fm-layout/src/navMenu/vertical.vue.d.ts +42 -0
  115. package/lib/components/fm-layout/src/routerView/iframes.vue.d.ts +35 -0
  116. package/lib/components/fm-layout/src/routerView/parent.vue.d.ts +3 -0
  117. package/lib/components/fm-layout/src/type.d.ts +2 -0
  118. package/lib/components/fm-layout/style/css.d.ts +0 -0
  119. package/lib/components/fm-layout/style/index.d.ts +0 -0
  120. package/lib/components/index.d.ts +1 -0
  121. package/lib/packages/components/fm-layout/index.js +9 -0
  122. package/lib/packages/components/fm-layout/src/component/aside.vue.js +9 -0
  123. package/lib/packages/components/fm-layout/src/component/aside.vue2.js +179 -0
  124. package/lib/packages/components/fm-layout/src/component/columnsAside.vue.js +9 -0
  125. package/lib/packages/components/fm-layout/src/component/columnsAside.vue2.js +277 -0
  126. package/lib/packages/components/fm-layout/src/component/header.vue.js +9 -0
  127. package/lib/packages/components/fm-layout/src/component/header.vue2.js +54 -0
  128. package/lib/packages/components/fm-layout/src/component/main.vue.js +9 -0
  129. package/lib/packages/components/fm-layout/src/component/main.vue2.js +85 -0
  130. package/lib/packages/components/fm-layout/src/footer/index.vue.js +9 -0
  131. package/lib/packages/components/fm-layout/src/footer/index.vue2.js +33 -0
  132. package/lib/packages/components/fm-layout/src/index.vue.js +9 -0
  133. package/lib/packages/components/fm-layout/src/index.vue2.js +95 -0
  134. package/lib/packages/components/fm-layout/src/logo/index.vue.js +9 -0
  135. package/lib/packages/components/fm-layout/src/logo/index.vue2.js +61 -0
  136. package/lib/packages/components/fm-layout/src/main/classic.vue.js +9 -0
  137. package/lib/packages/components/fm-layout/src/main/classic.vue2.js +91 -0
  138. package/lib/packages/components/fm-layout/src/main/columns.vue.js +9 -0
  139. package/lib/packages/components/fm-layout/src/main/columns.vue2.js +104 -0
  140. package/lib/packages/components/fm-layout/src/main/defaults.vue.js +9 -0
  141. package/lib/packages/components/fm-layout/src/main/defaults.vue2.js +157 -0
  142. package/lib/packages/components/fm-layout/src/main/transverse.vue.js +9 -0
  143. package/lib/packages/components/fm-layout/src/main/transverse.vue2.js +74 -0
  144. package/lib/packages/components/fm-layout/src/navBars/index.vue.js +9 -0
  145. package/lib/packages/components/fm-layout/src/navBars/index.vue2.js +48 -0
  146. package/lib/packages/components/fm-layout/src/navBars/tagsView/contextmenu.vue.js +9 -0
  147. package/lib/packages/components/fm-layout/src/navBars/tagsView/contextmenu.vue2.js +160 -0
  148. package/lib/packages/components/fm-layout/src/navBars/tagsView/tagsView.vue.js +9 -0
  149. package/lib/packages/components/fm-layout/src/navBars/tagsView/tagsView.vue2.js +580 -0
  150. package/lib/packages/components/fm-layout/src/navBars/topBar/breadcrumb.vue.js +9 -0
  151. package/lib/packages/components/fm-layout/src/navBars/topBar/breadcrumb.vue2.js +173 -0
  152. package/lib/packages/components/fm-layout/src/navBars/topBar/index.vue.js +9 -0
  153. package/lib/packages/components/fm-layout/src/navBars/topBar/index.vue2.js +117 -0
  154. package/lib/packages/components/fm-layout/src/navBars/topBar/search.vue.js +9 -0
  155. package/lib/packages/components/fm-layout/src/navBars/topBar/search.vue2.js +124 -0
  156. package/lib/packages/components/fm-layout/src/navBars/topBar/upgradeInfo.vue.js +9 -0
  157. package/lib/packages/components/fm-layout/src/navBars/topBar/upgradeInfo.vue2.js +76 -0
  158. package/lib/packages/components/fm-layout/src/navBars/topBar/user.vue.js +9 -0
  159. package/lib/packages/components/fm-layout/src/navBars/topBar/user.vue2.js +703 -0
  160. package/lib/packages/components/fm-layout/src/navBars/topBar/userNews.vue.js +9 -0
  161. package/lib/packages/components/fm-layout/src/navBars/topBar/userNews.vue2.js +259 -0
  162. package/lib/packages/components/fm-layout/src/navMenu/horizontal.vue.js +9 -0
  163. package/lib/packages/components/fm-layout/src/navMenu/horizontal.vue2.js +186 -0
  164. package/lib/packages/components/fm-layout/src/navMenu/subItem.vue.js +9 -0
  165. package/lib/packages/components/fm-layout/src/navMenu/subItem.vue2.js +117 -0
  166. package/lib/packages/components/fm-layout/src/navMenu/vertical.vue.js +9 -0
  167. package/lib/packages/components/fm-layout/src/navMenu/vertical.vue2.js +163 -0
  168. package/lib/packages/components/fm-layout/src/routerView/iframes.vue.js +9 -0
  169. package/lib/packages/components/fm-layout/src/routerView/iframes.vue2.js +132 -0
  170. package/lib/packages/components/fm-layout/src/routerView/parent.vue.js +9 -0
  171. package/lib/packages/components/fm-layout/src/routerView/parent.vue2.js +145 -0
  172. package/lib/packages/components/fm-layout/src/type.js +2 -0
  173. package/lib/packages/components/index.js +14 -12
  174. package/locale/en.js +1 -1
  175. package/locale/en.min.js +1 -1
  176. package/locale/en.min.mjs +1 -1
  177. package/locale/en.mjs +1 -1
  178. package/locale/zh-cn.js +1 -1
  179. package/locale/zh-cn.min.js +1 -1
  180. package/locale/zh-cn.min.mjs +1 -1
  181. package/locale/zh-cn.mjs +1 -1
  182. package/package.json +1 -1
  183. package/theme-chalk/f-layout.css +1 -0
  184. package/theme-chalk/index.css +1 -1
  185. package/theme-chalk/src/index.scss +1 -0
  186. package/theme-chalk/src/layout.scss +657 -0
  187. /package/es/{version.css → defaults.css} +0 -0
@@ -0,0 +1,91 @@
1
+ import { defineComponent, defineAsyncComponent, onBeforeMount, onUnmounted, openBlock, createBlock, resolveDynamicComponent, unref, normalizeProps, guardReactiveProps, withCtx, createElementBlock, Fragment, renderList, renderSlot, mergeProps } from 'vue';
2
+ import { storeToRefs } from 'pinia';
3
+ import '../../../stores/index.mjs';
4
+ import '../../../utils/index.mjs';
5
+ import '../../../hooks/index.mjs';
6
+ import emitter from '../../../utils/mitt.mjs';
7
+ import { useThemeConfig } from '../../../stores/themeConfig.mjs';
8
+ import { provideFormEvents } from '../../../hooks/composables/useDialogEvents.mjs';
9
+ import { Local } from '../../../utils/storage.mjs';
10
+
11
+ var _sfc_main = /* @__PURE__ */ defineComponent({
12
+ ...{
13
+ name: "FLayout"
14
+ },
15
+ __name: "index",
16
+ emits: ["layoutChangePassword", "layoutOnlineUsers"],
17
+ setup(__props, { emit: __emit }) {
18
+ const layouts = {
19
+ defaults: defineAsyncComponent(() => import('./main/defaults.vue.mjs')),
20
+ classic: defineAsyncComponent(() => import('./main/classic.vue.mjs')),
21
+ transverse: defineAsyncComponent(() => import('./main/transverse.vue.mjs')),
22
+ columns: defineAsyncComponent(() => import('./main/columns.vue.mjs'))
23
+ };
24
+ const storesThemeConfig = useThemeConfig();
25
+ const { themeConfig } = storeToRefs(storesThemeConfig);
26
+ let maxClientWidth = document.body.clientWidth;
27
+ const curMyEmit = __emit;
28
+ provideFormEvents({
29
+ onFormDialogOpen: (data) => {
30
+ if (data.name == "changePassword") {
31
+ curMyEmit("layoutChangePassword");
32
+ } else if (data.name == "onlineUsers") {
33
+ curMyEmit("layoutOnlineUsers");
34
+ }
35
+ }
36
+ });
37
+ const onLayoutResize = () => {
38
+ if (!Local.get("oldLayout")) Local.set("oldLayout", themeConfig.value.layout);
39
+ const clientWidth = document.body.clientWidth;
40
+ if (maxClientWidth > clientWidth) return;
41
+ maxClientWidth = clientWidth;
42
+ if (clientWidth < 1e3) {
43
+ themeConfig.value.isCollapse = false;
44
+ emitter.emit("layoutMobileResize", {
45
+ layout: "defaults",
46
+ clientWidth
47
+ });
48
+ } else {
49
+ emitter.emit("layoutMobileResize", {
50
+ layout: Local.get("oldLayout") ? Local.get("oldLayout") : themeConfig.value.layout,
51
+ clientWidth
52
+ });
53
+ }
54
+ };
55
+ onBeforeMount(() => {
56
+ onLayoutResize();
57
+ window.addEventListener("resize", onLayoutResize);
58
+ });
59
+ onUnmounted(() => {
60
+ window.removeEventListener("resize", onLayoutResize);
61
+ });
62
+ return (_ctx, _cache) => {
63
+ return openBlock(), createBlock(
64
+ resolveDynamicComponent(layouts[unref(themeConfig).layout]),
65
+ normalizeProps(guardReactiveProps(_ctx.$attrs)),
66
+ {
67
+ default: withCtx(() => [
68
+ (openBlock(true), createElementBlock(
69
+ Fragment,
70
+ null,
71
+ renderList(_ctx.$slots, (_, name) => {
72
+ return renderSlot(_ctx.$slots, name, mergeProps({
73
+ key: name,
74
+ ref_for: true
75
+ }, _ctx.$slots[name].props || {}));
76
+ }),
77
+ 128
78
+ /* KEYED_FRAGMENT */
79
+ ))
80
+ ]),
81
+ _: 3
82
+ /* FORWARDED */
83
+ },
84
+ 16
85
+ /* FULL_PROPS */
86
+ );
87
+ };
88
+ }
89
+ });
90
+
91
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './index.vue2.mjs';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,57 @@
1
+ import { defineComponent, computed, openBlock, createElementBlock, unref, createCommentVNode, createElementVNode, toDisplayString } from 'vue';
2
+ import { storeToRefs } from 'pinia';
3
+ import '../../../../stores/index.mjs';
4
+ import { useThemeConfig } from '../../../../stores/themeConfig.mjs';
5
+
6
+ const _hoisted_1 = ["src"];
7
+ const _hoisted_2 = ["src"];
8
+ var _sfc_main = /* @__PURE__ */ defineComponent({
9
+ __name: "index",
10
+ setup(__props) {
11
+ const storesThemeConfig = useThemeConfig();
12
+ const { themeConfig } = storeToRefs(storesThemeConfig);
13
+ const setShowLogo = computed(() => {
14
+ let { isCollapse, layout } = themeConfig.value;
15
+ return !isCollapse || layout === "classic" || document.body.clientWidth < 1e3;
16
+ });
17
+ const showLogo = computed(() => {
18
+ let { layout } = themeConfig.value;
19
+ return layout !== "columns";
20
+ });
21
+ const onThemeConfigChange = () => {
22
+ if (themeConfig.value.layout === "transverse") return false;
23
+ themeConfig.value.isCollapse = !themeConfig.value.isCollapse;
24
+ };
25
+ return (_ctx, _cache) => {
26
+ return setShowLogo.value ? (openBlock(), createElementBlock("div", {
27
+ key: 0,
28
+ class: "layout-logo",
29
+ onClick: onThemeConfigChange
30
+ }, [
31
+ showLogo.value ? (openBlock(), createElementBlock("img", {
32
+ key: 0,
33
+ src: unref(themeConfig).logoUrl,
34
+ class: "layout-logo-medium-img"
35
+ }, null, 8, _hoisted_1)) : createCommentVNode("v-if", true),
36
+ createElementVNode(
37
+ "span",
38
+ null,
39
+ toDisplayString(unref(themeConfig).globalTitle),
40
+ 1
41
+ /* TEXT */
42
+ )
43
+ ])) : (openBlock(), createElementBlock("div", {
44
+ key: 1,
45
+ class: "layout-logo-size",
46
+ onClick: onThemeConfigChange
47
+ }, [
48
+ createElementVNode("img", {
49
+ src: unref(themeConfig).logoUrl,
50
+ class: "layout-logo-size-img"
51
+ }, null, 8, _hoisted_2)
52
+ ]));
53
+ };
54
+ }
55
+ });
56
+
57
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './classic.vue2.mjs';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,87 @@
1
+ import { defineComponent, defineAsyncComponent, ref, computed, onMounted, watch, nextTick, resolveComponent, openBlock, createBlock, withCtx, createVNode, unref, createElementVNode, createCommentVNode } from 'vue';
2
+ import { useRoute } from 'vue-router';
3
+ import { storeToRefs } from 'pinia';
4
+ import '../../../../stores/index.mjs';
5
+ import { useThemeConfig } from '../../../../stores/themeConfig.mjs';
6
+
7
+ const _hoisted_1 = { class: "flex-center layout-backtop" };
8
+ var _sfc_main = /* @__PURE__ */ defineComponent({
9
+ __name: "classic",
10
+ setup(__props) {
11
+ const LayoutAside = defineAsyncComponent(() => import('../component/aside.vue.mjs'));
12
+ const LayoutHeader = defineAsyncComponent(() => import('../component/header.vue.mjs'));
13
+ const LayoutMain = defineAsyncComponent(() => import('../component/main.vue.mjs'));
14
+ const LayoutTagsView = defineAsyncComponent(() => import('../navBars/tagsView/tagsView.vue.mjs'));
15
+ const layoutMainRef = ref();
16
+ const route = useRoute();
17
+ const storesThemeConfig = useThemeConfig();
18
+ const { themeConfig } = storeToRefs(storesThemeConfig);
19
+ const isTagsview = computed(() => {
20
+ return themeConfig.value.isTagsview;
21
+ });
22
+ const updateScrollbar = () => {
23
+ var _a;
24
+ (_a = layoutMainRef.value) == null ? void 0 : _a.layoutMainScrollbarRef.update();
25
+ };
26
+ const initScrollBarHeight = () => {
27
+ nextTick(() => {
28
+ setTimeout(() => {
29
+ updateScrollbar();
30
+ if (layoutMainRef.value) layoutMainRef.value.layoutMainScrollbarRef.wrapRef.scrollTop = 0;
31
+ }, 500);
32
+ });
33
+ };
34
+ onMounted(() => {
35
+ initScrollBarHeight();
36
+ });
37
+ watch(
38
+ () => route.path,
39
+ () => {
40
+ initScrollBarHeight();
41
+ }
42
+ );
43
+ watch(
44
+ () => themeConfig.value.isTagsview,
45
+ () => {
46
+ nextTick(() => {
47
+ updateScrollbar();
48
+ });
49
+ },
50
+ {
51
+ deep: true
52
+ }
53
+ );
54
+ return (_ctx, _cache) => {
55
+ const _component_el_container = resolveComponent("el-container");
56
+ return openBlock(), createBlock(_component_el_container, { class: "layout-container flex-center" }, {
57
+ default: withCtx(() => [
58
+ createVNode(unref(LayoutHeader)),
59
+ createVNode(_component_el_container, { class: "layout-mian-height-50" }, {
60
+ default: withCtx(() => [
61
+ createVNode(unref(LayoutAside)),
62
+ createElementVNode("div", _hoisted_1, [
63
+ isTagsview.value ? (openBlock(), createBlock(unref(LayoutTagsView), { key: 0 })) : createCommentVNode("v-if", true),
64
+ createVNode(
65
+ unref(LayoutMain),
66
+ {
67
+ ref_key: "layoutMainRef",
68
+ ref: layoutMainRef
69
+ },
70
+ null,
71
+ 512
72
+ /* NEED_PATCH */
73
+ )
74
+ ])
75
+ ]),
76
+ _: 1
77
+ /* STABLE */
78
+ })
79
+ ]),
80
+ _: 1
81
+ /* STABLE */
82
+ });
83
+ };
84
+ }
85
+ });
86
+
87
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './columns.vue2.mjs';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,100 @@
1
+ import { defineComponent, defineAsyncComponent, ref, onMounted, watch, nextTick, resolveComponent, openBlock, createBlock, withCtx, createVNode, unref } from 'vue';
2
+ import { useRoute } from 'vue-router';
3
+ import { storeToRefs } from 'pinia';
4
+ import '../../../../stores/index.mjs';
5
+ import { useThemeConfig } from '../../../../stores/themeConfig.mjs';
6
+
7
+ var _sfc_main = /* @__PURE__ */ defineComponent({
8
+ __name: "columns",
9
+ setup(__props) {
10
+ const LayoutAside = defineAsyncComponent(() => import('../component/aside.vue.mjs'));
11
+ const LayoutHeader = defineAsyncComponent(() => import('../component/header.vue.mjs'));
12
+ const LayoutMain = defineAsyncComponent(() => import('../component/main.vue.mjs'));
13
+ const ColumnsAside = defineAsyncComponent(() => import('../component/columnsAside.vue.mjs'));
14
+ const layoutScrollbarRef = ref("");
15
+ const layoutMainRef = ref();
16
+ const route = useRoute();
17
+ const storesThemeConfig = useThemeConfig();
18
+ const { themeConfig } = storeToRefs(storesThemeConfig);
19
+ const updateScrollbar = () => {
20
+ layoutScrollbarRef.value.update();
21
+ layoutMainRef.value && layoutMainRef.value.layoutMainScrollbarRef.update();
22
+ };
23
+ const initScrollBarHeight = () => {
24
+ nextTick(() => {
25
+ setTimeout(() => {
26
+ updateScrollbar();
27
+ layoutScrollbarRef.value.wrapRef.scrollTop = 0;
28
+ if (layoutMainRef.value != void 0) layoutMainRef.value.layoutMainScrollbarRef.wrapRef.scrollTop = 0;
29
+ }, 500);
30
+ });
31
+ };
32
+ onMounted(() => {
33
+ initScrollBarHeight();
34
+ });
35
+ watch(
36
+ () => route.path,
37
+ () => {
38
+ initScrollBarHeight();
39
+ }
40
+ );
41
+ watch(
42
+ () => [themeConfig.value.isTagsview, themeConfig.value.isFixedHeader],
43
+ () => {
44
+ nextTick(() => {
45
+ updateScrollbar();
46
+ });
47
+ },
48
+ {
49
+ deep: true
50
+ }
51
+ );
52
+ return (_ctx, _cache) => {
53
+ const _component_el_scrollbar = resolveComponent("el-scrollbar");
54
+ const _component_el_container = resolveComponent("el-container");
55
+ return openBlock(), createBlock(_component_el_container, { class: "layout-container" }, {
56
+ default: withCtx(() => [
57
+ createVNode(unref(ColumnsAside)),
58
+ createVNode(_component_el_container, { class: "layout-columns-warp layout-container-view h100" }, {
59
+ default: withCtx(() => [
60
+ createVNode(unref(LayoutAside)),
61
+ createVNode(
62
+ _component_el_scrollbar,
63
+ {
64
+ ref_key: "layoutScrollbarRef",
65
+ ref: layoutScrollbarRef,
66
+ class: "layout-backtop"
67
+ },
68
+ {
69
+ default: withCtx(() => [
70
+ createVNode(unref(LayoutHeader)),
71
+ createVNode(
72
+ unref(LayoutMain),
73
+ {
74
+ ref_key: "layoutMainRef",
75
+ ref: layoutMainRef
76
+ },
77
+ null,
78
+ 512
79
+ /* NEED_PATCH */
80
+ )
81
+ ]),
82
+ _: 1
83
+ /* STABLE */
84
+ },
85
+ 512
86
+ /* NEED_PATCH */
87
+ )
88
+ ]),
89
+ _: 1
90
+ /* STABLE */
91
+ })
92
+ ]),
93
+ _: 1
94
+ /* STABLE */
95
+ });
96
+ };
97
+ }
98
+ });
99
+
100
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './defaults.vue2.mjs';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,153 @@
1
+ import { defineComponent, defineAsyncComponent, ref, onMounted, watch, nextTick, resolveComponent, openBlock, createBlock, withCtx, unref, createElementBlock, Fragment, renderList, renderSlot, mergeProps, createVNode } from 'vue';
2
+ import { useRoute } from 'vue-router';
3
+ import { storeToRefs } from 'pinia';
4
+ import '../../../../stores/index.mjs';
5
+ import '../../../../utils/index.mjs';
6
+ import { useThemeConfig } from '../../../../stores/themeConfig.mjs';
7
+ import { NextLoading } from '../../../../utils/loading.mjs';
8
+
9
+ var _sfc_main = /* @__PURE__ */ defineComponent({
10
+ __name: "defaults",
11
+ setup(__props) {
12
+ const LayoutAside = defineAsyncComponent(() => import('../component/aside.vue.mjs'));
13
+ const LayoutHeader = defineAsyncComponent(() => import('../component/header.vue.mjs'));
14
+ const LayoutMain = defineAsyncComponent(() => import('../component/main.vue.mjs'));
15
+ const layoutScrollbarRef = ref("");
16
+ const layoutMainRef = ref();
17
+ const route = useRoute();
18
+ const storesThemeConfig = useThemeConfig();
19
+ const { themeConfig } = storeToRefs(storesThemeConfig);
20
+ const updateScrollbar = () => {
21
+ layoutScrollbarRef.value.update();
22
+ layoutMainRef.value.layoutMainScrollbarRef.update();
23
+ };
24
+ const initScrollBarHeight = () => {
25
+ nextTick(() => {
26
+ setTimeout(() => {
27
+ updateScrollbar();
28
+ layoutScrollbarRef.value.wrapRef.scrollTop = 0;
29
+ if (layoutMainRef.value != void 0) layoutMainRef.value.layoutMainScrollbarRef.wrapRef.scrollTop = 0;
30
+ }, 500);
31
+ });
32
+ };
33
+ onMounted(() => {
34
+ initScrollBarHeight();
35
+ NextLoading.done(600);
36
+ });
37
+ watch(
38
+ () => route.path,
39
+ () => {
40
+ initScrollBarHeight();
41
+ }
42
+ );
43
+ watch(
44
+ () => [themeConfig.value.isTagsview, themeConfig.value.isFixedHeader],
45
+ () => {
46
+ nextTick(() => {
47
+ updateScrollbar();
48
+ });
49
+ },
50
+ {
51
+ deep: true
52
+ }
53
+ );
54
+ return (_ctx, _cache) => {
55
+ const _component_el_scrollbar = resolveComponent("el-scrollbar");
56
+ const _component_el_container = resolveComponent("el-container");
57
+ return openBlock(), createBlock(_component_el_container, { class: "layout-container" }, {
58
+ default: withCtx(() => [
59
+ !_ctx.$slots.aside ? (openBlock(), createBlock(unref(LayoutAside), { key: 0 }, {
60
+ default: withCtx(() => [
61
+ (openBlock(true), createElementBlock(
62
+ Fragment,
63
+ null,
64
+ renderList(_ctx.$slots, (_, name) => {
65
+ return renderSlot(_ctx.$slots, name, mergeProps({
66
+ key: name,
67
+ ref_for: true
68
+ }, _ctx.$slots[name].props || {}));
69
+ }),
70
+ 128
71
+ /* KEYED_FRAGMENT */
72
+ ))
73
+ ]),
74
+ _: 3
75
+ /* FORWARDED */
76
+ })) : renderSlot(_ctx.$slots, "aside", { key: 1 }),
77
+ createVNode(_component_el_container, { class: "layout-container-view h100" }, {
78
+ default: withCtx(() => [
79
+ createVNode(
80
+ _component_el_scrollbar,
81
+ {
82
+ ref_key: "layoutScrollbarRef",
83
+ ref: layoutScrollbarRef,
84
+ class: "layout-backtop"
85
+ },
86
+ {
87
+ default: withCtx(() => [
88
+ !_ctx.$slots.header ? (openBlock(), createBlock(unref(LayoutHeader), { key: 0 }, {
89
+ default: withCtx(() => [
90
+ (openBlock(true), createElementBlock(
91
+ Fragment,
92
+ null,
93
+ renderList(_ctx.$slots, (_, name) => {
94
+ return renderSlot(_ctx.$slots, name, mergeProps({
95
+ key: name,
96
+ ref_for: true
97
+ }, _ctx.$slots[name].props || {}));
98
+ }),
99
+ 128
100
+ /* KEYED_FRAGMENT */
101
+ ))
102
+ ]),
103
+ _: 3
104
+ /* FORWARDED */
105
+ })) : renderSlot(_ctx.$slots, "header", { key: 1 }),
106
+ !_ctx.$slots.main ? (openBlock(), createBlock(
107
+ unref(LayoutMain),
108
+ {
109
+ key: 2,
110
+ ref_key: "layoutMainRef",
111
+ ref: layoutMainRef
112
+ },
113
+ {
114
+ default: withCtx(() => [
115
+ (openBlock(true), createElementBlock(
116
+ Fragment,
117
+ null,
118
+ renderList(_ctx.$slots, (_, name) => {
119
+ return renderSlot(_ctx.$slots, name, mergeProps({
120
+ key: name,
121
+ ref_for: true
122
+ }, _ctx.$slots[name].props || {}));
123
+ }),
124
+ 128
125
+ /* KEYED_FRAGMENT */
126
+ ))
127
+ ]),
128
+ _: 3
129
+ /* FORWARDED */
130
+ },
131
+ 512
132
+ /* NEED_PATCH */
133
+ )) : renderSlot(_ctx.$slots, "main", { key: 3 })
134
+ ]),
135
+ _: 3
136
+ /* FORWARDED */
137
+ },
138
+ 512
139
+ /* NEED_PATCH */
140
+ )
141
+ ]),
142
+ _: 3
143
+ /* FORWARDED */
144
+ })
145
+ ]),
146
+ _: 3
147
+ /* FORWARDED */
148
+ });
149
+ };
150
+ }
151
+ });
152
+
153
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './transverse.vue2.mjs';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,70 @@
1
+ import { defineComponent, defineAsyncComponent, ref, onMounted, watch, nextTick, resolveComponent, openBlock, createBlock, withCtx, createVNode, unref } from 'vue';
2
+ import { useRoute } from 'vue-router';
3
+ import { storeToRefs } from 'pinia';
4
+ import '../../../../stores/index.mjs';
5
+ import { useThemeConfig } from '../../../../stores/themeConfig.mjs';
6
+
7
+ var _sfc_main = /* @__PURE__ */ defineComponent({
8
+ __name: "transverse",
9
+ setup(__props) {
10
+ const LayoutHeader = defineAsyncComponent(() => import('../component/header.vue.mjs'));
11
+ const LayoutMain = defineAsyncComponent(() => import('../component/main.vue.mjs'));
12
+ const layoutMainRef = ref();
13
+ const storesThemeConfig = useThemeConfig();
14
+ const { themeConfig } = storeToRefs(storesThemeConfig);
15
+ const route = useRoute();
16
+ const updateScrollbar = () => {
17
+ layoutMainRef.value.layoutMainScrollbarRef.update();
18
+ };
19
+ const initScrollBarHeight = () => {
20
+ nextTick(() => {
21
+ setTimeout(() => {
22
+ updateScrollbar();
23
+ layoutMainRef.value.layoutMainScrollbarRef.wrapRef.scrollTop = 0;
24
+ }, 500);
25
+ });
26
+ };
27
+ onMounted(() => {
28
+ initScrollBarHeight();
29
+ });
30
+ watch(
31
+ () => route.path,
32
+ () => {
33
+ initScrollBarHeight();
34
+ }
35
+ );
36
+ watch(
37
+ () => themeConfig.value.isTagsview,
38
+ () => {
39
+ nextTick(() => {
40
+ updateScrollbar();
41
+ });
42
+ },
43
+ {
44
+ deep: true
45
+ }
46
+ );
47
+ return (_ctx, _cache) => {
48
+ const _component_el_container = resolveComponent("el-container");
49
+ return openBlock(), createBlock(_component_el_container, { class: "layout-container flex-center layout-backtop" }, {
50
+ default: withCtx(() => [
51
+ createVNode(unref(LayoutHeader)),
52
+ createVNode(
53
+ unref(LayoutMain),
54
+ {
55
+ ref_key: "layoutMainRef",
56
+ ref: layoutMainRef
57
+ },
58
+ null,
59
+ 512
60
+ /* NEED_PATCH */
61
+ )
62
+ ]),
63
+ _: 1
64
+ /* STABLE */
65
+ });
66
+ };
67
+ }
68
+ });
69
+
70
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './index.vue2.mjs';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -0,0 +1,44 @@
1
+ import { defineComponent, defineAsyncComponent, computed, openBlock, createElementBlock, createBlock, unref, withCtx, Fragment, renderList, renderSlot, mergeProps, createCommentVNode } from 'vue';
2
+ import { storeToRefs } from 'pinia';
3
+ import '../../../../stores/index.mjs';
4
+ import { useThemeConfig } from '../../../../stores/themeConfig.mjs';
5
+
6
+ const _hoisted_1 = { class: "layout-navbars-container" };
7
+ var _sfc_main = /* @__PURE__ */ defineComponent({
8
+ __name: "index",
9
+ setup(__props) {
10
+ const BreadcrumbIndex = defineAsyncComponent(() => import('./topBar/index.vue.mjs'));
11
+ const TagsView = defineAsyncComponent(() => import('./tagsView/tagsView.vue.mjs'));
12
+ const storesThemeConfig = useThemeConfig();
13
+ const { themeConfig } = storeToRefs(storesThemeConfig);
14
+ const setShowTagsView = computed(() => {
15
+ let { layout, isTagsview } = themeConfig.value;
16
+ return layout !== "classic" && isTagsview;
17
+ });
18
+ return (_ctx, _cache) => {
19
+ return openBlock(), createElementBlock("div", _hoisted_1, [
20
+ !_ctx.$slots.breadcrumb ? (openBlock(), createBlock(unref(BreadcrumbIndex), { key: 0 }, {
21
+ default: withCtx(() => [
22
+ (openBlock(true), createElementBlock(
23
+ Fragment,
24
+ null,
25
+ renderList(_ctx.$slots, (_, name) => {
26
+ return renderSlot(_ctx.$slots, name, mergeProps({
27
+ key: name,
28
+ ref_for: true
29
+ }, _ctx.$slots[name].props || {}));
30
+ }),
31
+ 128
32
+ /* KEYED_FRAGMENT */
33
+ ))
34
+ ]),
35
+ _: 3
36
+ /* FORWARDED */
37
+ })) : renderSlot(_ctx.$slots, "breadcrumb", { key: 1 }),
38
+ setShowTagsView.value ? (openBlock(), createBlock(unref(TagsView), { key: 2 })) : createCommentVNode("v-if", true)
39
+ ]);
40
+ };
41
+ }
42
+ });
43
+
44
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './contextmenu.vue2.mjs';
2
+
3
+
4
+
5
+ export { _sfc_main as default };