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

61 lines
1.3 KiB
Vue
Raw Normal View History

2018-01-15 09:33:34 +00:00
<script>
2018-03-22 08:19:02 +00:00
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
点击元素弹出气泡式的确认框
## 何时使用
目标元素的操作需要用户进一步的确认时在目标元素附近弹出浮层提示询问用户
2018-03-22 10:19:12 +00:00
'confirm' 弹出的全屏居中模态对话框相比交互形式更轻量
2018-03-22 08:19:02 +00:00
## 代码演示`,
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
`,
}
2018-01-15 09:33:34 +00:00
export default {
2018-03-20 13:48:01 +00:00
category: 'Components',
subtitle: '气泡确认框',
type: 'Feedback',
title: 'Popconfirm',
2018-03-22 08:19:02 +00:00
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>
)
2018-01-15 09:33:34 +00:00
},
}
</script>