Merge branch 'master' of https://github.com/tinper-bee/react-components-docs
This commit is contained in:
commit
347659e9c8
12
react编码规范.md
12
react编码规范.md
|
@ -44,7 +44,19 @@ const class2 = [`${clsPrefix}-submit`, `${clsPrefix}-item`];
|
|||
const classString = classNames('hide', class1, class2);
|
||||
|
||||
```
|
||||
## 组件接口规范
|
||||
|
||||
|参数|说明|类型|默认值|
|
||||
|---|----|---|------|
|
||||
|size|尺寸|string|medium|
|
||||
|color|颜色|string|''|
|
||||
|shape|形状|string|''|
|
||||
|disabled|是否禁用(`disabled` 或 `true` `false`)|bool|false|
|
||||
|className|增加额外的类名|string|''|
|
||||
|htmlType|html dom 的 type 属性|string|''|
|
||||
|style|内联样式|object|''|
|
||||
|loadingText|loading时显示内容,默认值loading|string|loading|
|
||||
|loadingTime|loading的时间|number|300ms|
|
||||
|
||||
## 基本代码结构
|
||||
|
||||
|
|
|
@ -3,12 +3,15 @@
|
|||
### 现有组件
|
||||
|
||||
- button
|
||||
- badge
|
||||
- loadingstate
|
||||
- tooltip
|
||||
|
||||
### 正在开发组件
|
||||
|组件|开发者|
|
||||
|:--|--:|
|
||||
|dropdown|boyuhzou|
|
||||
|badge|ahua|
|
||||
|comtrigger|ahua|
|
||||
|switch|wanghongxiang|
|
||||
|
||||
|
||||
|
@ -40,7 +43,6 @@
|
|||
- listgroup
|
||||
- gallery
|
||||
- card
|
||||
- loadingstate
|
||||
- carousel
|
||||
|
||||
#### 复杂组件
|
||||
|
|
Loading…
Reference in New Issue