bootstrap-vue-next
Version:
Seamless integration of Vue 3, Bootstrap 5, and TypeScript for modern, type-safe UI development
70 lines (69 loc) • 2.51 kB
TypeScript
import { BFormFileProps } from '../../types/ComponentProps';
import { BFormFileSlots } from '../../types';
type __VLS_Props = Omit<BFormFileProps, 'modelValue'>;
type __VLS_PublicProps = {
modelValue?: Exclude<BFormFileProps['modelValue'], undefined>;
} & __VLS_Props;
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: Readonly<BFormFileSlots> & BFormFileSlots;
refs: {
rootRef: HTMLDivElement;
dropZoneRef: HTMLDivElement;
browseButtonRef: HTMLButtonElement;
customInputRef: HTMLInputElement;
plainInputRef: HTMLInputElement;
};
rootEl: any;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
blur: () => void;
element: import('vue').ComputedRef<HTMLButtonElement | HTMLInputElement | null>;
focus: () => void;
reset: () => void;
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
change: (value: Event) => any;
"update:modelValue": (value: File | readonly File[] | null) => any;
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
onChange?: ((value: Event) => any) | undefined;
"onUpdate:modelValue"?: ((value: File | readonly File[] | null) => any) | undefined;
}>, {
disabled: boolean;
autofocus: boolean;
form: string;
id: string;
name: string;
placeholder: string;
required: boolean;
size: import('../..').Size;
state: import('../..').ValidationState;
ariaLabel: string;
label: string;
capture: "user" | "environment";
multiple: boolean;
plain: boolean;
ariaLabelledby: string;
accept: string | readonly string[];
browseText: string;
directory: boolean;
dropPlaceholder: string;
fileNameFormatter: (files: readonly File[]) => string;
labelClass: import('../../types/AnyValuedAttributes').ClassValue;
noButton: boolean;
noDrop: boolean;
showFileNames: boolean;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
rootRef: HTMLDivElement;
dropZoneRef: HTMLDivElement;
browseButtonRef: HTMLButtonElement;
customInputRef: HTMLInputElement;
plainInputRef: HTMLInputElement;
}, any>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};