fix: handle icon-right through template
This commit is contained in:
parent
ea0899c90e
commit
535ed92026
@ -16,13 +16,15 @@
|
|||||||
<div class="left flex space-x-2">
|
<div class="left flex space-x-2">
|
||||||
<Dropdown :options="viewsDropdownOptions">
|
<Dropdown :options="viewsDropdownOptions">
|
||||||
<template #default="{ open }">
|
<template #default="{ open }">
|
||||||
<Button
|
<Button :label="currentView.label">
|
||||||
:label="currentView.label"
|
|
||||||
:icon-right="open ? 'chevron-up' : 'chevron-down'"
|
|
||||||
>
|
|
||||||
<template #prefix
|
<template #prefix
|
||||||
><FeatherIcon :name="currentView.icon" class="h-4"
|
><FeatherIcon :name="currentView.icon" class="h-4"
|
||||||
/></template>
|
/></template>
|
||||||
|
<template #suffix
|
||||||
|
><FeatherIcon
|
||||||
|
:name="open ? 'chevron-up' : 'chevron-down'"
|
||||||
|
class="h-4"
|
||||||
|
/></template>
|
||||||
</Button>
|
</Button>
|
||||||
</template>
|
</template>
|
||||||
</Dropdown>
|
</Dropdown>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user