27 lines
517 B
Vue
27 lines
517 B
Vue
<template>
|
|
<component
|
|
:is="icon.element ? icon.element : 'i'"
|
|
class="vsm--icon"
|
|
:class="
|
|
typeof icon === 'string' || icon instanceof String
|
|
? icon
|
|
: icon.class
|
|
"
|
|
v-bind="icon.attributes"
|
|
>
|
|
{{ icon.text }}
|
|
</component>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: "CustomSidebarMenuIcon",
|
|
props: {
|
|
icon: {
|
|
type: [String, Object],
|
|
default: "",
|
|
},
|
|
},
|
|
};
|
|
</script>
|