项目中想使用svg来做图标进行展示,特此记录。 环境:vue3 + vite + ts
src\components\SvgIcon\index.vue
<template> <svg :class="svgClass" v-bind