@opensig/opendesign
Version:
234 lines (233 loc) • 6.46 kB
TypeScript
declare function __VLS_template(): {
attrs: Partial<{}>;
slots: Readonly<{
prepend(): any;
append(): any;
suffix(): any;
}> & {
prepend(): any;
append(): any;
suffix(): any;
};
refs: {};
rootEl: any;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
size: {
type: import('vue').PropType<import('..').SizeT>;
};
round: {
type: import('vue').PropType<import('..').RoundT>;
};
color: {
type: import('vue').PropType<import('..').Color2T>;
default: string;
};
variant: {
type: import('vue').PropType<import('..').VariantT>;
default: string;
};
modelValue: {
type: StringConstructor;
};
defaultValue: {
type: StringConstructor;
};
placeholder: {
type: StringConstructor;
};
disabled: {
type: BooleanConstructor;
};
readonly: {
type: BooleanConstructor;
};
clearable: {
type: BooleanConstructor;
};
format: {
type: import('vue').PropType<(value: string) => string>;
};
validate: {
type: import('vue').PropType<(value: string) => boolean>;
};
valueOnInvalidChange: {
type: import('vue').PropType<boolean | ((inputValue: string, lastValidInputValue: string) => string)>;
};
rows: {
type: NumberConstructor;
default: number;
};
cols: {
type: NumberConstructor;
default: undefined;
};
resize: {
type: import('vue').PropType<import('../_components/in-textarea').TextareaResizeT>;
default: string;
};
minLength: {
type: NumberConstructor;
};
maxLength: {
type: NumberConstructor;
};
showLength: {
type: import('vue').PropType<"always" | "auto" | "never">;
default: string;
};
getLength: {
type: import('vue').PropType<(val: string) => number>;
};
inputOnOutlimit: {
type: BooleanConstructor;
default: boolean;
};
autoSize: {
type: BooleanConstructor;
};
textareaId: {
type: StringConstructor;
};
scrollbar: {
type: import('vue').PropType<boolean | Partial<import('..').BaseScrollerPropsT>>;
default: boolean;
};
}>, {
/**
* @zh-CN 聚焦文本域
* @en-US Focus the textarea
*/
focus: () => void | undefined;
/**
* @zh-CN 取消文本域聚焦
* @en-US Blur the textarea
*/
blur: () => void | undefined;
/**
* @zh-CN 清空文本域内容
* @en-US Clear the textarea value
*/
clear: () => void | undefined;
/**
* @zh-CN 获取原生 textarea 元素
* @en-US Get the native textarea element
*/
inputEl: () => HTMLTextAreaElement | undefined;
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
input: (evt: Event) => any;
clear: (evt?: Event | undefined) => any;
blur: (evt: FocusEvent) => any;
change: (value: string) => any;
focus: (evt: FocusEvent) => any;
"update:modelValue": (value: string) => any;
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
size: {
type: import('vue').PropType<import('..').SizeT>;
};
round: {
type: import('vue').PropType<import('..').RoundT>;
};
color: {
type: import('vue').PropType<import('..').Color2T>;
default: string;
};
variant: {
type: import('vue').PropType<import('..').VariantT>;
default: string;
};
modelValue: {
type: StringConstructor;
};
defaultValue: {
type: StringConstructor;
};
placeholder: {
type: StringConstructor;
};
disabled: {
type: BooleanConstructor;
};
readonly: {
type: BooleanConstructor;
};
clearable: {
type: BooleanConstructor;
};
format: {
type: import('vue').PropType<(value: string) => string>;
};
validate: {
type: import('vue').PropType<(value: string) => boolean>;
};
valueOnInvalidChange: {
type: import('vue').PropType<boolean | ((inputValue: string, lastValidInputValue: string) => string)>;
};
rows: {
type: NumberConstructor;
default: number;
};
cols: {
type: NumberConstructor;
default: undefined;
};
resize: {
type: import('vue').PropType<import('../_components/in-textarea').TextareaResizeT>;
default: string;
};
minLength: {
type: NumberConstructor;
};
maxLength: {
type: NumberConstructor;
};
showLength: {
type: import('vue').PropType<"always" | "auto" | "never">;
default: string;
};
getLength: {
type: import('vue').PropType<(val: string) => number>;
};
inputOnOutlimit: {
type: BooleanConstructor;
default: boolean;
};
autoSize: {
type: BooleanConstructor;
};
textareaId: {
type: StringConstructor;
};
scrollbar: {
type: import('vue').PropType<boolean | Partial<import('..').BaseScrollerPropsT>>;
default: boolean;
};
}>> & Readonly<{
onInput?: ((evt: Event) => any) | undefined;
onClear?: ((evt?: Event | undefined) => any) | undefined;
onBlur?: ((evt: FocusEvent) => any) | undefined;
onChange?: ((value: string) => any) | undefined;
onFocus?: ((evt: FocusEvent) => any) | undefined;
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
}>, {
color: "normal" | "primary" | "success" | "warning" | "danger";
resize: "h" | "v" | "none" | "both" | "horizontal" | "vertical";
disabled: boolean;
scrollbar: boolean | Partial<import('..').BaseScrollerPropsT>;
variant: "solid" | "outline" | "text";
clearable: boolean;
readonly: boolean;
showLength: "auto" | "always" | "never";
inputOnOutlimit: boolean;
rows: number;
cols: number;
autoSize: boolean;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};