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/popconfirm/demo/index.vue

61 lines
1.3 KiB

7 years ago
<script>
import Basic from './basic.md'
import Local from './local.md'
import Placement from './placement.md'
import DynamicTrigger from './dynamic-trigger.md'
import CN from '../index.zh-CN.md'
import US from '../index.en-US.md'
const md = {
cn: `# Popconfirm
点击元素弹出气泡式的确认框
## 何时使用
目标元素的操作需要用户进一步的确认时在目标元素附近弹出浮层提示询问用户
7 years ago
'confirm' 弹出的全屏居中模态对话框相比交互形式更轻量
## 代码演示`,
us: `# Popconfirm
A simple and compact confirmation dialog of an action.
# When To Use
A simple and compact dialog used for asking for user confirmation.
The difference with the 'confirm' modal dialog is that it's more lightweight than the static popped full-screen confirm modal.
## Examples
`,
}
7 years ago
export default {
7 years ago
category: 'Components',
subtitle: '气泡确认框',
type: 'Feedback',
title: 'Popconfirm',
render () {
return (
<div>
<md cn={md.cn} us={md.us}/>
<br/>
<Basic />
<br/>
<Local />
<br/>
<Placement />
<br/>
<DynamicTrigger />
<br/>
<api>
<template slot='cn'>
<CN/>
</template>
<US/>
</api>
</div>
)
7 years ago
},
}
</script>