Skip to content

Commit 88951ea

Browse files
authored
Merge pull request #15 from DanXi-Dev/celebration
chore: change hole id and add skeleton
2 parents ca074ef + 2bf95ef commit 88951ea

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

src/components/BlessingBar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { computed, ref } from 'vue';
33
import { useFetch } from '@vueuse/core';
44
5-
const floorNumber = 114514
5+
const floorNumber = 440843
66
77
const position = ref(0)
88

src/views/CelebrationView.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ onMounted(() => {
3333
3434
watch(src, () => console.log(src.value))
3535
36+
const imgLoaded = ref(false)
37+
function imgLoad() {
38+
imgLoaded.value = true
39+
}
40+
3641
3742
</script>
3843

@@ -41,8 +46,11 @@ watch(src, () => console.log(src.value))
4146
<BlessingBar class="w-full h-10" />
4247
<div class=" grid grid-cols-2 grid-rows-3 gap-9 xl:grid-cols-3 xl:grid-rows-2 w-full relative"
4348
style="grid-template-rows: auto auto auto;">
49+
<el-skeleton
50+
class="xl:row-span-2 xl:col-span-1 col-span-2 row-span-1 xl:h-full w-full rounded-3xl bg-gray-100 shadow-lg hover:shadow-2xl transition-all duration-300 ease-in-out hover:cursor-pointer relative"
51+
:loading="true" v-if="!imgLoaded"></el-skeleton>
4452
<img class="xl:row-span-2 xl:col-span-1 col-span-2 row-span-1 xl:h-full w-full rounded-3xl bg-gray-100 shadow-lg hover:shadow-2xl transition-all duration-300 ease-in-out hover:cursor-pointer relative"
45-
@click="gamePage" :src="src">
53+
@click="gamePage" :src="src" @load="imgLoad">
4654
</img>
4755
<img class="w-full rounded-3xl shadow-lg hover:shadow-2xl transition-all duration-300 ease-in-out hover:cursor-pointer relative bg-gradient-to-tl from-cyan-200 to-blue-200"
4856
src="/assets/letter.png.webp">

src/views/HoleView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { onMounted, ref } from 'vue';
33
import { useFetch, useDebounceFn } from '@vueuse/core';
44
5-
const floorNumber = 114514
5+
const floorNumber = 440843
66
const messages = ref([])
77
const page = ref(1)
88
const loading = ref(false)

0 commit comments

Comments
 (0)