You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
576 B
32 lines
576 B
import * as React from "react";
|
|
|
|
/**
|
|
* 文本输入框组件封装
|
|
*/
|
|
export interface FormInputProps {
|
|
//表单名
|
|
name: string
|
|
//描述信息
|
|
desc: string
|
|
//提示信息
|
|
placeholder?:string
|
|
//表单值
|
|
value?: string
|
|
//数据类型
|
|
type?:
|
|
|"text"
|
|
|"password"
|
|
as?: React.ElementType;
|
|
//值改变事件
|
|
onChange: Function
|
|
//验证信息
|
|
valid?:{
|
|
check?:Boolean;
|
|
valid?:String;
|
|
invalid?:String;
|
|
}
|
|
//bootstrap col
|
|
col?:number
|
|
//长度
|
|
maxLength ?:number
|
|
}
|
|
|