docs: update render result in Button (#7802)

This commit is contained in:
OuYancey 2017-10-02 22:02:35 -05:00 committed by 偏右
parent 6d4e531775
commit 88220df0fb
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ loading | set the loading status of button | boolean \| { delay: number } | fals
onClick | set the handler to handle `click` event | function | -
ghost | make background transparent and invert text and border colors, added in 2.7 | boolean | false
`<Button>Hello world!</Button>` will be rendered into `<button>Hello world!</button>`, and all the properties which are not listed above will be transferred to the `<button>` tag.
`<Button>Hello world!</Button>` will be rendered into `<button><span>Hello world!</span></button>`, and all the properties which are not listed above will be transferred to the `<button>` tag.
<style>
[id^=components-button-demo-] .ant-btn {

View File

@ -28,7 +28,7 @@ loading | 设置按钮载入状态 | boolean \| { delay: number } | `false`
onClick | `click` 事件的 handler | function | -
ghost | 幽灵属性,使按钮背景透明,版本 2.7 中增加 | boolean | false
`<Button>Hello world!</Button>` 最终会被渲染为 `<button>Hello world!</button>`,并且除了上表中的属性,其它属性都会直接传到 `<button></button>`
`<Button>Hello world!</Button>` 最终会被渲染为 `<button><span>Hello world!</span></button>`,并且除了上表中的属性,其它属性都会直接传到 `<button></button>`
<style>
[id^="components-button-demo-"] .ant-btn {