Skip to content

Commit

Permalink
feat(Icon.vue): add slot to provide fallback value (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
zaosoula committed Jun 30, 2023
1 parent 022d563 commit bc747e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/Icon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ watch(() => iconName.value, loadIconComponent)
<span v-if="isFetching" :class="className" :width="sSize" :height="sSize" />
<Iconify v-else-if="icon" :icon="icon" :class="className" :width="sSize" :height="sSize" />
<Component :is="component" v-else-if="component" :class="className" :width="sSize" :height="sSize" />
<span v-else :class="className" :style="{ fontSize: sSize, lineHeight: sSize, width: sSize, height: sSize }">{{ name }}</span>
<span v-else :class="className" :style="{ fontSize: sSize, lineHeight: sSize, width: sSize, height: sSize }"><slot>{{ name }}</slot></span>
</template>

<style scoped>
Expand Down

0 comments on commit bc747e4

Please sign in to comment.