Commit e89c1310 by zhaochengxiang

bug fix

parent ac12874d
...@@ -267,21 +267,15 @@ export const AssetDictionaryItem = ({ value, onChange, loading, data }) => { ...@@ -267,21 +267,15 @@ export const AssetDictionaryItem = ({ value, onChange, loading, data }) => {
}, [data]) }, [data])
return ( return (
<div onClick={e => {
e.stopPropagation()
}}>
<TreeSelect <TreeSelect
showSearch showSearch
treeNodeFilterProp='title' treeNodeFilterProp='title'
loading={loading} loading={loading}
value={value} value={value}
dropdownStyle={{ maxHeight: 400, overflow: 'auto' }} dropdownStyle={{ maxHeight: 400, overflow: 'auto' }}
dropdownRender={(originNode) => (
<div
onClick={e => {
e.stopPropagation()
}}
>
{originNode}
</div>
)}
treeData={treeData} treeData={treeData}
treeExpandedKeys={expandedKeys} treeExpandedKeys={expandedKeys}
onTreeExpand={(val) => { onTreeExpand={(val) => {
...@@ -294,6 +288,7 @@ export const AssetDictionaryItem = ({ value, onChange, loading, data }) => { ...@@ -294,6 +288,7 @@ export const AssetDictionaryItem = ({ value, onChange, loading, data }) => {
treeCheckable treeCheckable
treeCheckStrictly 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