perf: table actions
parent
a063d8e81e
commit
ff76f24db6
|
@ -293,8 +293,13 @@ function getActionKey(action: ActionItem, index: number) {
|
||||||
</Button>
|
</Button>
|
||||||
</slot>
|
</slot>
|
||||||
<template #overlay>
|
<template #overlay>
|
||||||
<Menu @click="handleMenuClick">
|
<Menu>
|
||||||
<Menu.Item v-for="(action, index) in getDropdownList" :key="index">
|
<Menu.Item
|
||||||
|
v-for="(action, index) in getDropdownList"
|
||||||
|
:key="index"
|
||||||
|
:disabled="action.disabled"
|
||||||
|
@click="!action.popConfirm && handleMenuClick({ key: index })"
|
||||||
|
>
|
||||||
<template v-if="action.popConfirm">
|
<template v-if="action.popConfirm">
|
||||||
<Popconfirm v-bind="getPopConfirmProps(action.popConfirm)">
|
<Popconfirm v-bind="getPopConfirmProps(action.popConfirm)">
|
||||||
<template v-if="action.popConfirm.icon" #icon>
|
<template v-if="action.popConfirm.icon" #icon>
|
||||||
|
|
Loading…
Reference in New Issue