mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-16 01:41:15 +08:00
38 lines
501 B
Markdown
38 lines
501 B
Markdown
<cn>
|
|
#### 平滑地卸载
|
|
平滑、自然的卸载提示。
|
|
</cn>
|
|
|
|
<us>
|
|
#### Smoothly Unmount
|
|
Smoothly and unaffectedly unmount Alert.
|
|
</us>
|
|
|
|
```html
|
|
<template>
|
|
<div>
|
|
<a-alert
|
|
v-if="visible"
|
|
message="Alert Message Text"
|
|
type="success"
|
|
closable
|
|
:afterClose="handleClose"
|
|
/>
|
|
</div>
|
|
</template>
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
visible: true,
|
|
}
|
|
},
|
|
methods: {
|
|
handleClose(){
|
|
this.visible = false
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
```
|