feat: dynamic backends

This commit is contained in:
jialin
2025-10-13 14:40:26 +08:00
parent ee95fabc47
commit bca1e8140e
19 changed files with 325 additions and 177 deletions
+7 -2
View File
@@ -12,7 +12,12 @@ import { SealFormItemProps } from './types';
import Wrapper from './wrapper';
import InputWrapper from './wrapper/input';
const LabelWrapper = styled.div`
const LabelWrapper = styled.div.attrs({
className: 'seal-textarea-label'
})`
display: flex;
align-items: center;
justify-content: flex-start;
background-color: var(--ant-color-bg-container);
`;
@@ -110,7 +115,7 @@ const SealTextArea: React.FC<InputTextareaProps & SealFormItemProps> = (
<InputWrapper>
<Wrapper
status={status}
label={<LabelWrapper>{label}</LabelWrapper>}
label={label}
isFocus={isFocus}
required={required}
description={description}
+3 -1
View File
@@ -154,7 +154,9 @@ export const Label = styled.div.attrs<{
`;
// inner
const Inner = styled.div`
const Inner = styled.div.attrs({
className: '__inner__'
})`
width: 100%;
display: flex;
`;
@@ -163,6 +163,9 @@ const InputWrapper = styled.div`
height: auto;
padding-right: 10px;
}
.ant-input-textarea-allow-clear.ant-input-affix-wrapper {
padding: 0;
}
`;
export default InputWrapper;
+3 -3
View File
@@ -97,10 +97,10 @@ const SelectWrapper = styled.div`
align-items: center;
height: 54px;
.ant-select-selection-search {
// top: 20px !important;
// inset-inline-start: ${INPUT_INNER_PADDING}px;
.ant-select-selection-wrap {
height: 100%;
}
&.ant-select-auto-complete {
.ant-select-selection-search {
padding-inline-start: ${INPUT_INNER_PADDING}px;