2018-02-06 15:21:13 +08:00
|
|
|
|
<script>
|
2019-01-12 11:33:27 +08:00
|
|
|
|
import Basic from './basic';
|
|
|
|
|
import CustomIcon from './custom-icon';
|
|
|
|
|
import CustomStyle from './custom-style';
|
|
|
|
|
import Duration from './duration';
|
|
|
|
|
import Placement from './placement';
|
|
|
|
|
import WithBtn from './with-btn';
|
|
|
|
|
import WithIcon from './with-icon';
|
|
|
|
|
import Update from './update';
|
2018-09-05 21:28:54 +08:00
|
|
|
|
|
2019-01-12 11:33:27 +08:00
|
|
|
|
import CN from '../index.zh-CN.md';
|
|
|
|
|
import US from '../index.en-US.md';
|
2018-02-06 15:21:13 +08:00
|
|
|
|
const md = {
|
|
|
|
|
cn: `# 通知提醒框
|
|
|
|
|
全局展示通知提醒信息。
|
|
|
|
|
## 何时使用
|
|
|
|
|
在系统四个角显示通知提醒信息。经常用于以下情况:
|
|
|
|
|
- 较为复杂的通知内容。
|
|
|
|
|
- 带有交互的通知,给出用户下一步的行动点。
|
|
|
|
|
- 系统主动推送。
|
2018-02-27 12:14:29 +08:00
|
|
|
|
|
2018-02-06 15:21:13 +08:00
|
|
|
|
## 代码演示`,
|
|
|
|
|
us: `# Notification
|
|
|
|
|
Display a notification message globally.
|
|
|
|
|
## When To Use
|
|
|
|
|
To display a notification message at any of the four corners of the viewport. Typically it can be
|
|
|
|
|
used in the following cases:
|
|
|
|
|
- A notification with complex content.
|
|
|
|
|
- A notification providing a feedback based on the user interaction. Or it may show some details
|
|
|
|
|
about upcoming steps the user may have to follow.
|
2018-03-20 21:48:01 +08:00
|
|
|
|
- A notification that is pushed by the application.
|
|
|
|
|
## Examples `,
|
2019-01-12 11:33:27 +08:00
|
|
|
|
};
|
2018-02-06 15:21:13 +08:00
|
|
|
|
export default {
|
2018-03-20 21:48:01 +08:00
|
|
|
|
category: 'Components',
|
|
|
|
|
type: 'Feedback',
|
|
|
|
|
noinstant: true,
|
|
|
|
|
title: 'Notification',
|
|
|
|
|
subtitle: '通知提醒框',
|
2019-09-28 20:45:07 +08:00
|
|
|
|
render() {
|
2018-02-06 15:21:13 +08:00
|
|
|
|
return (
|
|
|
|
|
<div>
|
2019-09-28 20:45:07 +08:00
|
|
|
|
<md cn={md.cn} us={md.us} />
|
2018-02-06 15:21:13 +08:00
|
|
|
|
<Basic />
|
|
|
|
|
<CustomIcon />
|
|
|
|
|
<CustomStyle />
|
|
|
|
|
<Duration />
|
|
|
|
|
<Placement />
|
|
|
|
|
<WithBtn />
|
|
|
|
|
<WithIcon />
|
2018-09-05 21:28:54 +08:00
|
|
|
|
<Update />
|
2018-02-06 15:21:13 +08:00
|
|
|
|
<api>
|
2019-09-28 20:45:07 +08:00
|
|
|
|
<CN slot="cn" />
|
|
|
|
|
<US />
|
2018-02-06 15:21:13 +08:00
|
|
|
|
</api>
|
|
|
|
|
</div>
|
2019-01-12 11:33:27 +08:00
|
|
|
|
);
|
2018-02-06 15:21:13 +08:00
|
|
|
|
},
|
2019-01-12 11:33:27 +08:00
|
|
|
|
};
|
2018-02-06 15:21:13 +08:00
|
|
|
|
</script>
|