去除掉自定义组件中接收formValues,避免控制台警告

master
LiuJiaNan 2025-10-29 16:26:08 +08:00
parent 75cbecd936
commit b130afe33c
2 changed files with 10 additions and 1 deletions

View File

@ -5,7 +5,15 @@ import { Select } from "antd";
* 可创建选项的选择器组件
*/
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) => {
onDelete?.(option);

View File

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