UNPKG

yanzhen-design-vue

Version:

57 lines (56 loc) 1.94 kB
import { Key } from './types'; interface OptionItem { code: string; parentCode: string; id: number; name: string; children?: OptionItem[]; [key: string]: any; } interface IProps { mode: 'tree' | 'cascade'; isReadonly?: boolean; isHidden?: boolean; placeholder?: string; tooltips?: string; options?: OptionItem[]; filterOptions?: string | string[]; leafOnly: boolean; showAllLevels: boolean; selectMaxLimit: number; selectMaxLimitMsg: string | undefined; [key: string]: any; } declare let __VLS_typeProps: IProps; type __VLS_PublicProps = { modelValue?: Key[]; } & typeof __VLS_typeProps; declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, { options: () => any[]; filterOptions: () => any[]; }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { "update:modelValue": (modelValue: Key[]) => any; }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, { options: () => any[]; filterOptions: () => any[]; }>>> & Readonly<{ "onUpdate:modelValue"?: (modelValue: Key[]) => any; }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>; export default _default; type __VLS_WithDefaults<P, D> = { [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & { default: D[K]; }> : P[K]; }; type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; type __VLS_TypePropsToOption<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? { type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>; } : { type: import('vue').PropType<T[K]>; required: true; }; }; type __VLS_PrettifyLocal<T> = { [K in keyof T]: T[K]; } & {};