Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 17f1e80

Browse files
committed
feat(vue-layout): update AspectRatio type definition
1 parent 00e708a commit 17f1e80

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

packages/layout/src/aspect-ratio.ts

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,15 @@ export interface AspectRatioProps
2121
extends HTMLChakraProps<'div'>,
2222
AspectRatioOptions {}
2323

24-
const CAspectRatioImpl = defineComponent({
24+
/**
25+
* Vue component used to cropping media (videos, images and maps)
26+
* to a desired aspect ratio.
27+
*
28+
* @see Docs https://vue.chakra-ui.com/docs/layout/aspect-ratio
29+
*/
30+
export const CAspectRatio: ComponentWithProps<
31+
DeepPartial<AspectRatioProps>
32+
> = defineComponent({
2533
props: {
2634
ratio: {
2735
type: [Number] as PropType<AspectRatioProps['ratio']>,
@@ -68,13 +76,3 @@ const CAspectRatioImpl = defineComponent({
6876
}
6977
},
7078
})
71-
72-
/**
73-
* Vue component used to cropping media (videos, images and maps)
74-
* to a desired aspect ratio.
75-
*
76-
* @see Docs https://vue.chakra-ui.com/docs/layout/aspect-ratio
77-
*/
78-
export const CAspectRatio = CAspectRatioImpl as ComponentWithProps<
79-
DeepPartial<AspectRatioProps>
80-
>

0 commit comments

Comments
 (0)