feat: delete work space

This commit is contained in:
MingLiang Wang
2022-12-22 21:56:12 +08:00
parent 88bb20505e
commit 15f04aea48
10 changed files with 243 additions and 24 deletions
+5
View File
@@ -25,6 +25,11 @@ export const Input = (props: inputProps) => {
} = props;
const [value, setValue] = useState<string>(valueProp || '');
const handleChange: InputHTMLAttributes<HTMLInputElement>['onChange'] = e => {
if (
(maxLength && e.target.value.length > maxLength) ||
(minLength && e.target.value.length < minLength)
)
return;
setValue(e.target.value);
onChange && onChange(e.target.value);
};