From 60acd2d8484f11c120a6f2e67ae42048cae8b346 Mon Sep 17 00:00:00 2001 From: rex Date: Tue, 26 Jan 2021 17:15:42 +0800 Subject: [PATCH] fix(transition): do not display when show is true (#4005) fix #3816 --- packages/mixins/transition.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/mixins/transition.ts b/packages/mixins/transition.ts index b4c5734f..bad60335 100644 --- a/packages/mixins/transition.ts +++ b/packages/mixins/transition.ts @@ -37,6 +37,12 @@ export function transition(showDefaultValue: boolean) { display: false, }, + ready() { + if (this.data.show === true) { + this.observeShow(true, false); + } + }, + methods: { observeShow(value: boolean, old: boolean) { if (value === old) {