mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-26 01:40:34 +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: {
|
timeout: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 5000
|
default: () => config.default.timeout
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
type: Array as PropType<NotificationAction[]>,
|
type: Array as PropType<NotificationAction[]>,
|
||||||
|
|||||||
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user