ant-design-vue/components/button/demo/index.vue

60 lines
1.4 KiB
Vue
Raw Normal View History

2017-11-03 18:46:18 +08:00
<script>
2018-01-24 22:53:45 +08:00
import Basic from './basic'
2017-11-03 18:46:18 +08:00
import ButtonGroup from './button-group'
import Disabled from './disabled'
import Ghost from './ghost'
import Icon from './icon'
import Loading from './loading'
import Multiple from './multiple'
import Size from './size'
2018-01-24 15:39:21 +08:00
import CN from '../index.zh-CN.md'
import US from '../index.en-US.md'
2017-11-03 18:46:18 +08:00
export default {
2018-01-24 15:39:21 +08:00
render () {
const md = {
cn: `# Button 按钮
按钮用于开始一个即时操作
## 何时使用
标记了一个或封装一组操作命令响应用户点击行为触发相应的业务逻辑
## 代码演示`,
us: `# 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.
`,
}
return (
<div>
<md md={md}/>
<Basic />
<ButtonGroup />
<Disabled />
<Ghost />
2018-01-24 22:53:45 +08:00
<Icon/>
2018-01-24 15:39:21 +08:00
<Loading />
<h1>TODO Multiple</h1>
<Multiple />
<Size />
<api>
<template slot='cn'>
<CN/>
</template>
<template slot='us'>
<US/>
</template>
</api>
</div>
)
2017-11-03 18:46:18 +08:00
},
}
</script>
2018-01-23 18:55:39 +08:00
<style>
[id^="components-button-demo-"] .ant-btn {
margin-right: 8px;
margin-bottom: 12px;
}
[id^="components-button-demo-"] .ant-btn-group > .ant-btn {
margin-right: 0;
}
</style>