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/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