Skip to content

Commit

Permalink
fix(snackbar): add install method of snackbar component
Browse files Browse the repository at this point in the history
  • Loading branch information
BeADre committed May 17, 2021
1 parent 430e382 commit 0b403cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/varlet-ui/src/snackbar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,4 +245,8 @@ function getTop(position = 'top'): string {
return '5%'
}

VarSnackbar.install = function(app: App) {
app.component(VarSnackbar.name, VarSnackbar)
}

export default Snackbar

0 comments on commit 0b403cc

Please sign in to comment.