From e0351f5e0d75ab4f1da19696b55a1d3cd70b0a68 Mon Sep 17 00:00:00 2001
From: verou <857149855@qq.com>
Date: 星期二, 25 三月 2025 16:43:06 +0800
Subject: [PATCH] feat:库区批量

---
 rsf-admin/src/page/components/TreeSelectInput.jsx |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/rsf-admin/src/page/components/TreeSelectInput.jsx b/rsf-admin/src/page/components/TreeSelectInput.jsx
index 569451a..2c51cc5 100644
--- a/rsf-admin/src/page/components/TreeSelectInput.jsx
+++ b/rsf-admin/src/page/components/TreeSelectInput.jsx
@@ -5,7 +5,7 @@
 import * as Common from '@/utils/common';
 import { useFormContext } from 'react-hook-form';
 
-const TreeSelectInput = ({ resource, onChange, label, source = 'parentId', value, isTranslate = false, ...rest }) => {
+const TreeSelectInput = ({ resource, required, onChange, label, source = 'parentId', value, isTranslate = false, ...rest }) => {
     const translate = useTranslate();
     const { setValue } = useFormContext();
     const [filter, setFilter] = React.useState("");
@@ -42,7 +42,7 @@
     };
 
     return (
-        <FormControl fullWidth>
+        <FormControl fullWidth required={required}>
             <InputLabel>{translate(label)}</InputLabel>
             <Select
                 value={proxyVal || ''}

--
Gitblit v1.9.1