Ai
1 Star 0 Fork 0

夜琉璃君/vue-mdi-svg

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
v3.js 485 Bytes
一键复制 编辑 原始数据 按行查看 历史
夜琉璃君 提交于 2021-11-23 01:44 +08:00 . initial commit
import { h } from 'vue'
import { getAttrs, getClasses, getInstaller } from './src/shared'
const renderV3 = () =>
function render() {
const { spanAttrs, svgAttrs, pathAttrs } = getAttrs(this, this.$attrs, this.$slots)
return h(
'span',
{
...spanAttrs,
class: getClasses(this, this),
},
[h('svg', svgAttrs, [...[this.title ? h('title', this.title) : undefined], h('path', pathAttrs)])]
)
}
export default getInstaller(renderV3)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yeliulee/vue-mdi-svg.git
git@gitee.com:yeliulee/vue-mdi-svg.git
yeliulee
vue-mdi-svg
vue-mdi-svg
main

搜索帮助