@douxcode/vue-spring-bottom-sheet
Version:
Modern and Performant Bottom Sheet for Vue.js
55 lines (54 loc) • 2.06 kB
TypeScript
import { BottomSheetProps } from './types';
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: {
header?(_: {}): any;
default?(_: {}): any;
footer?(_: {}): any;
};
refs: {
backdrop: import('vue').ShallowUnwrapRef<{}> | null;
sheet: import('vue').ShallowUnwrapRef<{}> | null;
sheetHeader: import('vue').ShallowUnwrapRef<{}> | null;
sheetScroll: HTMLDivElement;
sheetContentWrapper: import('vue').ShallowUnwrapRef<{}> | null;
sheetContent: HTMLDivElement;
sheetFooter: import('vue').ShallowUnwrapRef<{}> | null;
};
rootEl: any;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<BottomSheetProps, {
open: () => Promise<void>;
close: () => void;
snapToPoint: (index: number) => void;
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
[x: string]: any;
} & {
[x: string]: any;
}, string, import('vue').PublicProps, Readonly<BottomSheetProps> & Readonly<{
[x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
}>, {
duration: number;
blocking: boolean;
canSwipeClose: boolean;
canBackdropClose: boolean;
expandOnContentDrag: boolean;
teleportTo: string | import('vue').RendererElement;
teleportDefer: boolean;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
backdrop: import('vue').ShallowUnwrapRef<{}> | null;
sheet: import('vue').ShallowUnwrapRef<{}> | null;
sheetHeader: import('vue').ShallowUnwrapRef<{}> | null;
sheetScroll: HTMLDivElement;
sheetContentWrapper: import('vue').ShallowUnwrapRef<{}> | null;
sheetContent: HTMLDivElement;
sheetFooter: import('vue').ShallowUnwrapRef<{}> | null;
}, any>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};