Skip to content

Commit

Permalink
feat(Tooltip): 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 7f5711b commit 3400b56
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/overlays/Tooltip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ export default defineComponent({
},
openDelay: {
type: Number,
default: 0
default: () => config.default.openDelay
},
closeDelay: {
type: Number,
default: 0
default: () => config.default.closeDelay
},
popper: {
type: Object as PropType<PopperOptions>,
Expand Down
4 changes: 4 additions & 0 deletions src/runtime/ui.config/overlays/tooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,9 @@ export default {
popper: {
strategy: 'fixed'
},
default: {
openDelay: 0,
closeDelay: 0
},
arrow
}

0 comments on commit 3400b56

Please sign in to comment.