[new feature] NoticeBar: add close event (#2692)
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user