mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-28 01:09:15 +08:00
fix(Toast): failed to modify message
This commit is contained in:
parent
2c55fed8b7
commit
dac7feb919
@ -59,11 +59,17 @@ function createInstance() {
|
||||
data() {
|
||||
return {
|
||||
timer: null,
|
||||
message: null,
|
||||
toastProps: {
|
||||
show: false,
|
||||
},
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
message(val) {
|
||||
this.toastProps.message = val;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
clear() {
|
||||
this.toggle(false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user