We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
由于 #100 的实现,得以获得 input lazy 和 throttle 的支持
lazy
<input r-model='name' lazy >
throttle={throttle}
<input r-model='name' throttle=100 >
<input r-model='name' throttle >
<input r-model='name' throttle={500} >
<input r-model='name' throttle={throttle} >
The text was updated successfully, but these errors were encountered:
No branches or pull requests
由于 #100 的实现,得以获得 input lazy 和 throttle 的支持
lazy
: 延迟到change修改模型例如
<input r-model='name' lazy >
原来绑定的input事件 将会 退化到change事件(即 blur之后才会触发).throttle={throttle}
: 限制[throttle]毫秒内只能触发一次模型修改<input r-model='name' throttle=100 >
(引号与否html都是支持的): 100 ms最多一次,即字符串会被转换为数字<input r-model='name' throttle >
(引号与否html都是支持的): 默认400ms<input r-model='name' throttle={500} >
: 传入数字500,当然代表的是500ms<input r-model='name' throttle={throttle} >
: throttle代表的毫秒数字,但是要注意,这个版本并没有做参数的watch监控,throttle的后续变化,将不被接受The text was updated successfully, but these errors were encountered: