@uxda/appkit 1.2.56 → 1.2.58
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
|
@@ -522,7 +522,7 @@ var script$k = /* @__PURE__ */ defineComponent({
|
|
|
522
522
|
}
|
|
523
523
|
return false;
|
|
524
524
|
}
|
|
525
|
-
if (!compareVersion(version, recommendVersions.value
|
|
525
|
+
if (!compareVersion(version, (recommendVersions.value || {}).Mini || "2.24.0")) {
|
|
526
526
|
showAlert.value = true;
|
|
527
527
|
}
|
|
528
528
|
});
|
|
@@ -3576,6 +3576,7 @@ var script$2 = /* @__PURE__ */ defineComponent({
|
|
|
3576
3576
|
const $http = useHttp();
|
|
3577
3577
|
$http.post("/cas/msg/setMsgStatus", {
|
|
3578
3578
|
device: "MINI",
|
|
3579
|
+
noticeStatus: 0,
|
|
3579
3580
|
receiveId: props.message.id
|
|
3580
3581
|
}).then(() => {
|
|
3581
3582
|
onCancel();
|
|
@@ -3689,6 +3690,8 @@ var script$1 = /* @__PURE__ */ defineComponent({
|
|
|
3689
3690
|
stopMessageCarousel();
|
|
3690
3691
|
}
|
|
3691
3692
|
}, 3e3);
|
|
3693
|
+
} else {
|
|
3694
|
+
activeKey.value = 0;
|
|
3692
3695
|
}
|
|
3693
3696
|
}
|
|
3694
3697
|
function startMessageCalc() {
|
|
@@ -3701,7 +3704,7 @@ var script$1 = /* @__PURE__ */ defineComponent({
|
|
|
3701
3704
|
function stopMessageCarousel() {
|
|
3702
3705
|
clearInterval(interval);
|
|
3703
3706
|
}
|
|
3704
|
-
|
|
3707
|
+
const onClose = debounce((item, index) => {
|
|
3705
3708
|
stopMessageCarousel();
|
|
3706
3709
|
const $http = useHttp();
|
|
3707
3710
|
$http.post("/cas/msg/setMsgStatus", {
|
|
@@ -3719,7 +3722,7 @@ var script$1 = /* @__PURE__ */ defineComponent({
|
|
|
3719
3722
|
}).catch(() => {
|
|
3720
3723
|
startMessageCarousel();
|
|
3721
3724
|
});
|
|
3722
|
-
}
|
|
3725
|
+
}, 400);
|
|
3723
3726
|
async function onDetail(item) {
|
|
3724
3727
|
await noticeClick(item);
|
|
3725
3728
|
emits("detail", item);
|
|
@@ -3758,7 +3761,7 @@ var script$1 = /* @__PURE__ */ defineComponent({
|
|
|
3758
3761
|
class: normalizeClass({ show: key === activeKey.value }),
|
|
3759
3762
|
key,
|
|
3760
3763
|
showClose: item.noticeType === 0,
|
|
3761
|
-
onClose: ($event) => onClose(item, key)
|
|
3764
|
+
onClose: ($event) => unref(onClose)(item, key)
|
|
3762
3765
|
}, {
|
|
3763
3766
|
default: withCtx(() => [
|
|
3764
3767
|
_hoisted_1$1,
|
package/package.json
CHANGED
|
@@ -106,6 +106,8 @@ function startMessageCarousel() {
|
|
|
106
106
|
stopMessageCarousel()
|
|
107
107
|
}
|
|
108
108
|
}, 3000)
|
|
109
|
+
} else {
|
|
110
|
+
activeKey.value = 0
|
|
109
111
|
}
|
|
110
112
|
}
|
|
111
113
|
function startMessageCalc() {
|
|
@@ -121,7 +123,7 @@ function stopMessageCarousel() {
|
|
|
121
123
|
}
|
|
122
124
|
|
|
123
125
|
// 关闭横幅
|
|
124
|
-
|
|
126
|
+
const onClose = debounce((item: any, index: number) => {
|
|
125
127
|
stopMessageCarousel()
|
|
126
128
|
|
|
127
129
|
const $http = useHttp()
|
|
@@ -148,7 +150,7 @@ function onClose(item: any, index: number) {
|
|
|
148
150
|
.catch(() => {
|
|
149
151
|
startMessageCarousel()
|
|
150
152
|
})
|
|
151
|
-
}
|
|
153
|
+
}, 400)
|
|
152
154
|
|
|
153
155
|
// 跳转详情
|
|
154
156
|
async function onDetail(item) {
|