fix(style): language menu

This commit is contained in:
jialin
2024-07-08 14:46:33 +08:00
parent 01e9b70f6d
commit 9ad9539b51
13 changed files with 521 additions and 180 deletions
+4 -1
View File
@@ -17,6 +17,7 @@ const SealInput: React.FC<InputProps & SealFormItemProps> = (props) => {
isInFormItems = true,
variant,
addAfter,
trim = true,
...rest
} = props;
const [isFocus, setIsFocus] = useState(false);
@@ -43,7 +44,9 @@ const SealInput: React.FC<InputProps & SealFormItemProps> = (props) => {
};
const handleChange = (e: any) => {
e.target.value = e.target.value?.trim?.();
if (trim) {
e.target.value = e.target.value?.trim?.();
}
props.onChange?.(e);
};
+1
View File
@@ -8,4 +8,5 @@ export interface SealFormItemProps {
extra?: React.ReactNode;
addAfter?: React.ReactNode;
loading?: React.ReactNode;
trim?: boolean;
}