Layui use with the layer and vue, bomb box form form control solution to perform two-way data binding with v-modal invalid

  1. To bind @change input method, use e.target.value get the value in the new Vue () method and assigned to a global variable in the state. Using global variables can get in the layer.
    <input type="text" @change="changeText" />
    
    method:{
    	changeText:function(e){
    		this.text=e.target.value
    }
    }
    
  2. Success vue write code in a function.
Published 258 original articles · won praise 21 · views 50000 +

Guess you like

Origin blog.csdn.net/wsln_123456/article/details/104900463