feat: ActionSheet 支持 close-on-click-action 控制点击选项后是否关闭菜单功能 (#891)

 Closes: #698
This commit is contained in:
不如摸鱼去 2025-02-12 15:20:03 +08:00 committed by GitHub
parent 25649dbca5
commit a1b035a6fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -123,13 +123,12 @@ function select(rowIndex: number, type: 'action' | 'panels', colIndex?: number)
colIndex
})
}
close()
if (props.closeOnClickAction) {
close()
}
}
function handleClickModal() {
emit('click-modal')
// if (props.closeOnClickModal) {
// close()
// }
}
function handleCancel() {
emit('cancel')