zhou zhou
7 小时以前 6103a8e5d2316af7fcf6b246e9e866e5216476f0
rsf-admin/src/page/components/StatusSelectInput.jsx
@@ -2,6 +2,7 @@
    SelectInput,
    required,
    useTranslate,
    AutocompleteInput
} from 'react-admin';
const StatusSelectInput = (props) => {
@@ -9,7 +10,7 @@
    const translate = useTranslate();
    return (
        <SelectInput
        <AutocompleteInput
            label={translate('common.field.status')}
            source="status"
            validate={[require && required()]}
@@ -19,6 +20,14 @@
            ]}
            defaultValue={defaultValue}
            helperText={false}
            options={{
                ListboxProps: {
                    style: {
                        maxHeight: '200px',
                    }
                },
                ...(rest.options || {})
            }}
            {...rest}
        />
    )