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

53 lines
1.5 KiB
Vue
Raw Normal View History

2018-01-29 10:57:20 +00:00
<script>
import Basic from './basic'
import ContextMenu from './context-menu'
import DropdownButton from './dropdown-button'
import Event from './event'
import Item from './item'
import OverlayVisible from './overlay-visible'
import Placement from './placement'
import SubMenu from './sub-menu'
import Trigger from './trigger'
import CN from '../index.zh-CN.md'
import US from '../index.en-US.md'
const md = {
cn: `# 下拉菜单
向下弹出的列表
## 何时使用
当页面上的操作命令过多时用此组件可以收纳操作元素点击或移入触点会出现一个下拉菜单可在列表中进行选择并执行相应的命令
## 代码演示`,
us: `# Dropdown
A dropdown list.
## When To Use
2018-03-20 13:48:01 +00:00
If there are too many operations to display, you can wrap them in a \`Dropdown\`. By clicking/hovering on the trigger, a dropdown menu should appear, which allows you to choose one option and execute relevant actions.
## Examples
`,
2018-01-29 10:57:20 +00:00
}
export default {
2018-03-20 13:48:01 +00:00
category: 'Components',
subtitle: '下拉菜单',
type: 'Navigation',
title: 'Dropdown',
2018-01-29 10:57:20 +00:00
render () {
return (
<div>
<md cn={md.cn} us={md.us}/>
<Basic />
<ContextMenu />
<DropdownButton />
<Event />
<Item/>
<OverlayVisible />
<Placement />
<SubMenu />
<Trigger />
<api>
<CN slot='cn' />
<US/>
</api>
</div>
)
},
}
</script>