mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-29 01:39: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() {
|
data() {
|
||||||
return {
|
return {
|
||||||
timer: null,
|
timer: null,
|
||||||
|
message: null,
|
||||||
toastProps: {
|
toastProps: {
|
||||||
show: false,
|
show: false,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
message(val) {
|
||||||
|
this.toastProps.message = val;
|
||||||
|
},
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
clear() {
|
clear() {
|
||||||
this.toggle(false);
|
this.toggle(false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user