ant-design-vue/components/alert/demo/banner.md

28 lines
559 B
Markdown
Raw Normal View History

2018-03-07 21:36:15 +08:00
<cn>
#### 顶部公告
页面顶部通告形式,默认有图标且`type` 为 'warning'。
</cn>
<us>
#### Banner
Display Alert as a banner at top of page.
</us>
2019-10-09 18:32:23 +08:00
```tpl
2018-03-07 21:36:15 +08:00
<template>
<div>
<a-alert message="Warning text" banner />
<br />
2019-09-28 20:45:07 +08:00
<a-alert
message="Very long warning text warning text text text text text text text"
banner
closable
/>
2018-03-07 21:36:15 +08:00
<br />
<a-alert :showIcon="false" message="Warning text without icon" banner />
<br />
<a-alert type="error" message="Error text" banner />
</div>
</template>
```