Iview's Modal disappears when you click OK? Is this design a little misunderstood?
the Modal of iview disappears when you click OK? Isn"t this design a bit anti-human?
https://www.iviewui.com/compo.
. Is Modal just used to prompt messages? Fill in a lot of stuff, there is a verification operation, and then a little confirmation, then quit. All the filled-in items are gone, or is it anti-human to click to open Modal, again?
Why step on it? Can"t accept criticism and comments?
modal has a bottom footer slot. You can rewrite footer-slot with two custom confirm and cancel buttons to block the automatic shutdown of the original default action. Then control when to close in your custom determination.
landlord, have you solved your problem? I'm in the same situation. My code is as follows:
this.$Modal.confirm ({
)
scrollable:true,
width:700,
okText:'',
render:(h)=>{
return h(page,{
props:{},
});
},
onOk:()=>{
},
}
});
does the landlord mean to keep the dialog box after clicking OK? Is there any hint below
you can do it. Just try it. Set the loading property of the dialog box:
:loading="loading"
...
loading=true
then, click the OK button to close the pop-up window manually. There are official examples of asynchronously closing
.
Click OK to exit because the confirm button of the modal component is bound to the close event of modal.
modal-events
on-ok
: click OK callback
it is possible for you to add the appropriate action to the callback or keep the modal open.
Please take a look at the documents in the future. There are many simple problems that you can solve at a glance. Why do you need to be a hand-extending party or a spray framework is not good enough? everyone's time is precious, isn't it XD