File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<script setup lang="ts">
2- import type { ComputedGetter } from ' vue'
2+ import type { ComputedRef } from ' vue'
33import type { ButtonProps } from ' ./Button.vue'
44import { vClosePopper } from ' floating-vue'
55import { inject } from ' vue'
@@ -11,7 +11,7 @@ const props = withDefaults(defineProps<ButtonProps & {
1111 keepOpen: false ,
1212})
1313
14- const disabled = inject <ComputedGetter <boolean > | undefined >(' $ui-dropdown-disabled' , undefined )!
14+ const disabled = inject <ComputedRef <boolean > | undefined >(' $ui-dropdown-disabled' , undefined )!
1515 </script >
1616
1717<template >
Original file line number Diff line number Diff line change @@ -18,10 +18,9 @@ const disabled = ref(false)
1818 v-model =" placement"
1919 title =" Placement"
2020 :options =" placements.reduce((acc, placement) => {
21- // @ts-expect-error
2221 acc[placement] = placement
2322 return acc
24- }, {})"
23+ }, {} as Record<Placement, Placement> )"
2524 />
2625 <HstCheckbox v-model =" disabled" title =" Disabled" />
2726 </template >
You can’t perform that action at this time.
0 commit comments