feat(Notification): customize default timeout (#1003)

This commit is contained in:
Iván Máximiliano, Lo Giudice
2023-11-21 14:34:08 -03:00
committed by GitHub
parent ca62ce13d3
commit 83c3be716a
2 changed files with 2 additions and 1 deletions

View File

@@ -93,7 +93,7 @@ export default defineComponent({
}, },
timeout: { timeout: {
type: Number, type: Number,
default: 5000 default: () => config.default.timeout
}, },
actions: { actions: {
type: Array as PropType<NotificationAction[]>, type: Array as PropType<NotificationAction[]>,

View File

@@ -1397,6 +1397,7 @@ export const notification = {
default: { default: {
color: 'primary', color: 'primary',
icon: null, icon: null,
timeout: 5000,
closeButton: { closeButton: {
icon: 'i-heroicons-x-mark-20-solid', icon: 'i-heroicons-x-mark-20-solid',
color: 'gray', color: 'gray',