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

54 lines
1.5 KiB
Vue
Raw Normal View History

2018-01-29 10:57:20 +00:00
<script>
2019-01-12 03:33:27 +00:00
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';
2018-01-29 10:57:20 +00:00
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
`,
2019-01-12 03:33:27 +00:00
};
2018-01-29 10:57:20 +00:00
export default {
2018-03-20 13:48:01 +00:00
category: 'Components',
subtitle: '下拉菜单',
type: 'Navigation',
2018-11-30 14:58:46 +00:00
zhType: '导航',
2018-03-20 13:48:01 +00:00
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>
2019-01-12 03:33:27 +00:00
);
2018-01-29 10:57:20 +00:00
},
2019-01-12 03:33:27 +00:00
};
2018-01-29 10:57:20 +00:00
</script>