diff --git a/src/renderer/components/BaseIcon.vue b/src/renderer/components/BaseIcon.vue index 05219104..ddd1095f 100644 --- a/src/renderer/components/BaseIcon.vue +++ b/src/renderer/components/BaseIcon.vue @@ -3,8 +3,8 @@ :type="type" :path="iconPath" :size="size" - :flip="flip" :rotate="rotate" + :class="iconFlip" /> @@ -39,4 +39,25 @@ const props = defineProps({ const iconPath = computed(() => { return (Icons as {[k:string]: string})[props.iconName]; }); + +const iconFlip = computed(() => { + if (['horizontal', 'vertical', 'both'].includes(props.flip)) + return `flip-${props.flip}`; + else return ''; +}); + +