[new feature] Notify: add onClick event

This commit is contained in:
陈嘉涵
2019-05-01 09:17:59 +08:00
parent 848786dd6e
commit 210122d518
8 changed files with 34 additions and 3 deletions
+2 -1
View File
@@ -42,7 +42,8 @@ export default {
this.$notify({
message: this.$t('content'),
duration: 1000,
background: '#1989fa'
background: '#1989fa',
onClick: () => this.$toast('click!!!')
});
}
}