Skip to content

Commit

Permalink
refactor(floating): use existing prop definition for transition prop
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-solanki committed Jun 7, 2023
1 parent 73685d1 commit 0fa6fc8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/anu-vue/src/components/floating/meta.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import type { Middleware, Placement, Strategy } from '@floating-ui/vue'
import { flip, shift } from '@floating-ui/vue'
import type { LiteralUnion } from 'type-fest'
import type { ExtractPublicPropTypes, Ref } from 'vue'
import { sameWidth as sameWidthMiddleware } from './middlewares'
import type { Transitions } from '@/transitions'
import { transition as transitionProp } from '@/composables/useProps'

// 鈩癸笍 Make sure to checkout meta definition rules

Expand Down Expand Up @@ -69,7 +68,7 @@ export const aFloatingProps = {
* Transition to add while showing/hiding floating element
*/
transition: {
type: [String, null] as PropType<LiteralUnion<Transitions, string> | null>,
...transitionProp,
default: 'slide-y',
},

Expand Down

0 comments on commit 0fa6fc8

Please sign in to comment.