From 6103a8e5d2316af7fcf6b246e9e866e5216476f0 Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期三, 18 三月 2026 11:11:34 +0800
Subject: [PATCH] #统一修改下拉框问题
---
rsf-admin/src/page/components/StatusSelectInput.jsx | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/rsf-admin/src/page/components/StatusSelectInput.jsx b/rsf-admin/src/page/components/StatusSelectInput.jsx
index 11031ca..c1178e6 100644
--- a/rsf-admin/src/page/components/StatusSelectInput.jsx
+++ b/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}
/>
)
--
Gitblit v1.9.1