fix(style): language menu
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
@@ -8,4 +8,5 @@ export interface SealFormItemProps {
|
||||
extra?: React.ReactNode;
|
||||
addAfter?: React.ReactNode;
|
||||
loading?: React.ReactNode;
|
||||
trim?: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user