mdi-vue
Version:
Material Design Icons for Vue.js
31 lines (27 loc) • 581 B
JavaScript
import { getAttrs, getClass, getInstall } from './src/shared.js'
const renderV2 = mdi => function render(h, { data, props, attrs }) {
const {
spanAttrs,
svgAttrs,
pathAttrs
} = getAttrs(mdi, props, attrs)
return h('span', {
attrs: spanAttrs,
class: {
...getClass(props, data),
...data.class
}
}, [
h('svg', {
attrs: svgAttrs
}, [
...[props.title ? h('title', [props.title]) : undefined],
h('path', {
attrs: pathAttrs
})
])
])
}
export default getInstall(renderV2, {
functional: true
})