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.
38 lines
498 B
38 lines
498 B
6 years ago
|
<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>
|
||
|
```
|