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
<xy-input name="totalNumber" label="" required errordir="right" errortips="请输入" type="number" min="10" step="1"></xy-input> input.setAttribute('min', 10)
查看 xy-input 的 dom min 属性已经修改,但是输入小于10的数字不会验证失败
由于 xy-input 的 min 属性可能由父组件初始化,会在父组件挂载的时候更新自己的 min 属性 可以动态修改 xy-input 的 min 属性
暂时通过重新插入新的 完整 xy-input 标签解决
版本 1.3.2
The text was updated successfully, but these errors were encountered:
部分不常修改属性暂时没有设计成动态修改。
在attributeChangedCallback中添加监听即可。
attributeChangedCallback
Sorry, something went wrong.
No branches or pull requests
错误描述
期望
替代方案
The text was updated successfully, but these errors were encountered: