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}` } }, '') ] ); } };