Open shawn-tangsc opened 6 years ago
我自己写了一个input标签的自定义component。
`
@interface HMMagicInputComponent : WXEditComponent
@end ` 继承自WXEditComponent , 注册完后,只能通过
:value="registerForm.name" @input="onInput" 这两个属性来和我的字端绑定。
:value="registerForm.name" @input="onInput"
我想问一下,weex 的input 标签的v-model 是怎么绑定的,我找了半天源码都没有找到。
非常感谢!!!
已经解决了,在引用后重新封装一个组件,通过call 子组件的input事件来就可以绑v-model了
我自己写了一个input标签的自定义component。
`
import "WXEditComponent.h"
@interface HMMagicInputComponent : WXEditComponent
@end ` 继承自WXEditComponent , 注册完后,只能通过
:value="registerForm.name" @input="onInput"
这两个属性来和我的字端绑定。我想问一下,weex 的input 标签的v-model 是怎么绑定的,我找了半天源码都没有找到。
非常感谢!!!