The problem of two-way binding of Iview data. The value changes, which can only be realized when the Modal disappears.

reproduce address:
https://run.iviewui.com/Pxz4xCzq

the first question: using the on-change method, I print the value of the current input box of input in the contactChange function, but find that there has been no change, I can only get the value through event.target.value;
the second question: I added a reduction in the input box, the page"s checkbox box can have corresponding changes, but the value change page is not reflected, only if the modal box disappears to be reflected.

are there any great gods or those who have encountered such problems? thank you very much for this. Thank you very much for

.
Dec.03,2021

I hope you can draw a picture to illustrate what the second problem is.
first question. You can check the input on-change event corresponding to the official website of ivew. The callback parameter is event, so you should use event to get the value

.

the second question is the introduction of the official website

clipboard.png

https://run.iviewui.com/Pxz4xCzq

clipboard.png

clipboard.png
clipboard.png

this is the difference between the two writing methods

Menu