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

58 lines
1.5 KiB
Vue
Raw Normal View History

2018-02-06 07:21:13 +00:00
<script>
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 CN from '../index.zh-CN.md'
import US from '../index.en-US.md'
const md = {
cn: `# 通知提醒框
全局展示通知提醒信息
## 何时使用
在系统四个角显示通知提醒信息经常用于以下情况
- 较为复杂的通知内容
- 带有交互的通知给出用户下一步的行动点
- 系统主动推送
2018-02-27 04:14:29 +00:00
2018-02-06 07:21:13 +00: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 13:48:01 +00:00
- A notification that is pushed by the application.
## Examples `,
2018-02-06 07:21:13 +00:00
}
export default {
2018-03-20 13:48:01 +00:00
category: 'Components',
type: 'Feedback',
noinstant: true,
title: 'Notification',
subtitle: '通知提醒框',
2018-02-06 07:21:13 +00:00
render () {
return (
<div>
<md cn={md.cn} us={md.us}/>
<Basic />
<CustomIcon />
<CustomStyle />
<Duration />
<Placement />
<WithBtn />
<WithIcon />
<api>
<CN slot='cn' />
<US/>
</api>
</div>
)
},
}
</script>