vuux
Version:
Vue3 Nuxt3 Nuxt4 组件库
23 lines (22 loc) • 497 B
TypeScript
/**
* props
*/
export interface Props {
modelValue?: string | undefined;
placeholder?: string;
clear?: boolean;
count?: boolean;
maxCount?: number | string;
disabled?: boolean;
type?: 'text' | 'password' | 'textarea';
rows?: number | string;
readonly?: boolean;
}
/**
* 组件事件类型
*/
export type Emits = {
(event: 'update:modelValue', value: string): void;
(event: 'input', value: string): void;
(event: 'blur', value: string): void;
};