import * as React from "react" import { cname } from "../utils" import { SearchIcon } from "../../bs-icons/search" import { generateUUID } from "../utils" import { MinusCircledIcon } from "@radix-ui/react-icons" import { EyeOpenIcon, EyeNoneIcon } from "@radix-ui/react-icons" import { useState } from "react" import sousuo from "../../../assets/npc/sousuo.png" export interface InputProps extends React.InputHTMLAttributes { } const Input = React.forwardRef( ({ className, type, ...props }, ref) => { return ( ) } ) Input.displayName = "Input" const SearchInput = React.forwardRef( ({ className, inputClassName, iconClassName, ...props }, ref) => { return
{/* */}
} ) SearchInput.displayName = "SearchInput" const PasswordInput = React.forwardRef( ({ className, inputClassName, iconClassName, ...props }, ref) => { const [type, setType] = useState('password') const handleShowPwd = () => { type === 'password' ? setType('text') : setType('password') } return
{ type === 'password' ? : }
} ) PasswordInput.displayName = 'PasswordInput' /** * 多行文本 */ export interface TextareaProps extends React.TextareaHTMLAttributes { } const Textarea = React.forwardRef( ({ className, ...props }, ref) => { return (