From 864118b47caafe7d64b6e841664d760669f74d90 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Tue, 23 Jan 2018 18:55:39 +0800 Subject: [PATCH] fix site --- components/avatar/demo/index.vue | 40 +- components/badge/demo/index.vue | 91 ++- components/button/demo/basic.md | 17 + components/button/demo/basic.vue | 16 +- components/button/demo/button-group.vue | 64 +-- components/button/demo/disabled.vue | 24 +- components/button/demo/ghost.vue | 16 +- components/button/demo/icon.vue | 24 +- components/button/demo/index.vue | 29 +- components/button/demo/loading.vue | 24 +- components/button/demo/multiple.vue | 16 +- components/button/demo/size.vue | 46 +- components/button/index.zh-CN.md | 30 +- components/checkbox/demo/basic.vue | 2 +- components/checkbox/demo/check-all.vue | 6 +- components/checkbox/demo/controller.vue | 14 +- components/checkbox/demo/disabled.vue | 4 +- components/checkbox/demo/group.vue | 8 +- components/checkbox/demo/layout.vue | 14 +- components/index.js | 9 +- components/menu/demo/inline-collapsed.vue | 6 +- components/menu/demo/switch-mode.vue | 4 +- components/menu/demo/theme.vue | 2 +- components/popconfirm/demo/basic.vue | 2 +- .../popconfirm/demo/dynamic-trigger.vue | 2 +- components/popconfirm/demo/placement.vue | 26 +- .../popover/demo/arrow-point-at-center.vue | 6 +- components/popover/demo/basic.vue | 4 +- components/popover/demo/control.vue | 4 +- components/popover/demo/placement.vue | 26 +- components/popover/demo/triggerType.vue | 8 +- components/radio/demo/disabled.vue | 6 +- components/rate/demo/index.vue | 6 +- components/tabs/demo/custom-add-trigger.vue | 4 +- components/tabs/demo/extra.vue | 4 +- .../tooltip/demo/arrow-point-at-center.vue | 6 +- .../tooltip/demo/auto-adjust-overflow.vue | 6 +- components/tooltip/demo/placement.vue | 26 +- components/trigger/demo/simple.vue | 16 +- examples/components/demoBox.vue | 120 ++++ examples/demo.vue | 6 +- examples/index.js | 8 + examples/index.less | 131 ++++- examples/md.vue | 2 +- package-lock.json | 521 ++++++++++++++++++ package.json | 10 +- site/index.html | 12 - site/index.js | 17 - site/index.less | 3 - site/md.vue | 24 - site/routes.js | 11 - webpack.base.config.js | 144 +++++ webpack.config.js | 55 +- webpack.prod.config.js | 111 ++-- 54 files changed, 1296 insertions(+), 537 deletions(-) create mode 100644 components/button/demo/basic.md create mode 100644 examples/components/demoBox.vue delete mode 100644 site/index.html delete mode 100644 site/index.js delete mode 100644 site/index.less delete mode 100644 site/md.vue delete mode 100644 site/routes.js create mode 100644 webpack.base.config.js 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