Skip to content

组件文档属性值修改 #518

@clark-t

Description

@clark-t

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions