@uxda/appkit 1.2.65 → 1.2.66
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/dist/index.js
CHANGED
|
@@ -3726,7 +3726,7 @@ var script$4 = /* @__PURE__ */ defineComponent({
|
|
|
3726
3726
|
}).catch(() => {
|
|
3727
3727
|
startMessageCarousel();
|
|
3728
3728
|
});
|
|
3729
|
-
},
|
|
3729
|
+
}, 350);
|
|
3730
3730
|
async function onDetail(item) {
|
|
3731
3731
|
await noticeClick(item);
|
|
3732
3732
|
emits("detail", item);
|
|
@@ -3937,7 +3937,7 @@ var script$2 = /* @__PURE__ */ defineComponent({
|
|
|
3937
3937
|
},
|
|
3938
3938
|
setup(__props) {
|
|
3939
3939
|
const props = __props;
|
|
3940
|
-
|
|
3940
|
+
const init = debounce(() => {
|
|
3941
3941
|
if (!props.app) {
|
|
3942
3942
|
return Taro.showToast({
|
|
3943
3943
|
title: "NoticeEntry\u7EC4\u4EF6\u7F3A\u5C11appcode",
|
|
@@ -3945,6 +3945,10 @@ var script$2 = /* @__PURE__ */ defineComponent({
|
|
|
3945
3945
|
});
|
|
3946
3946
|
}
|
|
3947
3947
|
getNotice();
|
|
3948
|
+
}, 300);
|
|
3949
|
+
init();
|
|
3950
|
+
useDidShow(() => {
|
|
3951
|
+
init();
|
|
3948
3952
|
});
|
|
3949
3953
|
const noticeShow = ref(false);
|
|
3950
3954
|
async function getNotice() {
|
|
@@ -4341,7 +4345,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
4341
4345
|
}, null, 8, ["nodes"]),
|
|
4342
4346
|
item.link && item.msgType == 3 ? (openBlock(), createElementBlock("span", {
|
|
4343
4347
|
key: 0,
|
|
4344
|
-
class: "
|
|
4348
|
+
class: "notice-list-file",
|
|
4345
4349
|
onClick: ($event) => onNoticeView(item.link)
|
|
4346
4350
|
}, " \u67E5\u770B\u9644\u4EF6 ", 8, _hoisted_7)) : createCommentVNode("v-if", true)
|
|
4347
4351
|
],
|
package/package.json
CHANGED
|
@@ -11,10 +11,11 @@
|
|
|
11
11
|
</template>
|
|
12
12
|
|
|
13
13
|
<script lang="ts" setup>
|
|
14
|
-
import {
|
|
14
|
+
import { ref } from 'vue'
|
|
15
15
|
import { useHttp } from '../api'
|
|
16
16
|
import { useAppKitOptions } from '../../Appkit'
|
|
17
|
-
import Taro from '@tarojs/taro'
|
|
17
|
+
import Taro, { useDidShow } from '@tarojs/taro'
|
|
18
|
+
import debounce from 'lodash/debounce'
|
|
18
19
|
|
|
19
20
|
const props = withDefaults(
|
|
20
21
|
defineProps<{
|
|
@@ -27,7 +28,7 @@ const props = withDefaults(
|
|
|
27
28
|
}
|
|
28
29
|
)
|
|
29
30
|
|
|
30
|
-
|
|
31
|
+
const init = debounce(() => {
|
|
31
32
|
if (!props.app) {
|
|
32
33
|
return Taro.showToast({
|
|
33
34
|
title: 'NoticeEntry组件缺少appcode',
|
|
@@ -35,6 +36,11 @@ onMounted(() => {
|
|
|
35
36
|
})
|
|
36
37
|
}
|
|
37
38
|
getNotice()
|
|
39
|
+
}, 300)
|
|
40
|
+
|
|
41
|
+
init()
|
|
42
|
+
useDidShow(() => {
|
|
43
|
+
init()
|
|
38
44
|
})
|
|
39
45
|
|
|
40
46
|
// 通知红点
|