@skyfox2000/webui 1.3.18 → 1.3.19

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyfox2000/webui",
3
- "version": "1.3.18",
3
+ "version": "1.3.19",
4
4
  "description": "后台前端通用组件定义",
5
5
  "type": "module",
6
6
  "keywords": [],
@@ -0,0 +1,34 @@
1
+ <script lang="ts" setup>
2
+ import { onMounted, ref, watch } from 'vue';
3
+ import BaseLayout from './baseLayout.vue';
4
+ import { useAppInfo, useSettingInfo } from '@/index';
5
+ import message from 'vue-m-message';
6
+
7
+ const props = defineProps<{ routes: any }>();
8
+
9
+ const appInfoStore = useAppInfo();
10
+ const settingInfoStore = useSettingInfo();
11
+
12
+ const bodyClass = ref('h-[calc(100vh-81px)]');
13
+ watch(
14
+ () => settingInfoStore.fullscreen,
15
+ (newVal) => {
16
+ bodyClass.value = newVal ? 'h-[calc(100vh-40px)]' : 'h-[calc(100vh-81px)]';
17
+ },
18
+ );
19
+
20
+ onMounted(() => {
21
+ message.closeAll();
22
+ });
23
+ </script>
24
+ <template>
25
+ <BaseLayout :routes="props.routes">
26
+ <div class="relative" :class="bodyClass">
27
+ <router-view v-slot="{ Component, route }">
28
+ <keep-alive :include="appInfoStore.CachedComponents" :exclude="appInfoStore.ExcludeComponents">
29
+ <component :is="appInfoStore.cacheComponent(Component, route)" />
30
+ </keep-alive>
31
+ </router-view>
32
+ </div>
33
+ </BaseLayout>
34
+ </template>
package/vite.config.ts CHANGED
@@ -62,6 +62,7 @@ export default defineConfig(({ mode }: ConfigEnv) => {
62
62
  Error403: 'src/components/error/error403.vue',
63
63
  Error404: 'src/components/error/error404.vue',
64
64
  BasicLayout: 'src/components/layout/page/basicLayout.vue',
65
+ MenuLayout: 'src/components/layout/page/menuLayout.vue',
65
66
  },
66
67
  fileName: (format, entryName) => {
67
68
  if (entryName === 'index') return `webui.${format}.js`;
@@ -80,7 +81,6 @@ export default defineConfig(({ mode }: ConfigEnv) => {
80
81
  'vue-m-message',
81
82
  'vue-draggable-next',
82
83
  '@skyfox2000/fapi',
83
- '@skyfox2000/webbase',
84
84
  '@skyfox2000/microbase',
85
85
 
86
86
  '@vue-office/excel',