File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,6 +33,11 @@ onMounted(() => {
3333
3434watch (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" >
Original file line number Diff line number Diff line change 22import { onMounted , ref } from ' vue' ;
33import { useFetch , useDebounceFn } from ' @vueuse/core' ;
44
5- const floorNumber = 114514
5+ const floorNumber = 440843
66const messages = ref ([])
77const page = ref (1 )
88const loading = ref (false )
You can’t perform that action at this time.
0 commit comments