import { openBlock as t, createElementBlock as i, createElementVNode as n } from "vue"; const r = ["width", "height", "fill"], l = ["xlink:href"], a = { __name: "SSvg", props: { // 雪碧图里的图标 id(不带 icon- 前缀,对应 ) name: { type: String }, // 图标尺寸,宽高取同一个值;不传时由外部 CSS 控制 size: { type: [String, Number] }, // 填充色;不传则用 currentColor 跟随文字颜色 color: { type: String } }, setup(e) { return (o, c) => (t(), i("svg", { "aria-hidden": "true", width: e.size, height: e.size, fill: e.color }, [ n("use", { "xlink:href": `#icon-${e.name}` }, null, 8, l) ], 8, r)); } }; export { a as default };