Compare commits

...

3 Commits

Author SHA1 Message Date
LiuJiaNan 89495bcb39 1.0.21 2025-10-29 16:26:14 +08:00
LiuJiaNan b130afe33c 去除掉自定义组件中接收formValues,避免控制台警告 2025-10-29 16:26:08 +08:00
LiuJiaNan 75cbecd936 1.0.20 2025-10-29 16:13:07 +08:00
3 changed files with 11 additions and 2 deletions

View File

@ -5,7 +5,15 @@ import { Select } from "antd";
* 可创建选项的选择器组件 * 可创建选项的选择器组件
*/ */
function SelectCreate(props) { function SelectCreate(props) {
const { items, showDelete = true, label = "", maxCount = 1, onDelete, ...restProps } = props; const {
items,
showDelete = true,
label = "",
maxCount = 1,
onDelete,
formValues,
...restProps
} = props;
const handlerDelete = (option) => { const handlerDelete = (option) => {
onDelete?.(option); onDelete?.(option);

View File

@ -19,6 +19,7 @@ const Upload = (props) => {
size = 0, size = 0,
tipContent, tipContent,
uploadButtonText = "点击选择文件上传", uploadButtonText = "点击选择文件上传",
formValues,
...restProps ...restProps
} = props; } = props;

View File

@ -1,7 +1,7 @@
{ {
"name": "zy-react-library", "name": "zy-react-library",
"private": false, "private": false,
"version": "1.0.19", "version": "1.0.21",
"type": "module", "type": "module",
"description": "", "description": "",
"author": "LiuJiaNan", "author": "LiuJiaNan",