diff --git a/src/avatar/avatar.wxml b/src/avatar/avatar.wxml
index 5cd139be9..e908f5ad3 100644
--- a/src/avatar/avatar.wxml
+++ b/src/avatar/avatar.wxml
@@ -7,14 +7,14 @@
style="{{_._style([this.getStyles(isShow, zIndex), style, customStyle])}}"
>
{{content}}
diff --git a/src/common/template/icon.wxml b/src/common/template/icon.wxml
index 06aca702f..ad3d71215 100644
--- a/src/common/template/icon.wxml
+++ b/src/common/template/icon.wxml
@@ -1,15 +1,15 @@
diff --git a/src/common/template/image.wxml b/src/common/template/image.wxml
index 84587fc48..cbbbc2ba8 100644
--- a/src/common/template/image.wxml
+++ b/src/common/template/image.wxml
@@ -1,14 +1,14 @@
diff --git a/src/drawer/_example/icon-drawer/index.js b/src/drawer/_example/icon-drawer/index.js
index 8e87afe60..c7763e5f6 100644
--- a/src/drawer/_example/icon-drawer/index.js
+++ b/src/drawer/_example/icon-drawer/index.js
@@ -1,6 +1,7 @@
Component({
data: {
placement: 'left',
+ sidebar: [],
iconSidebar: [
{
title: '菜单一',
diff --git a/src/drawer/_example/title/index.js b/src/drawer/_example/title/index.js
index ec74ec091..c478a4db6 100644
--- a/src/drawer/_example/title/index.js
+++ b/src/drawer/_example/title/index.js
@@ -1,6 +1,7 @@
Component({
data: {
placement: 'left',
+ sidebar: [],
baseSidebar: [
{
title: '菜单一',
diff --git a/src/grid-item/grid-item.ts b/src/grid-item/grid-item.ts
index eed306ae0..79c387e2f 100644
--- a/src/grid-item/grid-item.ts
+++ b/src/grid-item/grid-item.ts
@@ -51,7 +51,6 @@ export default class GridItem extends SuperComponent {
gridItemWrapperStyle: '',
gridItemContentStyle: '',
align: 'center',
- layout: 'vertical',
column: 0,
labelID: '',
};
diff --git a/src/grid-item/grid-item.wxml b/src/grid-item/grid-item.wxml
index 2244ec502..79af83fc4 100644
--- a/src/grid-item/grid-item.wxml
+++ b/src/grid-item/grid-item.wxml
@@ -23,14 +23,14 @@
{
context: $message.instance,
offset: [20, 32],
marquee: { speed: 100, loop: 3, delay: 0 },
- icon: '',
+ icon: false,
content: 'icon 使用空值',
- duration: 10,
+ duration: 0,
});
await simulate.sleep(540);
// icon 为空
const $prefixIcon = comp.querySelector('#t-message >>> .t-message__icon--left');
- expect($prefixIcon).toBeUndefined();
+ expect($prefixIcon.dom.innerHTML).toBe('');
Message.hide();
await simulate.sleep(500);
expect($message.instance.data.visible).toBe(false);
diff --git a/src/message/message.ts b/src/message/message.ts
index c6664117f..23d200ede 100644
--- a/src/message/message.ts
+++ b/src/message/message.ts
@@ -31,7 +31,6 @@ export default class Message extends SuperComponent {
data = {
prefix,
classPrefix: name,
- visible: false,
loop: -1,
animation: [],
showAnimation: [],
diff --git a/src/notice-bar/__test__/__snapshots__/index.test.js.snap b/src/notice-bar/__test__/__snapshots__/index.test.js.snap
index 7a851cc5e..e33b84446 100644
--- a/src/notice-bar/__test__/__snapshots__/index.test.js.snap
+++ b/src/notice-bar/__test__/__snapshots__/index.test.js.snap
@@ -23,7 +23,7 @@ exports[`notice-bar props : marquee 1`] = `
ariaLabel=""
ariaRole=""
class="t-icon class t-class"
- style=""
+ style="color: inherit; font-size: inherit;"
bind:tap="onTap"
>
diff --git a/src/popup/_example/base/index.wxml b/src/popup/_example/base/index.wxml
index dfd05b4d7..afd9a94eb 100644
--- a/src/popup/_example/base/index.wxml
+++ b/src/popup/_example/base/index.wxml
@@ -1,4 +1,4 @@
-
+
{{cur.text}}
diff --git a/src/progress/_example/progress.wxml b/src/progress/_example/progress.wxml
index dabe8d3b5..61bfc4dfc 100644
--- a/src/progress/_example/progress.wxml
+++ b/src/progress/_example/progress.wxml
@@ -4,7 +4,7 @@
-
+
diff --git a/src/pull-down-refresh/pull-down-refresh.wxml b/src/pull-down-refresh/pull-down-refresh.wxml
index 306743ddd..21b790d4e 100644
--- a/src/pull-down-refresh/pull-down-refresh.wxml
+++ b/src/pull-down-refresh/pull-down-refresh.wxml
@@ -29,8 +29,8 @@
layout="{{loadingProps.layout || 'horizontal'}}"
loading="{{loadingProps.loading || true}}"
pause="{{loadingProps.pause || false}}"
- progress="{{loadingProps.progress}}"
- reverse="{{loadingProps.reverse}}"
+ progress="{{loadingProps.progress || 0}}"
+ reverse="{{loadingProps.reverse || false}}"
size="{{loadingProps.size || '50rpx'}}"
text="{{loadingProps.text || loadingTexts[refreshStatus]}}"
theme="{{loadingProps.theme || 'circular'}}"
diff --git a/src/result/__test__/__snapshots__/demo.test.js.snap b/src/result/__test__/__snapshots__/demo.test.js.snap
index 9d0513693..48f613fe6 100644
--- a/src/result/__test__/__snapshots__/demo.test.js.snap
+++ b/src/result/__test__/__snapshots__/demo.test.js.snap
@@ -76,7 +76,6 @@ exports[`Result Result theme demo works fine 1`] = `
class="demo-section__content"
>
@@ -87,7 +86,6 @@ exports[`Result Result theme demo works fine 1`] = `
class="demo-section__content"
>
@@ -98,7 +96,6 @@ exports[`Result Result theme demo works fine 1`] = `
class="demo-section__content"
>
@@ -109,7 +106,6 @@ exports[`Result Result theme demo works fine 1`] = `
class="demo-section__content"
>
diff --git a/src/result/_example/theme/index.wxml b/src/result/_example/theme/index.wxml
index 8597e5815..bf60b0b30 100644
--- a/src/result/_example/theme/index.wxml
+++ b/src/result/_example/theme/index.wxml
@@ -1,5 +1,5 @@
-
+
diff --git a/src/search/__test__/__snapshots__/index.test.js.snap b/src/search/__test__/__snapshots__/index.test.js.snap
index f3abf4ef5..51bd75615 100644
--- a/src/search/__test__/__snapshots__/index.test.js.snap
+++ b/src/search/__test__/__snapshots__/index.test.js.snap
@@ -20,7 +20,7 @@ exports[`search Props :base 1`] = `
ariaLabel=""
ariaRole=""
class="t-icon class t-class"
- style="font-size: 24px;"
+ style="color: inherit; font-size: 24px;"
bind:tap="onTap"
>
@@ -24,7 +24,7 @@ exports[`SideBar SideBar base demo works fine 1`] = `
value="{{1}}"
/>
@@ -38,7 +38,7 @@ exports[`SideBar SideBar base demo works fine 1`] = `
value="{{3}}"
/>
@@ -525,7 +525,7 @@ exports[`SideBar SideBar custom demo works fine 1`] = `
bind:change="onSideBarChange"
>
@@ -539,7 +539,7 @@ exports[`SideBar SideBar custom demo works fine 1`] = `
value="{{1}}"
/>
@@ -553,7 +553,7 @@ exports[`SideBar SideBar custom demo works fine 1`] = `
value="{{3}}"
/>
@@ -1040,7 +1040,7 @@ exports[`SideBar SideBar switch demo works fine 1`] = `
bind:change="onSideBarChange"
>
@@ -229,7 +229,7 @@ exports[`TabBar TabBar sub demo works fine 1`] = `
diff --git a/src/tab-bar/_example/sub/index.js b/src/tab-bar/_example/sub/index.js
index f2019356c..e3e406b1f 100644
--- a/src/tab-bar/_example/sub/index.js
+++ b/src/tab-bar/_example/sub/index.js
@@ -3,11 +3,13 @@ const list = [
value: 'home',
label: '首页',
icon: 'home',
+ children: [],
},
{
value: 'app',
label: '应用',
icon: 'app',
+ children: [],
},
{
value: 'user',
diff --git a/src/tabs/tabs.wxml b/src/tabs/tabs.wxml
index ecd4282e1..1e9afd130 100644
--- a/src/tabs/tabs.wxml
+++ b/src/tabs/tabs.wxml
@@ -8,7 +8,7 @@
t-class="{{_.cls(classPrefix + '__sticky', [placement])}}"
disabled="{{ !sticky }}"
z-index="{{ stickyProps.zIndex || '1' }}"
- offset-top="{{ stickyProps.offsetTop }}"
+ offset-top="{{ stickyProps.offsetTop || 0 }}"
container="{{ stickyProps.container }}"
bind:scroll="onTouchScroll"
>
diff --git a/src/toast/toast.wxml b/src/toast/toast.wxml
index 52def4aa0..9e417b32f 100644
--- a/src/toast/toast.wxml
+++ b/src/toast/toast.wxml
@@ -28,9 +28,9 @@