fix: ui issues

This commit is contained in:
jialin
2026-02-06 11:13:49 +08:00
parent d54722609c
commit 7f3d6bb55f
35 changed files with 364 additions and 141 deletions
+2 -1
View File
@@ -29,6 +29,7 @@ const SealAutoComplete: React.FC<
extra,
style,
addAfter,
suffixIcon,
loading,
allowClear,
clearSpaceOnBlur,
@@ -103,7 +104,7 @@ const SealAutoComplete: React.FC<
</Link>
);
}
return null;
return suffixIcon || null;
};
const popupRender = (originNode: React.ReactElement): React.ReactElement => {
+1 -1
View File
@@ -22,7 +22,7 @@ const SealInputNumber: React.FC<InputNumberProps & SealFormItemProps> = (
let status = '';
if (isInFormItems) {
const statusData = Form?.Item?.useStatus?.();
status = statusData?.status || '';
status = props.status || statusData?.status || '';
} else {
status = props.status || '';
}
+1 -1
View File
@@ -51,8 +51,8 @@ const SealPassword: React.FC<InputProps & SealFormItemProps> = (props) => {
e.target.value = e.target.value?.trim?.();
if (!inputRef.current?.input?.value) {
setIsFocus(false);
props.onBlur?.(e);
}
props.onBlur?.(e);
};
return (
+3 -1
View File
@@ -106,7 +106,9 @@ const SealCascader: React.FC<
// the status can be controlled by Form.Item
if (isInFormItems) {
const statusData = Form?.Item?.useStatus?.();
status = statusData?.status || '';
status = props.status || statusData?.status || '';
} else {
status = props.status || '';
}
const _options = useMemo(() => {
+1 -1
View File
@@ -30,7 +30,7 @@ const SealInput: React.FC<InputProps & SealFormItemProps> = (props) => {
let status = '';
if (isInFormItems) {
const statusData = Form?.Item?.useStatus?.();
status = statusData?.status || '';
status = props.status || statusData?.status || '';
} else {
status = props.status || '';
}
+5 -2
View File
@@ -181,8 +181,11 @@ const SelectWrapper = styled.div`
}
&.validate-status-error {
&.dropdown-visible {
.ant-select-dropdown {
.ant-select-dropdown {
border-color: var(--ant-color-error) !important;
}
.__wrapper__ {
.ant-cascader.ant-select.ant-select-outlined {
border-color: var(--ant-color-error) !important;
}
}