mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 11:17:41 +00:00
fix(Toast): should reset duration when type or message changed (#8742)
This commit is contained in:
@@ -119,7 +119,7 @@ export default defineComponent({
|
|||||||
watch(() => [props.show, props.forbidClick], toggleClickable);
|
watch(() => [props.show, props.forbidClick], toggleClickable);
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => [props.show, props.duration],
|
() => [props.show, props.type, props.message, props.duration],
|
||||||
() => {
|
() => {
|
||||||
clearTimer();
|
clearTimer();
|
||||||
if (props.show && props.duration > 0) {
|
if (props.show && props.duration > 0) {
|
||||||
|
Reference in New Issue
Block a user