homehui
Version:
Vue3 二次封装基础组件文档
69 lines (68 loc) • 2 kB
TypeScript
import { PropType } from 'vue';
import { CheckboxItem } from './checkbox';
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
type: {
type: PropType<"button" | "check">;
validator: (value: string) => boolean;
default: string;
};
options: {
type: PropType<CheckboxItem[]>;
default: () => never[];
};
size: {
type: PropType<"default" | "small" | "large">;
validator: (value: string) => boolean;
default: string;
};
border: {
type: BooleanConstructor;
default: boolean;
};
props: {
type: ObjectConstructor;
default: () => {};
};
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
type: {
type: PropType<"button" | "check">;
validator: (value: string) => boolean;
default: string;
};
options: {
type: PropType<CheckboxItem[]>;
default: () => never[];
};
size: {
type: PropType<"default" | "small" | "large">;
validator: (value: string) => boolean;
default: string;
};
border: {
type: BooleanConstructor;
default: boolean;
};
props: {
type: ObjectConstructor;
default: () => {};
};
}>> & Readonly<{}>, {
size: "default" | "small" | "large";
type: "button" | "check";
props: Record<string, any>;
options: CheckboxItem[];
border: boolean;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, Partial<Record<string, (_: {
value: string | number | boolean;
label: string;
slot?: string | undefined;
disabled?: boolean | undefined;
}) => any>> & {
default?(_: {}): any;
}>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};