1414 cx =" 0"
1515 cy =" 0"
1616 r =" 0"
17- : clip-path =" ` url(${urlBasePath} #clip-boundary)` "
17+ clip-path =" url(#clip-boundary)"
1818 />
1919 </clipPath >
2020 <image
2121 key =" 1"
22- :href =" `${urlBasePath}/${ imageSrc}` "
22+ :href =" imageSrc"
2323 x =" -60"
2424 y =" -60"
2525 width =" 120"
2626 height =" 120"
27- :clip-path =" `url(${urlBasePath} #${CLIP_ID})`"
27+ :clip-path =" `url(#${CLIP_ID})`"
2828 />
2929 </g >
3030</template >
@@ -33,12 +33,12 @@ import { urlBasePath } from '~/utils/constants'
3333import type { CustomPropType } from ' ~/types/shims-vue'
3434import { useAnimationParts } from ' ~/composables/useAnimationParts'
3535
36- import Image01 from ' !url-loader! ~/assets/img/animation/image01.png'
37- import Image02 from ' !url-loader! ~/assets/img/animation/image02.png'
38- import Image03 from ' !url-loader! ~/assets/img/animation/image03.png'
39- import Image04 from ' !url-loader! ~/assets/img/animation/image04.png'
40- import Image05 from ' !url-loader! ~/assets/img/animation/image05.png'
41- import Image06 from ' !url-loader! ~/assets/img/animation/image06.png'
36+ import Image01 from ' ~/assets/img/animation/image01.png'
37+ import Image02 from ' ~/assets/img/animation/image02.png'
38+ import Image03 from ' ~/assets/img/animation/image03.png'
39+ import Image04 from ' ~/assets/img/animation/image04.png'
40+ import Image05 from ' ~/assets/img/animation/image05.png'
41+ import Image06 from ' ~/assets/img/animation/image06.png'
4242
4343interface IPropParts {
4444 type: string
@@ -69,12 +69,12 @@ export default defineComponent({
6969
7070 const imageSrc = computed (() => {
7171 const images = {
72- ' image01.png' : Image01 ,
73- ' image02.png' : Image02 ,
74- ' image03.png' : Image03 ,
75- ' image04.png' : Image04 ,
76- ' image05.png' : Image05 ,
77- ' image06.png' : Image06 ,
72+ ' image01.png' : Image01 . default || Image01 ,
73+ ' image02.png' : Image02 . default || Image02 ,
74+ ' image03.png' : Image03 . default || Image03 ,
75+ ' image04.png' : Image04 . default || Image04 ,
76+ ' image05.png' : Image05 . default || Image05 ,
77+ ' image06.png' : Image06 . default || Image06 ,
7878 }
7979 return images [props .parts .src ]
8080 })
0 commit comments