Skip to content

Commit ee8ff31

Browse files
zhc5253499657insummer
authored andcommitted
fix:toast和message在wxml中使用icon属性报错的问题;watchShow拼写错误的问题 (#542)
1 parent e32896a commit ee8ff31

File tree

9 files changed

+39
-9
lines changed

9 files changed

+39
-9
lines changed
File renamed without changes.

dist/message/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import zIndex from '../behaviors/zIndex';
2-
import watchShow from '../behaviors/wacthShow';
2+
import watchShow from '../behaviors/watchShow';
33
Component({
44
behaviors: [zIndex, watchShow],
55
externalClasses: ['l-class', 'l-image-class'],
@@ -34,6 +34,11 @@ Component({
3434
status: false
3535
},
3636

37+
// 解决 addListener undefined 的错误
38+
observers: {
39+
'icon': function () {}
40+
},
41+
3742
attached() {
3843
this.initMessage();
3944
},

dist/toast/index.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import computeOffset from '../behaviors/computeOffset';
22
import zIndex from '../behaviors/zIndex';
3-
import wacthShow from '../behaviors/wacthShow';
3+
import watchShow from '../behaviors/watchShow';
44
Component({
55
/**
66
* 组件的属性列表
77
*/
8-
behaviors: [computeOffset, zIndex, wacthShow],
8+
behaviors: [computeOffset, zIndex, watchShow],
99
externalClasses: ['l-bg-class', 'l-icon-class', 'l-class', 'l-image-class', 'l-title-class '],
1010
properties: {
1111
// 显示与隐藏
@@ -64,6 +64,11 @@ Component({
6464
complete: ''
6565
},
6666

67+
// 解决 addListener undefined 的错误
68+
observers: {
69+
'icon': function () {}
70+
},
71+
6772
attached() {
6873
if (this.data.openApi) {
6974
this.initToast();
File renamed without changes.

examples/dist/message/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import zIndex from '../behaviors/zIndex';
2-
import watchShow from '../behaviors/wacthShow';
2+
import watchShow from '../behaviors/watchShow';
33
Component({
44
behaviors: [zIndex, watchShow],
55
externalClasses: ['l-class', 'l-image-class'],
@@ -34,6 +34,11 @@ Component({
3434
status: false
3535
},
3636

37+
// 解决 addListener undefined 的错误
38+
observers: {
39+
'icon': function () {}
40+
},
41+
3742
attached() {
3843
this.initMessage();
3944
},

examples/dist/toast/index.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import computeOffset from '../behaviors/computeOffset';
22
import zIndex from '../behaviors/zIndex';
3-
import wacthShow from '../behaviors/wacthShow';
3+
import watchShow from '../behaviors/watchShow';
44
Component({
55
/**
66
* 组件的属性列表
77
*/
8-
behaviors: [computeOffset, zIndex, wacthShow],
8+
behaviors: [computeOffset, zIndex, watchShow],
99
externalClasses: ['l-bg-class', 'l-icon-class', 'l-class', 'l-image-class', 'l-title-class '],
1010
properties: {
1111
// 显示与隐藏
@@ -64,6 +64,11 @@ Component({
6464
complete: ''
6565
},
6666

67+
// 解决 addListener undefined 的错误
68+
observers: {
69+
'icon': function () {}
70+
},
71+
6772
attached() {
6873
if (this.data.openApi) {
6974
this.initToast();
File renamed without changes.

src/message/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import zIndex from '../behaviors/zIndex';
2-
import watchShow from '../behaviors/wacthShow';
2+
import watchShow from '../behaviors/watchShow';
33
Component({
44
behaviors: [zIndex, watchShow],
55
externalClasses: ['l-class', 'l-image-class'],
@@ -34,6 +34,11 @@ Component({
3434
status: false
3535
},
3636

37+
// 解决 addListener undefined 的错误
38+
observers: {
39+
'icon': function () {}
40+
},
41+
3742
attached() {
3843
this.initMessage();
3944
},

src/toast/index.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import computeOffset from '../behaviors/computeOffset';
22
import zIndex from '../behaviors/zIndex';
3-
import wacthShow from '../behaviors/wacthShow';
3+
import watchShow from '../behaviors/watchShow';
44
Component({
55
/**
66
* 组件的属性列表
77
*/
8-
behaviors: [computeOffset, zIndex, wacthShow],
8+
behaviors: [computeOffset, zIndex, watchShow],
99
externalClasses: ['l-bg-class', 'l-icon-class', 'l-class', 'l-image-class', 'l-title-class '],
1010
properties: {
1111
// 显示与隐藏
@@ -64,6 +64,11 @@ Component({
6464
complete: ''
6565
},
6666

67+
// 解决 addListener undefined 的错误
68+
observers: {
69+
'icon': function () {}
70+
},
71+
6772
attached() {
6873
if (this.data.openApi) {
6974
this.initToast();

0 commit comments

Comments
 (0)