You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/components/popover/demo/index.vue

58 lines
1.4 KiB

7 years ago
<script>
import Basic from './basic'
import ArrowCenter from './arrow-point-at-center'
import Control from './control'
import Placement from './placement'
import TriggerType from './triggerType'
7 years ago
import CN from '../index.zh-CN.md'
import US from '../index.en-US.md'
const md = {
cn: `# Popover
点击/鼠标移入元素弹出气泡式的卡片浮层
## 何时使用
当目标元素有进一步的描述和相关操作时可以收纳到卡片中根据用户的操作行为进行展现
\`Tooltip\` 的区别是,用户可以对浮层上的元素进行操作,因此它可以承载更复杂的内容,比如链接或按钮等。
## 代码演示`,
us: `# Popover
The floating card popped by clicking or hovering.
## When To Use
A simple popup menu to provide extra information or operations.
Comparing with \`Tooltip\`, besides information \`Popover\` card can also provide action elements like links and buttons.
## Examples
`,
}
7 years ago
export default {
7 years ago
category: 'Components',
subtitle: '气泡卡片',
type: 'Data Display',
title: 'Popover',
7 years ago
render () {
return (
<div>
<md cn={md.cn} us={md.us}/>
<Basic />
<ArrowCenter />
<Control />
<Placement />
<TriggerType />
<api>
<template slot='cn'>
<CN/>
</template>
<US/>
</api>
</div>
)
7 years ago
},
}
</script>