mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-15 17:31:43 +08:00
32 lines
543 B
Vue
32 lines
543 B
Vue
|
<docs>
|
|||
|
---
|
|||
|
order: 6
|
|||
|
title:
|
|||
|
zh-CN: 顶部公告
|
|||
|
en-US: Banner
|
|||
|
---
|
|||
|
|
|||
|
## zh-CN
|
|||
|
|
|||
|
最简单的用法,适用于简短的警告提示。
|
|||
|
|
|||
|
## en-US
|
|||
|
|
|||
|
Display Alert as a banner at top of page.
|
|||
|
|
|||
|
</docs>
|
|||
|
|
|||
|
<template>
|
|||
|
<a-alert message="Warning text" banner />
|
|||
|
<br />
|
|||
|
<a-alert
|
|||
|
message="Very long warning text warning text text text text text text text"
|
|||
|
banner
|
|||
|
closable
|
|||
|
/>
|
|||
|
<br />
|
|||
|
<a-alert :show-icon="false" message="Warning text without icon" banner />
|
|||
|
<br />
|
|||
|
<a-alert type="error" message="Error text" banner />
|
|||
|
</template>
|