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