fix(style): hide table cell content if too long
This commit is contained in:
@@ -17,6 +17,7 @@ const SealInput: React.FC<InputProps & SealFormItemProps> = (props) => {
|
||||
isInFormItems = true,
|
||||
variant,
|
||||
addAfter,
|
||||
checkStatus,
|
||||
trim = true,
|
||||
...rest
|
||||
} = props;
|
||||
@@ -70,7 +71,7 @@ const SealInput: React.FC<InputProps & SealFormItemProps> = (props) => {
|
||||
|
||||
return (
|
||||
<Wrapper
|
||||
status={status}
|
||||
status={checkStatus || status}
|
||||
label={label || (placeholder as string)}
|
||||
isFocus={isFocus}
|
||||
required={required}
|
||||
|
||||
@@ -9,4 +9,5 @@ export interface SealFormItemProps {
|
||||
addAfter?: React.ReactNode;
|
||||
loading?: React.ReactNode;
|
||||
trim?: boolean;
|
||||
checkStatus?: 'success' | 'error' | 'warning' | '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user