From 00a44859a673b388e1dca5f54c4ecaffc5fee30e Mon Sep 17 00:00:00 2001
From: 1 <1@123>
Date: 星期四, 19 三月 2026 10:21:08 +0800
Subject: [PATCH] lsh#0:新增、更新、解禁(只要调用了更新,就代表非禁用了) 1:禁用
---
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