mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +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([["e1faf679"],{e1faf679:function(e,t,l){"use strict";l.d(t,"__esModule",{value:!0}),l.d(t,"default",{enumerable:!0,get:function(){return i;}});var a=l("f19d2b93");l("9e7920c4");var o=l("5b220c3d"),n=l("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:"parent 1-1",title:"parent 1-1",children:[{value:"leaf3",title:(0,a.jsx)("b",{style:{color:"#08c"},children:"leaf3"})}]}]}];var i=()=>{let[e,t]=(0,o.useState)("topLeft");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(n.Radio.Group,{value:e,onChange:e=>{t(e.target.value);},children:[(0,a.jsx)(n.Radio.Button,{value:"topLeft",children:"topLeft"}),(0,a.jsx)(n.Radio.Button,{value:"topRight",children:"topRight"}),(0,a.jsx)(n.Radio.Button,{value:"bottomLeft",children:"bottomLeft"}),(0,a.jsx)(n.Radio.Button,{value:"bottomRight",children:"bottomRight"})]}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)(n.TreeSelect,{showSearch:!0,dropdownStyle:{maxHeight:400,overflow:"auto",minWidth:300},placeholder:"Please select",popupMatchSelectWidth:!1,placement:e,allowClear:!0,treeDefaultExpandAll:!0,treeData:r})]});};}}]); |