style: improve layout and styling of action-buttons component
parent
8197f4dfc3
commit
3938f1bdda
|
@ -160,22 +160,24 @@ const handleMenuClick = (e: any) => {
|
|||
</Button>
|
||||
</slot>
|
||||
<template #overlay>
|
||||
<Menu @click="handleMenuClick">
|
||||
<Menu class="w-full" @click="handleMenuClick">
|
||||
<MenuItem v-for="(action, index) in getDropdownList" :key="index">
|
||||
<template v-if="action.popConfirm">
|
||||
<Popconfirm v-bind="getPopConfirmProps(action.popConfirm)">
|
||||
<template v-if="action.popConfirm.icon" #icon>
|
||||
<IconifyIcon :icon="action.popConfirm.icon" />
|
||||
</template>
|
||||
<div>
|
||||
<div class="flex items-center">
|
||||
<IconifyIcon v-if="action.icon" :icon="action.icon" />
|
||||
<span class="ml-1">{{ action.text }}</span>
|
||||
</div>
|
||||
</Popconfirm>
|
||||
</template>
|
||||
<template v-else>
|
||||
<div class="flex items-center">
|
||||
<IconifyIcon v-if="action.icon" :icon="action.icon" />
|
||||
<span class="ml-1">{{ action.label }}</span>
|
||||
<span class="ml-1">{{ action.text }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</MenuItem>
|
||||
</Menu>
|
||||
|
|
Loading…
Reference in New Issue