mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 16:44:21 +00:00
feat: add clear method
This commit is contained in:
@@ -139,10 +139,10 @@ import { Toast } from 'src/index';
|
||||
export default {
|
||||
methods: {
|
||||
showToast() {
|
||||
this.toast = Toast('我是提示文案,建议不超过十五字~');
|
||||
Toast('我是提示文案,建议不超过十五字~');
|
||||
},
|
||||
closeToast() {
|
||||
this.toast.clear();
|
||||
Toast.clear();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user