[new feature] NoticeBar: add close event (#2692)

This commit is contained in:
neverland
2019-02-06 20:36:05 +08:00
committed by GitHub
parent 8fa872e52c
commit 9c5e5b8158
4 changed files with 22 additions and 3 deletions
+4 -1
View File
@@ -60,7 +60,10 @@ export default sfc({
methods: {
onClickIcon() {
this.showNoticeBar = this.mode !== 'closeable';
if (this.mode === 'closeable') {
this.showNoticeBar = false;
this.$emit('close');
}
},
onAnimationEnd() {