组件文档编写规范
#119
Replies: 1 comment
-
开发规范以贡献指南中的开发规范为准: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
API表格
API
表格格式应该统一。推荐左对齐。d-xxx [参数 | 事件 | 方法 | 插槽]
,且组件名字后面加一个空格;类型定义放在最后,格式为xx 类型定义
,类型名字后面同样需要加一个空格。string
,应该写具体类型名字(如TriggerType
),并且参考第3条的格式写明类型定义。default
。String
orstring
,自定义类型名字采用大驼峰命名,(如TriggerType
)。演示demo
boolean
类型的参数,在demo中展示,设置为true
的时候,不需要显式的设置为true
,直接写参数名字即可。:::demo
后面,不应该放在h4
或其他标签中,也不应该放在代码块外面。Beta Was this translation helpful? Give feedback.
All reactions