14
14
cx =" 0"
15
15
cy =" 0"
16
16
r =" 0"
17
- : clip-path =" ` url(${urlBasePath} #clip-boundary)` "
17
+ clip-path =" url(#clip-boundary)"
18
18
/>
19
19
</clipPath >
20
20
<image
21
21
key =" 1"
22
- :href =" `${urlBasePath}/${ imageSrc}` "
22
+ :href =" imageSrc"
23
23
x =" -60"
24
24
y =" -60"
25
25
width =" 120"
26
26
height =" 120"
27
- :clip-path =" `url(${urlBasePath} #${CLIP_ID})`"
27
+ :clip-path =" `url(#${CLIP_ID})`"
28
28
/>
29
29
</g >
30
30
</template >
@@ -33,12 +33,12 @@ import { urlBasePath } from '~/utils/constants'
33
33
import type { CustomPropType } from ' ~/types/shims-vue'
34
34
import { useAnimationParts } from ' ~/composables/useAnimationParts'
35
35
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'
42
42
43
43
interface IPropParts {
44
44
type: string
@@ -69,12 +69,12 @@ export default defineComponent({
69
69
70
70
const imageSrc = computed (() => {
71
71
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 ,
78
78
}
79
79
return images [props .parts .src ]
80
80
})
0 commit comments