From 065e97f80bc82d412b68390c8f7ddbe14b8b9e03 Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期三, 18 三月 2026 11:07:16 +0800
Subject: [PATCH] #DictionarySelect修改
---
rsf-admin/src/page/components/DictionarySelect.jsx | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/rsf-admin/src/page/components/DictionarySelect.jsx b/rsf-admin/src/page/components/DictionarySelect.jsx
index e6934f9..316efe5 100644
--- a/rsf-admin/src/page/components/DictionarySelect.jsx
+++ b/rsf-admin/src/page/components/DictionarySelect.jsx
@@ -3,7 +3,8 @@
import {
Button, useListContext, SelectInput,
required, SelectArrayInput,
- useTranslate, useNotify
+ useTranslate, useNotify,
+ AutocompleteInput, AutocompleteArrayInput
} from 'react-admin';
import { useFormContext } from 'react-hook-form';
import request from '@/utils/request';
@@ -96,13 +97,21 @@
return list;
}, [list, currentValue, multiple]);
- const InputComponent = multiple ? SelectArrayInput : SelectInput;
+ const InputComponent = multiple ? AutocompleteArrayInput : AutocompleteInput;
return (
<InputComponent
source={name}
choices={choices}
isLoading={loading}
+ options={{
+ ListboxProps: {
+ style: {
+ maxHeight: '200px',
+ }
+ },
+ ...(parmas.options || {})
+ }}
{...parmas}
/>
);
--
Gitblit v1.9.1