import { Input, Text, Textarea, View } from "@tarojs/components" import { memo } from "react" import "./index.scss" interface ListParams{ label: string, //左边label onInput?: (ev:Object)=>void, // 输入框输入 onClick?:()=>any, //点击列表 placeholder?:string, // 提示文本 children?: any, // 插槽 type?: string // 类型:1.input,2.textarea,3.select value?: any } // 表单列表 const FromList = memo((props:ListParams)=>{ const {type="input",value=""} = props; return ( {props.label} { props.children?? { type=="input"? {value&& props.onInput&&props.onInput({detail: {value: ""}})} className="iconfont icon-qingkong"/> } : type=="textarea"?