Skip to content

Commit

Permalink
feat(Notification): customize default timeout (#1003)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmaxlogiudice committed Nov 21, 2023
1 parent ca62ce1 commit 83c3be7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/components/overlays/Notification.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default defineComponent({
},
timeout: {
type: Number,
default: 5000
default: () => config.default.timeout
},
actions: {
type: Array as PropType<NotificationAction[]>,
Expand Down
1 change: 1 addition & 0 deletions src/runtime/ui.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1397,6 +1397,7 @@ export const notification = {
default: {
color: 'primary',
icon: null,
timeout: 5000,
closeButton: {
icon: 'i-heroicons-x-mark-20-solid',
color: 'gray',
Expand Down

0 comments on commit 83c3be7

Please sign in to comment.