diff --git a/components/avatar/demo/index.vue b/components/avatar/demo/index.vue index a531471b9..6a860c9a5 100644 --- a/components/avatar/demo/index.vue +++ b/components/avatar/demo/index.vue @@ -1,42 +1,39 @@ diff --git a/components/badge/demo/index.vue b/components/badge/demo/index.vue index 29cffeb04..6aeb8d7ca 100644 --- a/components/badge/demo/index.vue +++ b/components/badge/demo/index.vue @@ -2,91 +2,89 @@
基本:
- + - - + + - +

独立使用:
- - - + + +

封顶数字:
- + - - + + - - + + - - + + - +

讨嫌的小红点:
- - - - + + + + Link something - +

状态点:
- - - - - - 改processing + + + + + + 改processing
- +
- +
- +
- +
- +

动态:
- + - - - - - - - + + + + + + +
- +
- - toggle + + toggle

diff --git a/components/button/demo/loading.vue b/components/button/demo/loading.vue index 5e0ec2136..81ce18b3f 100644 --- a/components/button/demo/loading.vue +++ b/components/button/demo/loading.vue @@ -1,25 +1,24 @@ diff --git a/components/button/demo/multiple.vue b/components/button/demo/multiple.vue index f27a4fb5e..ab88c92aa 100644 --- a/components/button/demo/multiple.vue +++ b/components/button/demo/multiple.vue @@ -1,17 +1,9 @@ // TODO: 依赖组件开发中 - diff --git a/components/button/demo/size.vue b/components/button/demo/size.vue index 50fafe069..e1e6b65e3 100644 --- a/components/button/demo/size.vue +++ b/components/button/demo/size.vue @@ -1,31 +1,30 @@ diff --git a/components/button/index.zh-CN.md b/components/button/index.zh-CN.md index 5c8562658..ddaf6b72e 100644 --- a/components/button/index.zh-CN.md +++ b/components/button/index.zh-CN.md @@ -1,16 +1,3 @@ ---- -category: Components -type: General -title: Button -subtitle: 按钮 ---- - -按钮用于开始一个即时操作。 - -## 何时使用 - -标记了一个(或封装一组)操作命令,响应用户点击行为,触发相应的业务逻辑。 - ## API 通过设置 Button 的属性来产生不同的按钮样式,推荐顺序为:`type` -> `shape` -> `size` -> `loading` -> `disabled` @@ -25,17 +12,12 @@ subtitle: 按钮 | loading | 设置按钮载入状态 | boolean \| { delay: number } | `false` | | shape | 设置按钮形状,可选值为 `circle` 或者不设 | string | - | | size | 设置按钮大小,可选值为 `small` `large` 或者不设 | string | `default` | -| type | 设置按钮类型,可选值为 `primary` `dashed` `danger`(版本 2.7 中增加) 或者不设 | string | - | -| onClick | `click` 事件的 handler | function | - | +| type | 设置按钮类型,可选值为 `primary` `dashed` `danger` | string | - | + +### 事件 +| 事件名称 | 说明 | 回调参数 | +| --- | --- | --- | +| click | `click` 事件的 handler | function(e) | `` 最终会被渲染为 ``,并且除了上表中的属性,其它属性都会直接传到 ``。 - diff --git a/components/checkbox/demo/basic.vue b/components/checkbox/demo/basic.vue index 825ff1fd4..f360e66ef 100644 --- a/components/checkbox/demo/basic.vue +++ b/components/checkbox/demo/basic.vue @@ -1,6 +1,6 @@ diff --git a/components/checkbox/demo/disabled.vue b/components/checkbox/demo/disabled.vue index 3bcf0837c..fac1e9399 100644 --- a/components/checkbox/demo/disabled.vue +++ b/components/checkbox/demo/disabled.vue @@ -1,8 +1,8 @@ diff --git a/components/popconfirm/demo/dynamic-trigger.vue b/components/popconfirm/demo/dynamic-trigger.vue index d2a6a4f40..162a08e5d 100644 --- a/components/popconfirm/demo/dynamic-trigger.vue +++ b/components/popconfirm/demo/dynamic-trigger.vue @@ -17,7 +17,7 @@

- Whether directly execute: + Whether directly execute: diff --git a/components/popconfirm/demo/placement.vue b/components/popconfirm/demo/placement.vue index e635afc17..c1e1a97a5 100644 --- a/components/popconfirm/demo/placement.vue +++ b/components/popconfirm/demo/placement.vue @@ -10,21 +10,21 @@

Are you sure delete this task?

Are you sure delete this task?

- TL + TL - Top + Top - TR + TR
@@ -33,21 +33,21 @@

Are you sure delete this task?

Are you sure delete this task?

- LT + LT - Left + Left - LB + LB
@@ -56,21 +56,21 @@

Are you sure delete this task?

Are you sure delete this task?

- RT + RT - Right + Right - RB + RB
@@ -79,21 +79,21 @@

Are you sure delete this task?

Are you sure delete this task?

- BL + BL - Bottom + Bottom - BR + BR
@@ -114,7 +114,7 @@ export default { }, components: { Popconfirm, - AntButton: Button, + }, } diff --git a/components/popover/demo/arrow-point-at-center.vue b/components/popover/demo/arrow-point-at-center.vue index a85de89bc..a05855424 100644 --- a/components/popover/demo/arrow-point-at-center.vue +++ b/components/popover/demo/arrow-point-at-center.vue @@ -10,7 +10,7 @@

Content

Title - Align edge / 边缘对齐 + Align edge / 边缘对齐 Title - Arrow points to center / 箭头指向中心 + Arrow points to center / 箭头指向中心 @@ -28,7 +28,7 @@ import { Popover, Button } from 'antd' export default { components: { Popover, - AntButton: Button, + }, } diff --git a/components/popover/demo/basic.vue b/components/popover/demo/basic.vue index d15e4dc7e..991b33d11 100644 --- a/components/popover/demo/basic.vue +++ b/components/popover/demo/basic.vue @@ -9,7 +9,7 @@

Content

Content

- Hover me + Hover me @@ -19,7 +19,7 @@ import { Popover, Button } from 'antd' export default { components: { Popover, - AntButton: Button, + }, } diff --git a/components/popover/demo/control.vue b/components/popover/demo/control.vue index c1af76516..52ab814d5 100644 --- a/components/popover/demo/control.vue +++ b/components/popover/demo/control.vue @@ -10,7 +10,7 @@ v-model="visible" >
Close - Click me + Click me @@ -31,7 +31,7 @@ export default { }, components: { Popover, - AntButton: Button, + }, } diff --git a/components/popover/demo/placement.vue b/components/popover/demo/placement.vue index e2d4077f6..e1a8ef95a 100644 --- a/components/popover/demo/placement.vue +++ b/components/popover/demo/placement.vue @@ -13,7 +13,7 @@ - TL + TL