fix(Dropdown): still pop when disabled is true

pull/28/head
xingyu 2023-08-04 20:07:04 +08:00
parent 1e34183e7a
commit 45da35a1cd
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ const getAttr = (key: string | number) => ({ key })
<AMenu :selected-keys="selectedKeys"> <AMenu :selected-keys="selectedKeys">
<template v-for="item in dropMenuList" :key="`${item.event}`"> <template v-for="item in dropMenuList" :key="`${item.event}`">
<AMenuItem v-bind="getAttr(item.event)" :disabled="item.disabled" @click="handleClickMenu(item)"> <AMenuItem v-bind="getAttr(item.event)" :disabled="item.disabled" @click="handleClickMenu(item)">
<APopconfirm v-if="popconfirm && item.popConfirm" v-bind="getPopConfirmAttrs(item.popConfirm)"> <APopconfirm v-if="popconfirm && item.popConfirm" v-bind="getPopConfirmAttrs(item.popConfirm)" :disabled="item.disabled">
<template v-if="item.popConfirm.icon" #icon> <template v-if="item.popConfirm.icon" #icon>
<Icon :icon="item.popConfirm.icon" /> <Icon :icon="item.popConfirm.icon" />
</template> </template>