1
0
forked from test/crm

fix: handle icon-right through template

This commit is contained in:
Shariq Ansari 2023-07-26 11:10:40 +05:30
parent ea0899c90e
commit 535ed92026

View File

@ -16,13 +16,15 @@
<div class="left flex space-x-2">
<Dropdown :options="viewsDropdownOptions">
<template #default="{ open }">
<Button
:label="currentView.label"
:icon-right="open ? 'chevron-up' : 'chevron-down'"
>
<Button :label="currentView.label">
<template #prefix
><FeatherIcon :name="currentView.icon" class="h-4"
/></template>
<template #suffix
><FeatherIcon
:name="open ? 'chevron-up' : 'chevron-down'"
class="h-4"
/></template>
</Button>
</template>
</Dropdown>