fix(Toast): failed to modify message
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user