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: {