style: framework options

This commit is contained in:
jialin
2025-11-18 20:01:54 +08:00
parent e85d59dfb0
commit 18f861f771
13 changed files with 70 additions and 25 deletions
@@ -1,4 +1,5 @@
import SealInput from '@/components/seal-form/seal-input';
import { Global } from '@/config/global';
import { MinusOutlined } from '@ant-design/icons';
import { useIntl } from '@umijs/max';
import { Button, Tooltip } from 'antd';
@@ -99,6 +100,7 @@ const LabelItem: React.FC<LabelItemProps> = ({
<div className="label-value">
{valueAddon ?? (
<SealInput.Input
trim={false}
disabled={disabled}
checkStatus={label.value ? 'success' : ''}
label={intl.formatMessage({ id: 'common.input.value' })}
+1 -1
View File
@@ -67,7 +67,7 @@ const SealInput: React.FC<InputProps & SealFormItemProps> = (props) => {
setIsFocus(false);
}
if (!trim) {
e.target.value = e.target.value?.trimRight?.();
e.target.value = e.target.value?.trim?.();
props.onChange?.(e);
}
props.onBlur?.(e);