Files
mixtape/zero.Web.UI/app/components/icon.vue
T
2020-11-20 15:17:41 +01:00

25 lines
385 B
Vue

<template>
<i class="ui-icon" :class="iconClass"></i>
</template>
<script>
export default {
name: 'uiIcon',
props: {
icon: {
type: String,
default: null,
required: true
}
},
computed: {
iconClass()
{
return this.icon.indexOf('fth-') === 0 ? this.icon : ('fth-' + this.icon);
}
}
}
</script>