提交 2b669dcd authored 作者: 钟是志's avatar 钟是志

TreeSelect组件修改

上级 7cdd5627
......@@ -6,10 +6,12 @@
import { TreeSelect } from 'antd';
import React, { useEffect, useState } from 'react';
import getPopupContainer
from "@/webPublic/one_stop_public/tableCompon/Split_Index/getPopupContainer";
const { SHOW_PARENT } = TreeSelect;
export default function TreeSelectDiy(props) {
const { value, onChange, json, disabled, treeData } = props;
const { value, onChange, json, disabled, treeData, uuid } = props;
const [data, setData] = useState([]);
const onChangeS = v => {
onChange(v);
......@@ -28,6 +30,8 @@ export default function TreeSelectDiy(props) {
showCheckedStrategy={SHOW_PARENT}
searchPlaceholder="请选择"
placeholder={json.placeholder}
getPopupContainer={getPopupContainer(false, uuid)}
style={{
width: '100%',
}}
......
......@@ -3201,6 +3201,7 @@ ${obj[dataColumn.base52]}
json={json}
disabled={disabled}
data-base52={dataColumn.base52}
uuid={uuid}
/>
);
break;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论