2018-01-15 09:33:34 +00:00
|
|
|
|
<script>
|
2019-01-12 03:33:27 +00:00
|
|
|
|
import Basic from './basic.md';
|
|
|
|
|
import Local from './local.md';
|
|
|
|
|
import Placement from './placement.md';
|
|
|
|
|
import DynamicTrigger from './dynamic-trigger.md';
|
|
|
|
|
import Icon from './icon.md';
|
|
|
|
|
import CN from '../index.zh-CN.md';
|
|
|
|
|
import US from '../index.en-US.md';
|
2018-03-22 08:19:02 +00:00
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
`,
|
2019-01-12 03:33:27 +00:00
|
|
|
|
};
|
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',
|
2019-09-28 12:45:07 +00:00
|
|
|
|
render() {
|
2018-03-22 08:19:02 +00:00
|
|
|
|
return (
|
|
|
|
|
<div>
|
2019-09-28 12:45:07 +00:00
|
|
|
|
<md cn={md.cn} us={md.us} />
|
2018-03-22 08:19:02 +00:00
|
|
|
|
<Basic />
|
|
|
|
|
<Local />
|
|
|
|
|
<Placement />
|
|
|
|
|
<DynamicTrigger />
|
2018-09-05 13:28:54 +00:00
|
|
|
|
<Icon />
|
2018-03-22 08:19:02 +00:00
|
|
|
|
<api>
|
2019-09-28 12:45:07 +00:00
|
|
|
|
<template slot="cn">
|
|
|
|
|
<CN />
|
2018-03-22 08:19:02 +00:00
|
|
|
|
</template>
|
2019-09-28 12:45:07 +00:00
|
|
|
|
<US />
|
2018-03-22 08:19:02 +00:00
|
|
|
|
</api>
|
|
|
|
|
</div>
|
2019-01-12 03:33:27 +00:00
|
|
|
|
);
|
2018-01-15 09:33:34 +00:00
|
|
|
|
},
|
2019-01-12 03:33:27 +00:00
|
|
|
|
};
|
2018-01-15 09:33:34 +00:00
|
|
|
|
</script>
|