Skip to content

Commit 7f5bac2

Browse files
committed
feat(NoticeBar): 新增 linFlush 方法用于刷新动画
在使用 api 加载通告栏内容的场景使用: 修改通告栏内容后,使用 this.selecComponent() 选择组件实例 然后调用 flush() 方法刷新动画 close #1248
1 parent 330d696 commit 7f5bac2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/notice-bar/index.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,5 +146,16 @@ Component({
146146
show: false
147147
});
148148
},
149+
150+
151+
// ============ 开放函数 =============
152+
153+
/**
154+
* 动态设置通告栏内容后刷新动画
155+
*/
156+
linFlush(){
157+
this.destroyTimer();
158+
this.initAnimation();
159+
},
149160
}
150161
});

0 commit comments

Comments
 (0)