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
目前由于历史原因,组件属性的书写规范相当混乱,存在 中横线命名、驼峰命名、全小写、中横线 + 驼峰命名混用等等,从 HTML 的规范来看标签对的属性是不区分大小写的,统一都转换成全小写,同时保留中横线,比如 indicatorId 这样的属性,element.getAttribute('indicatorid') 获取,也可以通过 element.dataset.indicatorid 获取,但 element.dataset.indicatorId 是获取不到的。因此我认为文档里面应该将这些存在大写的属性全部改成小写是没什么问题的,同时这样能够让 mip 组件更满足 HTML 规范。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
目前由于历史原因,组件属性的书写规范相当混乱,存在 中横线命名、驼峰命名、全小写、中横线 + 驼峰命名混用等等,从 HTML 的规范来看标签对的属性是不区分大小写的,统一都转换成全小写,同时保留中横线,比如 indicatorId 这样的属性,element.getAttribute('indicatorid') 获取,也可以通过 element.dataset.indicatorid 获取,但 element.dataset.indicatorId 是获取不到的。因此我认为文档里面应该将这些存在大写的属性全部改成小写是没什么问题的,同时这样能够让 mip 组件更满足 HTML 规范。
The text was updated successfully, but these errors were encountered: