From 3bd2eb0b8e36118a13d579863c012275ed85aa67 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Wed, 24 Jan 2018 15:39:21 +0800 Subject: [PATCH] fix md --- components/button/button-group.vue | 15 +++-- components/button/demo/basic.md | 17 +++-- components/button/demo/index.vue | 70 ++++++++++---------- components/button/index.en-US.md | 26 ++------ components/button/index.zh-CN.md | 2 +- examples/components/api.vue | 17 +++++ examples/{ => components}/demo.vue | 8 ++- examples/components/demoBox.vue | 5 +- examples/components/md.vue | 38 +++++++++++ examples/index.js | 4 +- examples/index.less | 4 -- examples/md.vue | 24 ------- examples/routes.js | 6 +- webpack.base.config.js | 101 +++++++++++++++++------------ 14 files changed, 194 insertions(+), 143 deletions(-) create mode 100644 examples/components/api.vue rename examples/{ => components}/demo.vue (72%) create mode 100644 examples/components/md.vue delete mode 100644 examples/md.vue diff --git a/components/button/button-group.vue b/components/button/button-group.vue index 080a5c6b9..aab6839e8 100644 --- a/components/button/button-group.vue +++ b/components/button/button-group.vue @@ -1,10 +1,5 @@ - diff --git a/components/button/demo/basic.md b/components/button/demo/basic.md index 4ecf15f1c..de0910473 100644 --- a/components/button/demo/basic.md +++ b/components/button/demo/basic.md @@ -1,8 +1,13 @@ -::: demo - - #### 按钮类型 - 按钮有四种类型:主按钮、次按钮、虚线按钮、危险按钮。主按钮在同一个操作区域最多出现一次。 - + + +#### 按钮类型 +按钮有四种类型:主按钮、次按钮、虚线按钮、危险按钮。主按钮在同一个操作区域最多出现一次。 + + + +#### Type +There are `primary` button, `default` button, `dashed` button and `danger` button in antd. + ```html ``` -::: + diff --git a/components/button/demo/index.vue b/components/button/demo/index.vue index 2990c6a85..09ab334db 100644 --- a/components/button/demo/index.vue +++ b/components/button/demo/index.vue @@ -1,25 +1,3 @@ - diff --git a/components/button/index.en-US.md b/components/button/index.en-US.md index ca62dfeed..ce51eecaf 100644 --- a/components/button/index.en-US.md +++ b/components/button/index.en-US.md @@ -1,15 +1,3 @@ ---- -category: Components -type: General -title: Button ---- - -To trigger an operation. - -## When To Use - -A button means an operation (or a series of operations). Clicking a button will trigger corresponding business logic. - ## API To get a customized button, just set `type`/`shape`/`size`/`loading`/`disabled`. @@ -25,14 +13,10 @@ To get a customized button, just set `type`/`shape`/`size`/`loading`/`disabled`. | type | can be set to `primary` `ghost` `dashed` `danger`(added in 2.7) or omitted (meaning `default`) | string | `default` | | onClick | set the handler to handle `click` event | function | - | +### events +| Events Name | Description | Arguments | +| --- | --- | --- | +| click | handle `click` event | function(e) | + `` will be rendered into ``, and all the properties which are not listed above will be transferred to the `