-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
What problem does this feature solve?
Currently I want to use popconfirm button instead of standard close icon for filelist, so user can confirm before deleting file, and currently I can replace the existing close button and its functionality it doesn't allow close button customization.
What does the proposed API look like?
<template #closeButton="{remove}">
<a-popconfirm title="Are you sure delete this task?" @confirm="remove" okText="Yes" cancelText="No">
<a href="#">Delete</a>
</a-popconfirm>
</template>So this template tag suggests to have closeButton or similarly named scope slot which provides remove argument as scoped slots and this way user can customize the ui of close button and when everything is done on confirm of popconfirm I can call the actual remove function exposed via scoped slot.