vue3 引入svg图片
在Vue 3中,你可以通过几种方式使用SVG图片。以下是一些示例:
# 使用`<img>`标签直接引入SVG文件:
```xml
<template>
<img src="@/assets/your-image.svg" alt="Your Image">
</template>
```
# 将SVG作为组件导入并使用:
首先,将SVG文件保存到你的组件目录中,并在Vue单文件组件中导入并注册为组件。
```xml
// YourSvgComponent.vue
<template>
<svg xmlns="http://www.w3.org
more...

