feat: provider form

This commit is contained in:
jialin
2026-02-03 18:21:08 +08:00
parent 679e10abd6
commit b2a8d27178
15 changed files with 424 additions and 32 deletions
+4 -2
View File
@@ -11,7 +11,8 @@ import Wrapper from './wrapper';
import SelectWrapper from './wrapper/select';
const SealSelect: React.FC<
SelectProps & SealFormItemProps & { footer?: React.ReactNode }
SelectProps &
SealFormItemProps & { footer?: React.ReactNode; alwaysFocus?: boolean }
> = (props) => {
const {
label,
@@ -25,6 +26,7 @@ const SealSelect: React.FC<
notFoundContent = null,
loading,
footer,
alwaysFocus = false,
...rest
} = props;
const intl = useIntl();
@@ -99,7 +101,7 @@ const SealSelect: React.FC<
className="seal-select-wrapper"
status={status}
label={label}
isFocus={isFocus}
isFocus={alwaysFocus || isFocus}
required={required}
description={description}
disabled={props.disabled}
+5 -1
View File
@@ -2,6 +2,7 @@ import styled from 'styled-components';
import { BORDERRADIUS, INPUT_INNER_PADDING, INPUTHEIGHT } from '../config';
const SelectWrapper = styled.div`
flex: 1;
.seal-select-wrapper {
border: none;
box-shadow: none;
@@ -89,6 +90,9 @@ const SelectWrapper = styled.div`
left: 0;
right: 0;
}
.ant-select .ant-select-content {
padding-block: 0px 0;
}
}
}
.ant-select-selection-overflow-item > span {
@@ -118,7 +122,7 @@ const SelectWrapper = styled.div`
}
.ant-select-content {
padding-block: 20px 0 !important;
padding-block: 20px 0;
box-shadow: none !important;
}
&.ant-cascader {