feat: depoly model advanced
This commit is contained in:
@@ -96,6 +96,10 @@
|
||||
flex: 1;
|
||||
padding-block: 20px 0;
|
||||
|
||||
&.no-wrapper-style {
|
||||
padding-block: 0;
|
||||
}
|
||||
|
||||
.extra {
|
||||
position: absolute;
|
||||
right: 12px;
|
||||
|
||||
@@ -4,8 +4,9 @@ import LabelInfo from './label-info';
|
||||
import wrapperStyle from './wrapper.less';
|
||||
interface WrapperProps {
|
||||
children: React.ReactNode;
|
||||
label: React.ReactNode;
|
||||
isFocus: boolean;
|
||||
label?: React.ReactNode;
|
||||
noWrapperStyle?: boolean;
|
||||
isFocus?: boolean;
|
||||
status?: string;
|
||||
required?: boolean;
|
||||
description?: React.ReactNode;
|
||||
@@ -29,6 +30,7 @@ const Wrapper: React.FC<WrapperProps> = ({
|
||||
extra,
|
||||
variant,
|
||||
addAfter,
|
||||
noWrapperStyle,
|
||||
onClick
|
||||
}) => {
|
||||
return (
|
||||
@@ -42,7 +44,12 @@ const Wrapper: React.FC<WrapperProps> = ({
|
||||
className ? wrapperStyle[className] : ''
|
||||
)}
|
||||
>
|
||||
<div className={classNames(wrapperStyle.wrapper)} onClick={onClick}>
|
||||
<div
|
||||
className={classNames(wrapperStyle.wrapper, {
|
||||
[wrapperStyle['no-wrapper-style']]: noWrapperStyle
|
||||
})}
|
||||
onClick={onClick}
|
||||
>
|
||||
<label
|
||||
onClick={onClick}
|
||||
className={classNames(
|
||||
|
||||
@@ -91,6 +91,7 @@ const SealTextArea: React.FC<TextAreaProps & SealFormItemProps> = (props) => {
|
||||
>
|
||||
<Input.TextArea
|
||||
{...rest}
|
||||
autoSize={rest.autoSize || { minRows: 2, maxRows: 5 }}
|
||||
ref={inputRef}
|
||||
style={{ minHeight: '80px', ...style }}
|
||||
className="seal-textarea"
|
||||
|
||||
Reference in New Issue
Block a user