* chore: add carousel * chore: add oxc-parser * feat: use oxc-parser to get ExportNamedDeclaration node * chore: add todo
21 lines
531 B
TypeScript
21 lines
531 B
TypeScript
import type {
|
|
EmblaCarouselType as CarouselApi,
|
|
EmblaOptionsType as CarouselOptions,
|
|
EmblaPluginType as CarouselPlugin,
|
|
} from 'embla-carousel'
|
|
import type { HTMLAttributes, Ref } from 'vue'
|
|
|
|
export interface CarouselProps {
|
|
opts?: CarouselOptions | Ref<CarouselOptions>
|
|
plugins?: CarouselPlugin[] | Ref<CarouselPlugin[]>
|
|
orientation?: 'horizontal' | 'vertical'
|
|
}
|
|
|
|
export interface CarouselEmits {
|
|
(e: 'init-api', payload: CarouselApi): void
|
|
}
|
|
|
|
export interface WithClassAsProps {
|
|
class?: HTMLAttributes['class']
|
|
}
|