@wocwin/t-ui-plus
Version:
Page level components developed based on Element Plus.
60 lines (58 loc) • 2.14 kB
TypeScript
import { TFormSelfProps as TFormProps, FormOpts } from './type';
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
declare function __VLS_template(): Partial<Record<any, (_: {
scope: any;
}) => any>> & Partial<Record<any, (_: {
scope: any;
}) => any>> & Partial<Record<any, (_: {}) => any>> & Partial<Record<any, (_: {}) => any>>;
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TFormProps>, {
className: string;
formOpts: () => any;
widthSize: number;
labelPosition: string;
isTrim: boolean;
}>, any, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
handleEvent: (...args: any[]) => void;
"update:modelValue": (...args: any[]) => void;
getRefs: (...args: any[]) => void;
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TFormProps>, {
className: string;
formOpts: () => any;
widthSize: number;
labelPosition: string;
isTrim: boolean;
}>>> & {
onHandleEvent?: ((...args: any[]) => any) | undefined;
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
onGetRefs?: ((...args: any[]) => any) | undefined;
}, {
className: string;
formOpts: FormOpts | any;
widthSize: 1 | 2 | 3 | 4 | 5 | 6;
labelPosition: "left" | "right" | "top";
isTrim: boolean;
}, {}>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
export default _default;
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
type __VLS_TypePropsToRuntimeProps<T> = {
[K in keyof T]-?: {} extends Pick<T, K> ? {
type: PropType<__VLS_NonUndefinedable<T[K]>>;
} : {
type: PropType<T[K]>;
required: true;
};
};
type __VLS_WithDefaults<P, D> = {
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
default: D[K];
}> : P[K];
};
type __VLS_Prettify<T> = {
[K in keyof T]: T[K];
} & {};
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};