@peng_kai/kit 0.3.0-beta.39 → 0.3.0-beta.40
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.
|
@@ -70,11 +70,6 @@ function operate(notice: TNotice) {
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
// watch(noticeNum, (num = 0, oldNum = 0) => {
|
|
74
|
-
// num > oldNum && noticeAudio.play();
|
|
75
|
-
// }, { immediate: true });
|
|
76
|
-
|
|
77
|
-
|
|
78
73
|
useIntervalFn(() => {
|
|
79
74
|
const num = noticeNum.value;
|
|
80
75
|
|
|
@@ -120,8 +115,7 @@ useIntervalFn(() => {
|
|
|
120
115
|
<i class="i-ri:notification-4-line block text-5" :class="{ shake: !!noticeNum }" />
|
|
121
116
|
</div>
|
|
122
117
|
<template #overlay>
|
|
123
|
-
<
|
|
124
|
-
<Menu @click="visible = false" class="max-h-100 overflow-y-auto">
|
|
118
|
+
<Menu v-if="noticeNum" @click="visible = false" class="max-h-100 overflow-y-auto">
|
|
125
119
|
<MenuItem v-for="(item, i) of noticeList" :key="i" @click="operate(item)">
|
|
126
120
|
<div class="min-w-50">
|
|
127
121
|
<div>{{ item.title }}</div>
|
|
@@ -131,8 +125,6 @@ useIntervalFn(() => {
|
|
|
131
125
|
</div>
|
|
132
126
|
</MenuItem>
|
|
133
127
|
</Menu>
|
|
134
|
-
123
|
|
135
|
-
</div>
|
|
136
128
|
|
|
137
129
|
<div v-else class="h-40 min-w-50 flex items-center justify-center rounded-2 bg-$antd-colorBgElevated shadow"
|
|
138
130
|
@click="visible = false">
|