mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-23 18:50:06 +08:00
1 line
1.1 KiB
JavaScript
1 line
1.1 KiB
JavaScript
(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["dd9cf536"],{dd9cf536:function(e,l,a){"use strict";a.d(l,"__esModule",{value:!0}),a.d(l,"default",{enumerable:!0,get:function(){return u;}});var t=a("f19d2b93");a("6511c362");var n=a("5b220c3d"),o=a("a9d1a279");let r=[{value:"parent 1",title:"parent 1",children:[{value:"parent 1-0",title:"parent 1-0",children:[{value:"leaf1",title:"leaf1"},{value:"leaf2",title:"leaf2"},{value:"leaf3",title:"leaf3"},{value:"leaf4",title:"leaf4"},{value:"leaf5",title:"leaf5"},{value:"leaf6",title:"leaf6"}]},{value:"parent 1-1",title:"parent 1-1",children:[{value:"leaf11",title:(0,t.jsx)("b",{style:{color:"#08c"},children:"leaf11"})}]}]}];var u=()=>{let[e,l]=(0,n.useState)();return(0,t.jsx)(o.TreeSelect,{showSearch:!0,style:{width:"100%"},value:e,dropdownStyle:{maxHeight:400,overflow:"auto"},placeholder:"Please select",allowClear:!0,treeDefaultExpandAll:!0,onChange:e=>{l(e);},treeData:r,onPopupScroll:e=>{console.log("onPopupScroll",e);}});};}}]); |