From 855cfa5d9419f3365d8b6ed034893dc8eaf06d6f Mon Sep 17 00:00:00 2001 From: Waiter Date: Tue, 18 Feb 2020 20:33:39 +0800 Subject: [PATCH] chore: change some style (#2773) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: change some style * chore: change some code * fix(Tabs): 调整初始化时机 --- example/pages/button/index.wxml | 4 ++-- example/pages/image/index.wxml | 4 ++-- example/pages/progress/index.wxml | 12 ++++++------ example/pages/progress/index.wxss | 2 +- example/pages/rate/index.wxml | 14 +++++++------- example/pages/rate/index.wxss | 2 +- example/pages/tab/index.wxml | 4 ++-- example/pages/tab/index.wxss | 4 ++-- packages/grid/index.ts | 4 ---- packages/rate/index.ts | 8 ++++++-- packages/rate/index.wxml | 2 +- packages/skeleton/index.ts | 8 ++++++-- packages/skeleton/index.wxml | 2 +- packages/tabs/index.ts | 5 +++-- 14 files changed, 40 insertions(+), 35 deletions(-) diff --git a/example/pages/button/index.wxml b/example/pages/button/index.wxml index 1a3f6137..6d986b8b 100644 --- a/example/pages/button/index.wxml +++ b/example/pages/button/index.wxml @@ -1,4 +1,4 @@ - + 默认按钮 @@ -58,4 +58,4 @@ 普通按钮 块级元素 - + diff --git a/example/pages/image/index.wxml b/example/pages/image/index.wxml index 0fd6d052..4fe193a0 100644 --- a/example/pages/image/index.wxml +++ b/example/pages/image/index.wxml @@ -1,4 +1,4 @@ - + - + diff --git a/example/pages/progress/index.wxml b/example/pages/progress/index.wxml index 8a7cb88d..2c0bee20 100644 --- a/example/pages/progress/index.wxml +++ b/example/pages/progress/index.wxml @@ -1,20 +1,20 @@ - + - + - + - - + + @@ -8,7 +8,7 @@ - + - + diff --git a/packages/skeleton/index.ts b/packages/skeleton/index.ts index 90ded80e..847b06c1 100644 --- a/packages/skeleton/index.ts +++ b/packages/skeleton/index.ts @@ -5,7 +5,10 @@ VantComponent({ props: { row: { type: Number, - value: 0 + value: 0, + observer(value: number) { + this.setData({ rowArray: Array.from({ length: value }) }); + }, }, title: Boolean, avatar: Boolean, @@ -39,6 +42,7 @@ VantComponent({ }, data: { - isArray: false + isArray: false, + rowArray: [], } }); diff --git a/packages/skeleton/index.wxml b/packages/skeleton/index.wxml index 6f07a219..058e2efd 100644 --- a/packages/skeleton/index.wxml +++ b/packages/skeleton/index.wxml @@ -16,7 +16,7 @@ style="{{ 'width:' + titleWidth }}" /> this.createSelectorQuery().select('.van-tabs') + }, () => { + this.setLine(true); + this.scrollIntoView(); }); - this.setLine(true); - this.scrollIntoView(); }, methods: {