|
@@ -1,17 +1,12 @@
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
import { NConfigProvider, NMessageProvider, useMessage } from "naive-ui";
|
|
import { NConfigProvider, NMessageProvider, useMessage } from "naive-ui";
|
|
import { zhCN, dateZhCN } from "naive-ui";
|
|
import { zhCN, dateZhCN } from "naive-ui";
|
|
-import { defineComponent, watch, watchEffect } from "vue";
|
|
|
|
-import { store } from "./store/store";
|
|
|
|
|
|
+import { defineComponent, watchEffect } from "vue";
|
|
|
|
+import { useStore, setStore, store } from "./store/store";
|
|
|
|
|
|
-let spinning = $ref(false);
|
|
|
|
|
|
+setStore(useStore());
|
|
|
|
|
|
-setTimeout(() => {
|
|
|
|
- watch(
|
|
|
|
- () => store?.hasGlobalMask,
|
|
|
|
- () => (spinning = store?.hasGlobalMask)
|
|
|
|
- );
|
|
|
|
-});
|
|
|
|
|
|
+const spinning = $computed(() => store.hasGlobalMask);
|
|
|
|
|
|
const DummyComp = defineComponent({
|
|
const DummyComp = defineComponent({
|
|
setup() {
|
|
setup() {
|
|
@@ -75,13 +70,16 @@ watchEffect(() => {
|
|
animation-delay: 1.5s;
|
|
animation-delay: 1.5s;
|
|
animation-iteration-count: 1;
|
|
animation-iteration-count: 1;
|
|
animation-timing-function: ease-in;
|
|
animation-timing-function: ease-in;
|
|
- animation-duration: 5s;
|
|
|
|
|
|
+ animation-duration: 60s;
|
|
}
|
|
}
|
|
|
|
|
|
@keyframes fadeInOpacity {
|
|
@keyframes fadeInOpacity {
|
|
0% {
|
|
0% {
|
|
opacity: 0;
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
+ 10% {
|
|
|
|
+ opacity: 0.7;
|
|
|
|
+ }
|
|
100% {
|
|
100% {
|
|
opacity: 0.7;
|
|
opacity: 0.7;
|
|
}
|
|
}
|