chore: resource list
This commit is contained in:
@@ -16,10 +16,21 @@ type OnSearch = (
|
||||
) => void;
|
||||
|
||||
const SealInputSearch: React.FC<SearchProps & SealFormItemProps> = (props) => {
|
||||
const { label, placeholder, required, description, ...rest } = props;
|
||||
const {
|
||||
label,
|
||||
placeholder,
|
||||
required,
|
||||
description,
|
||||
isInFormItems = true,
|
||||
...rest
|
||||
} = props;
|
||||
const [isFocus, setIsFocus] = useState(false);
|
||||
const inputRef = useRef<any>(null);
|
||||
const { status } = Form.Item.useStatus();
|
||||
let status = '';
|
||||
if (isInFormItems) {
|
||||
const statusData = Form?.Item?.useStatus?.();
|
||||
status = statusData?.status || '';
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
if (props.value) {
|
||||
|
||||
Reference in New Issue
Block a user