tiny-vue icon indicating copy to clipboard operation
tiny-vue copied to clipboard

✨ [Feature]: Modal组件当type="message"的时候,希望在消息消失的时候可以触发close事件

Open AcWrong02 opened this issue 1 year ago • 1 comments

What problem does this feature solve

当前modal组件有对应的close事件,但是在type="message"的时候消息消失后并不会触发,希望能在消息消失的时候也可以触发其对应的close事件

What does the proposed API look like

Modal.message({ message: '基本提示图标', status: 'info' , close:()=>{console.log('message')} })} 当message消失的时候执行close函数,其参数可以为被关闭的message实例

AcWrong02 avatar Feb 06 '24 15:02 AcWrong02

Bot detected the issue body's language is not English, translate it automatically.


Title: ✨ [Feature]: When the Modal component has type="message", it is hoped that the close event can be triggered when the message disappears.

Issues-translate-bot avatar Feb 06 '24 15:02 Issues-translate-bot