You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/components/alert/demo/smooth-closed.md

38 lines
501 B

<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>
```