mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-15 04:29:37 +01:00
feat(Notification): customize default timeout (#1003)
This commit is contained in:
committed by
GitHub
parent
ca62ce13d3
commit
83c3be716a
@@ -93,7 +93,7 @@ export default defineComponent({
|
||||
},
|
||||
timeout: {
|
||||
type: Number,
|
||||
default: 5000
|
||||
default: () => config.default.timeout
|
||||
},
|
||||
actions: {
|
||||
type: Array as PropType<NotificationAction[]>,
|
||||
|
||||
@@ -1397,6 +1397,7 @@ export const notification = {
|
||||
default: {
|
||||
color: 'primary',
|
||||
icon: null,
|
||||
timeout: 5000,
|
||||
closeButton: {
|
||||
icon: 'i-heroicons-x-mark-20-solid',
|
||||
color: 'gray',
|
||||
|
||||
Reference in New Issue
Block a user