Skip to content

Commit

Permalink
feat(Dropdown): default delay from config
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Jan 24, 2024
1 parent 5e49fb8 commit c4a1c04
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/components/elements/Dropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
Expand Down
4 changes: 4 additions & 0 deletions src/runtime/ui.config/elements/dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit c4a1c04

Please sign in to comment.