Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SearchTree]: 下拉面板高度不好限制 #849

Open
wangwei88 opened this issue May 31, 2022 · 1 comment
Open

[SearchTree]: 下拉面板高度不好限制 #849

wangwei88 opened this issue May 31, 2022 · 1 comment
Assignees

Comments

@wangwei88
Copy link

image

@wj0990
Copy link
Collaborator

wj0990 commented May 31, 2022

@wangwei88 组件有个 treeProps 参数 可以向子集添加样式

<SearchTree
     multiple={false}
     style={{ width: 200 }}
     allowClear={true}
     onSearch={(searchValue)=>console.log('SearchTree-> SearchTreeOption',searchValue)}
     onChange={(selectd, selectedAll,  isChecked)=>console.log('SearchTree-> onChange', selectd, selectedAll, isChecked)}
     options={data}
     placeholder="请选择选项"
     treeProps={{ style:{ height:100, overflow:'scroll' }}}
 />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants