Skip to content

Commit

Permalink
fix(snackbar): add default value for options
Browse files Browse the repository at this point in the history
  • Loading branch information
BeADre committed Jul 20, 2021
1 parent 5e83e31 commit 18e6ae1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/varlet-ui/src/snackbar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,12 @@ let isAllowMultiple = false
let uniqSnackbarOptions: Array<UniqSnackbarOptions> = reactive<UniqSnackbarOptions[]>([])

const defaultOption: Partial<Record<keyof SnackbarOptions, any>> = {
type: undefined,
content: '',
position: 'top',
duration: 3000,
vertical: false,
contentClass: undefined,
loadingType: 'circle',
loadingSize: 'normal',
lockScroll: false,
Expand Down

0 comments on commit 18e6ae1

Please sign in to comment.