mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-19 14:31:47 +01:00
feat(Dropdown): default delay from config
This commit is contained in:
@@ -108,11 +108,11 @@ export default defineComponent({
|
||||
},
|
||||
openDelay: {
|
||||
type: Number,
|
||||
default: 0
|
||||
default: () => config.default.openDelay
|
||||
},
|
||||
closeDelay: {
|
||||
type: Number,
|
||||
default: 0
|
||||
default: () => config.default.closeDelay
|
||||
},
|
||||
class: {
|
||||
type: [String, Object, Array] as PropType<any>,
|
||||
|
||||
@@ -46,6 +46,10 @@ export default {
|
||||
placement: 'bottom-end',
|
||||
strategy: 'fixed'
|
||||
},
|
||||
default: {
|
||||
openDelay: 0,
|
||||
closeDelay: 0
|
||||
},
|
||||
arrow: {
|
||||
...arrow,
|
||||
ring: 'before:ring-1 before:ring-gray-200 dark:before:ring-gray-700',
|
||||
|
||||
Reference in New Issue
Block a user