From c6bff2718a835c1016f016e8fa6405c230b23518 Mon Sep 17 00:00:00 2001 From: landluck Date: Tue, 29 Nov 2022 11:26:05 +0800 Subject: [PATCH] fix(tabs): fix issue with component init animation (#5115) --- .../empty/test/__snapshots__/demo.spec.ts.snap | 2 +- .../icon/test/__snapshots__/demo.spec.ts.snap | 2 +- .../test/__snapshots__/demo.spec.ts.snap | 2 +- .../tab/test/__snapshots__/demo.spec.ts.snap | 18 +++++++++--------- packages/tabs/index.less | 1 + packages/tabs/index.ts | 8 +++++--- packages/tabs/index.wxml | 2 +- packages/tabs/index.wxs | 1 + 8 files changed, 20 insertions(+), 16 deletions(-) diff --git a/packages/empty/test/__snapshots__/demo.spec.ts.snap b/packages/empty/test/__snapshots__/demo.spec.ts.snap index 659156ff..6f0fc5ef 100644 --- a/packages/empty/test/__snapshots__/demo.spec.ts.snap +++ b/packages/empty/test/__snapshots__/demo.spec.ts.snap @@ -85,7 +85,7 @@ exports[`should render demo and match snapshot 1`] = ` > { + // waiting transition end + setTimeout(() => { this.setData({ skipTransition: false }); - }); + }, this.data.duration); } }); }, diff --git a/packages/tabs/index.wxml b/packages/tabs/index.wxml index f76dd63f..6fcb57f0 100644 --- a/packages/tabs/index.wxml +++ b/packages/tabs/index.wxml @@ -20,7 +20,7 @@ style="{{ color ? 'border-color: ' + color : '' }}" > - +