Skip to content
This repository has been archived by the owner on Jun 6, 2019. It is now read-only.

iOS 自定义扩展input component 怎么绑v-model? #225

Open
shawn-tangsc opened this issue Jun 27, 2018 · 1 comment
Open

iOS 自定义扩展input component 怎么绑v-model? #225

shawn-tangsc opened this issue Jun 27, 2018 · 1 comment

Comments

@shawn-tangsc
Copy link

我自己写了一个input标签的自定义component。

`
#import "WXEditComponent.h"

@interface HMMagicInputComponent : WXEditComponent

@EnD
`
继承自WXEditComponent ,
注册完后,只能通过

:value="registerForm.name" @input="onInput"
这两个属性来和我的字端绑定。

我想问一下,weex 的input 标签的v-model 是怎么绑定的,我找了半天源码都没有找到。

非常感谢!!!

@shawn-tangsc
Copy link
Author

已经解决了,在引用后重新封装一个组件,通过call 子组件的input事件来就可以绑v-model了

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant