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

56 lines
1.1 KiB
Vue
Raw Normal View History

2017-11-03 10:46:18 +00:00
<template>
<div>
2018-01-23 10:55:39 +00:00
<md>
# Button 按钮
按钮用于开始一个即时操作
## 何时使用
标记了一个或封装一组操作命令响应用户点击行为触发相应的业务逻辑
## 代码演示
</md>
2017-11-03 10:46:18 +00:00
<Basic />
<ButtonGroup />
<Disabled />
<Ghost />
<Icon />
<Loading />
<h1>TODO Multiple</h1>
<Multiple />
<Size />
2018-01-23 10:55:39 +00:00
<Doc class="markdown"/>
2017-11-03 10:46:18 +00:00
</div>
</template>
<script>
2018-01-23 10:55:39 +00:00
import Basic from './basic.md'
2017-11-03 10:46:18 +00: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-23 10:55:39 +00:00
import Doc from '../index.zh-CN.md'
2017-11-03 10:46:18 +00:00
export default {
components: {
Basic,
ButtonGroup,
Disabled,
Ghost,
Icon,
Loading,
Multiple,
Size,
2018-01-23 10:55:39 +00:00
Doc,
2017-11-03 10:46:18 +00:00
},
}
</script>
2018-01-23 10:55:39 +00: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>