Skip to content
New issue

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

组件文档属性值修改 #518

Open
clark-t opened this issue Feb 18, 2019 · 0 comments
Open

组件文档属性值修改 #518

clark-t opened this issue Feb 18, 2019 · 0 comments

Comments

@clark-t
Copy link
Contributor

clark-t commented Feb 18, 2019

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

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

No branches or pull requests

1 participant