fix: table actions

pull/153/head
xingyu4j 2025-06-21 16:21:48 +08:00
parent c264945d8f
commit a063d8e81e
1 changed files with 2 additions and 5 deletions

View File

@ -237,7 +237,7 @@ function getTooltipProps(tooltip: any | string) {
}
function handleMenuClick(e: any) {
const action = unref(getDropdownList)[e.key];
const action = getDropdownList.value[e.key];
if (action.onClick && isFunction(action.onClick)) {
action.onClick();
}
@ -294,10 +294,7 @@ function getActionKey(action: ActionItem, index: number) {
</slot>
<template #overlay>
<Menu @click="handleMenuClick">
<Menu.Item
v-for="(action, index) in getDropdownList"
:key="`dropdown-${index}`"
>
<Menu.Item 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>