mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
1 line
1.3 KiB
JavaScript
1 line
1.3 KiB
JavaScript
|
(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["69456c3e"],{"69456c3e":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("c0d5aca1");var r=a("5b220c3d"),n=a("e22febe0"),o=a("a9d1a279");let s=(0,t.jsx)(n.SmileOutlined,{}),d=[{value:"parent 1",title:"parent 1",children:[{value:"parent 1-0",title:"parent 1-0",children:[{value:"leaf1",title:"my leaf"},{value:"leaf2",title:"your leaf"}]},{value:"parent 1-1",title:"parent 1-1",children:[{value:"sss",title:(0,t.jsx)("b",{style:{color:"#08c"},children:"sss"})}]}]}];var u=()=>{let[e,l]=(0,r.useState)(),a=e=>{console.log(e),l(e);};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.TreeSelect,{showSearch:!0,suffixIcon:s,style:{width:"100%"},value:e,dropdownStyle:{maxHeight:400,overflow:"auto"},placeholder:"Please select",allowClear:!0,treeDefaultExpandAll:!0,onChange:a,treeData:d}),(0,t.jsx)("br",{}),(0,t.jsx)("br",{}),(0,t.jsx)(o.TreeSelect,{showSearch:!0,prefix:"Prefix",style:{width:"100%"},value:e,dropdownStyle:{maxHeight:400,overflow:"auto"},placeholder:"Please select",allowClear:!0,treeDefaultExpandAll:!0,onChange:a,treeData:d})]});};}}]);
|