Commit e89c1310 by zhaochengxiang

bug fix

parent ac12874d
...@@ -267,33 +267,28 @@ export const AssetDictionaryItem = ({ value, onChange, loading, data }) => { ...@@ -267,33 +267,28 @@ export const AssetDictionaryItem = ({ value, onChange, loading, data }) => {
}, [data]) }, [data])
return ( return (
<TreeSelect <div onClick={e => {
showSearch e.stopPropagation()
treeNodeFilterProp='title' }}>
loading={loading} <TreeSelect
value={value} showSearch
dropdownStyle={{ maxHeight: 400, overflow: 'auto' }} treeNodeFilterProp='title'
dropdownRender={(originNode) => ( loading={loading}
<div value={value}
onClick={e => { dropdownStyle={{ maxHeight: 400, overflow: 'auto' }}
e.stopPropagation() treeData={treeData}
}} treeExpandedKeys={expandedKeys}
> onTreeExpand={(val) => {
{originNode} setExpandedKeys(val)
</div> }}
)} onChange={(val) => {
treeData={treeData} onChange?.(val)
treeExpandedKeys={expandedKeys} }}
onTreeExpand={(val) => { placeholder="请选择资产目录"
setExpandedKeys(val) treeCheckable
}} treeCheckStrictly
onChange={(val) => { />
onChange?.(val) </div>
}}
placeholder="请选择资产目录"
treeCheckable
treeCheckStrictly
/>
) )
} }
......
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