2021-04-11 00:57:47 +02:00
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
src: { required: true, type: String }
|
|
|
|
},
|
|
|
|
render: function(createElement) {
|
|
|
|
var attr = this.$attrs.class ? this.$attrs.class : '';
|
|
|
|
return createElement('svg', {
|
|
|
|
class: attr + ' fill-current'
|
|
|
|
}, [
|
|
|
|
createElement('use', {
|
|
|
|
'attrs': {
|
|
|
|
'xlink:href': `/img/sprite.svg#${this.$props.src}`
|
|
|
|
}
|
|
|
|
}, '')
|
2022-02-12 01:31:01 +01:00
|
|
|
] );
|
2021-04-11 00:57:47 +02:00
|
|
|
}
|
|
|
|
};
|