From 6ee975c053334f5cd572b247fc29feab858882da Mon Sep 17 00:00:00 2001 From: ahua52 <1468492018@qq.com> Date: Wed, 12 Oct 2016 09:56:00 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=8E=A5=E5=8F=A3=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=E8=A7=84=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- react编码规范.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/react编码规范.md b/react编码规范.md index 2cac1bc..7603b38 100644 --- a/react编码规范.md +++ b/react编码规范.md @@ -43,7 +43,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| ## 基本代码结构