UNPKG

lotus-ui-plus

Version:

Lotus UI Plus - Vue3 Component Library

61 lines (60 loc) 2.25 kB
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue'; export interface LotusTextAreaProps { /** 输入框值 */ modelValue?: string | number; /** 占位符 */ placeholder?: string; /** 是否禁用 */ disabled?: boolean; /** 是否只读 */ readonly?: boolean; /** 最大长度 */ maxlength?: number; /** 获取焦点时是否自动滚动到屏幕中央(移动端防键盘遮挡) */ autoScrollIntoView?: boolean; scrollIntoViewDuration?: number; } declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<LotusTextAreaProps>, { disabled: boolean; readonly: boolean; autoScrollIntoView: boolean; scrollIntoViewDuration: number; }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { "update:modelValue": (value: string) => void; change: (value: string) => void; focus: (event: FocusEvent) => void; blur: (event: FocusEvent) => void; }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<LotusTextAreaProps>, { disabled: boolean; readonly: boolean; autoScrollIntoView: boolean; scrollIntoViewDuration: number; }>>> & Readonly<{ "onUpdate:modelValue"?: ((value: string) => any) | undefined; onChange?: ((value: string) => any) | undefined; onFocus?: ((event: FocusEvent) => any) | undefined; onBlur?: ((event: FocusEvent) => any) | undefined; }>, { disabled: boolean; readonly: boolean; autoScrollIntoView: boolean; scrollIntoViewDuration: number; }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>; 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]; } & {};