ElemeFE / ElemeFE/element

[Feature Request] How to commit 'confirm' action when using custom content (vnode) of MessageBox

Open
#18,914 6 comments 0 reactions 0 assignees View on GitHub
stale
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Existing Component

### Component Name
MessageBox

### Description
I have something like this

```js
this.$msgbox({
title: 'Message',
message: h('my-input',{
props:{ value: foo }
on:{
input(val){
foo = val
},
commit(){
// QUESTION IS HERE
// when i press enter and the "my-input" component will emit a commit event
// and i want it do to an 'confirm' action in the messagebox.
// but how?
}
}
})
})
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.