Commit e89c1310 by zhaochengxiang

bug fix

parent ac12874d
......@@ -267,33 +267,28 @@ export const AssetDictionaryItem = ({ value, onChange, loading, data }) => {
}, [data])
return (
<TreeSelect
showSearch
treeNodeFilterProp='title'
loading={loading}
value={value}
dropdownStyle={{ maxHeight: 400, overflow: 'auto' }}
dropdownRender={(originNode) => (
<div
onClick={e => {
e.stopPropagation()
}}
>
{originNode}
</div>
)}
treeData={treeData}
treeExpandedKeys={expandedKeys}
onTreeExpand={(val) => {
setExpandedKeys(val)
}}
onChange={(val) => {
onChange?.(val)
}}
placeholder="请选择资产目录"
treeCheckable
treeCheckStrictly
/>
<div onClick={e => {
e.stopPropagation()
}}>
<TreeSelect
showSearch
treeNodeFilterProp='title'
loading={loading}
value={value}
dropdownStyle={{ maxHeight: 400, overflow: 'auto' }}
treeData={treeData}
treeExpandedKeys={expandedKeys}
onTreeExpand={(val) => {
setExpandedKeys(val)
}}
onChange={(val) => {
onChange?.(val)
}}
placeholder="请选择资产目录"
treeCheckable
treeCheckStrictly
/>
</div>
)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment