wui-components-v2 1.1.32 → 1.1.33

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.
@@ -3,7 +3,7 @@ import { computed, defineOptions } from 'vue'
3
3
  import { useManualTheme } from '../../composables/useManualTheme'
4
4
  import { useUser } from '../../composables/useUser'
5
5
  import { formatChineseDate } from '../../utils'
6
- import { useSectionMenus } from '../../composables/useSectionMenus'
6
+ import { useSectionMenus } from '../../composables/useSectionMenus'
7
7
 
8
8
  defineOptions({
9
9
  name: 'WuiMenusTop',
@@ -24,9 +24,9 @@ const quickPanelcomputed = computed(() => {
24
24
  <template>
25
25
  <view class="header-container position-relative">
26
26
  <!-- 背景层 -->
27
- <view
27
+ <view
28
28
  class="header-background"
29
- :style="{ background: `linear-gradient(160deg, ${currentThemeColor.primary} 0%, ${currentThemeColor.primary}dd 50%, ${currentThemeColor.primary}aa 100%)` }"
29
+ :style="{ background: `linear-gradient(160deg, ${currentThemeColor.primary} 0%, ${currentThemeColor.primary}dd 50%, ${currentThemeColor.primary}aa 100%)` }"
30
30
  >
31
31
  <!-- 装饰背景元素 -->
32
32
  <view class="header-bg-pattern" />
@@ -1,5 +1,5 @@
1
- import { ref } from 'vue'
2
- import { fastmenu, menuCount } from '../api/menu'
1
+ import { ref,onUnmounted } from 'vue'
2
+ import { fastmenu, menuCount} from '../api/menu'
3
3
 
4
4
  export interface MenuCount {
5
5
  title: string
@@ -19,7 +19,7 @@ export function useSectionMenus() {
19
19
  return res.count
20
20
  }
21
21
  return 0
22
- }
22
+ }
23
23
  catch (error) {
24
24
  console.log(error)
25
25
  return 0
@@ -28,7 +28,7 @@ export function useSectionMenus() {
28
28
 
29
29
  // 组件卸载时清理定时器(可选)
30
30
  onUnmounted(() => {
31
- if (intervalId)
31
+ if (intervalId)
32
32
  clearInterval(intervalId)
33
33
  })
34
34
 
@@ -65,7 +65,7 @@ export function useSectionMenus() {
65
65
  }),
66
66
  )
67
67
  }
68
- }
68
+ }
69
69
  catch (error) {
70
70
  console.log(error)
71
71
  }
@@ -73,7 +73,7 @@ export function useSectionMenus() {
73
73
 
74
74
  // 返回定时器 ID,方便后续清理
75
75
  return intervalId
76
- }
76
+ }
77
77
  catch (error) {
78
78
  console.log(error)
79
79
  return null
@@ -87,7 +87,7 @@ export function useSectionMenus() {
87
87
  messageBar.value = res.fastMenu.MessageBar ? res.fastMenu.MessageBar[0] : null
88
88
  quickPanel.value = res.fastMenu?.QuickPanel || []
89
89
  // 清除之前的定时器(防止重复创建)
90
- if (intervalId)
90
+ if (intervalId)
91
91
  clearInterval(intervalId)
92
92
  // 启动定时器
93
93
  intervalId = await updateMenuCounts()
@@ -106,5 +106,5 @@ export function useSectionMenus() {
106
106
  return {
107
107
  messageBar,
108
108
  quickPanel,
109
- }
110
- }
109
+ }
110
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wui-components-v2",
3
- "version": "1.1.32",
3
+ "version": "1.1.33",
4
4
  "description": "wui 组件库",
5
5
  "author": "wgxshh",
6
6
  "license": "MIT",