mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 03:11:15 +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.duration],
|
||||
() => [props.show, props.type, props.message, props.duration],
|
||||
() => {
|
||||
clearTimer();
|
||||
if (props.show && props.duration > 0) {
|
||||
|
Reference in New Issue
Block a user