mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 17:44:35 +08:00
1 line
19 KiB
JavaScript
1 line
19 KiB
JavaScript
(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["e25a0bd7"],{"03db826f":function(e,r,t){"use strict";t.d(r,"__esModule",{value:!0}),t.d(r,"default",{enumerable:!0,get:function(){return a;}});var n=t("f19d2b93");t("e6da8cbc");var l=t("5b220c3d"),s=t("a9d1a279"),a=()=>{let[e,r]=(0,l.useState)(!1),[t,a]=(0,l.useState)("left");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.Space,{children:[(0,n.jsxs)(s.Radio.Group,{value:t,onChange:e=>{a(e.target.value);},children:[(0,n.jsx)(s.Radio,{value:"top",children:"top"}),(0,n.jsx)(s.Radio,{value:"right",children:"right"}),(0,n.jsx)(s.Radio,{value:"bottom",children:"bottom"}),(0,n.jsx)(s.Radio,{value:"left",children:"left"})]}),(0,n.jsx)(s.Button,{type:"primary",onClick:()=>{r(!0);},children:"Open"})]}),(0,n.jsxs)(s.Drawer,{title:"Basic Drawer",placement:t,closable:!1,onClose:()=>{r(!1);},open:e,children:[(0,n.jsx)("p",{children:"Some contents..."}),(0,n.jsx)("p",{children:"Some contents..."}),(0,n.jsx)("p",{children:"Some contents..."})]},t)]});};},"05a0d079":function(e,r,t){"use strict";t.d(r,"__esModule",{value:!0}),t.d(r,"default",{enumerable:!0,get:function(){return a;}});var n=t("f19d2b93");t("c09fb9d1");var l=t("5b220c3d"),s=t("a9d1a279"),a=()=>{let e=(0,l.useRef)(null),[r,t]=(0,l.useState)(!1);return(0,n.jsx)(s.ConfigProvider,{getPopupContainer:()=>e.current,children:(0,n.jsxs)("div",{ref:e,className:"site-drawer-render-in-current-wrapper",children:[(0,n.jsx)(s.Button,{type:"primary",onClick:()=>{t(!0);},children:"Open"}),(0,n.jsxs)(s.Drawer,{rootStyle:{position:"absolute"},title:"ConfigProvider",placement:"right",onClose:()=>{t(!1);},open:r,children:[(0,n.jsx)("p",{children:"Some contents..."}),(0,n.jsx)("p",{children:"Some contents..."}),(0,n.jsx)("p",{children:"Some contents..."})]})]})});};},"0e8b61ae":function(e,r,t){"use strict";t.d(r,"__esModule",{value:!0}),t.d(r,"default",{enumerable:!0,get:function(){return a;}});var n=t("f19d2b93");t("ef1a0a10");var l=t("5b220c3d"),s=t("a9d1a279"),a=()=>{let{token:e}=s.theme.useToken(),[r,t]=(0,l.useState)(!1),a={position:"relative",height:200,padding:48,overflow:"hidden",background:e.colorFillAlter,border:`1px solid ${e.colorBorderSecondary}`,borderRadius:e.borderRadiusLG};return(0,n.jsxs)("div",{style:a,children:["Render in this",(0,n.jsx)("div",{style:{marginTop:16},children:(0,n.jsx)(s.Button,{type:"primary",onClick:()=>{t(!0);},children:"Open"})}),(0,n.jsx)(s.Drawer,{title:"Basic Drawer",placement:"right",closable:!1,onClose:()=>{t(!1);},open:r,getContainer:!1,children:(0,n.jsx)("p",{children:"Some contents..."})})]});};},"16dbfae4":function(e,r,t){"use strict";t.d(r,"__esModule",{value:!0}),t.d(r,"default",{enumerable:!0,get:function(){return a;}});var n=t("f19d2b93");t("00aa5115");var l=t("5b220c3d"),s=t("a9d1a279"),a=()=>{let[e,r]=(0,l.useState)(!1),[t,a]=(0,l.useState)("right"),o=()=>{r(!1);};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.Space,{children:[(0,n.jsxs)(s.Radio.Group,{value:t,onChange:e=>{a(e.target.value);},children:[(0,n.jsx)(s.Radio,{value:"top",children:"top"}),(0,n.jsx)(s.Radio,{value:"right",children:"right"}),(0,n.jsx)(s.Radio,{value:"bottom",children:"bottom"}),(0,n.jsx)(s.Radio,{value:"left",children:"left"})]}),(0,n.jsx)(s.Button,{type:"primary",onClick:()=>{r(!0);},children:"Open"})]}),(0,n.jsxs)(s.Drawer,{title:"Drawer with extra actions",placement:t,width:500,onClose:o,open:e,extra:(0,n.jsxs)(s.Space,{children:[(0,n.jsx)(s.Button,{onClick:o,children:"Cancel"}),(0,n.jsx)(s.Button,{type:"primary",onClick:o,children:"OK"})]}),children:[(0,n.jsx)("p",{children:"Some contents..."}),(0,n.jsx)("p",{children:"Some contents..."}),(0,n.jsx)("p",{children:"Some contents..."})]})]});};},"244ec22b":function(e,r,t){"use strict";t.d(r,"__esModule",{value:!0}),t.d(r,"default",{enumerable:!0,get:function(){return i;}});var n=t("f19d2b93");t("26412f56");var l=t("5b220c3d"),s=t("a9d1a279"),a=t("3835a2b7");let o=(0,a.createStyles)(({token:e})=>({"my-drawer-body":{background:e.blue1},"my-drawer-mask":{boxShadow:"inset 0 0 15px #fff"},"my-drawer-header":{background:e.green1},"my-drawer-footer":{color:e.colorPrimary},"my-drawer-content":{borderLeft:"2px dotted #333"}}));var i=()=>{let[e,r]=(0,l.useState)([!1,!1]),{styles:t}=o(),i=(0,a.useTheme)(),d=(e,t)=>{r(r=>(r[e]=t,[...r]));},c={body:t["my-drawer-body"],mask:t["my-drawer-mask"],header:t["my-drawer-header"],footer:t["my-drawer-footer"],content:t["my-drawer-content"]},u={mask:{backdropFilter:"blur(10px)"},content:{boxShadow:"-10px 0 10px #666"},header:{borderBottom:`1px solid ${i.colorPrimary}`},body:{fontSize:i.fontSizeLG},footer:{borderTop:`1px solid ${i.colorBorder}`}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.Space,{children:[(0,n.jsx)(s.Button,{type:"primary",onClick:()=>d(0,!0),children:"Open"}),(0,n.jsx)(s.Button,{type:"primary",onClick:()=>d(1,!0),children:"ConfigProvider"})]}),(0,n.jsxs)(s.Drawer,{title:"Basic Drawer",placement:"right",footer:"Footer",onClose:()=>d(0,!1),open:e[0],classNames:c,styles:u,children:[(0,n.jsx)("p",{children:"Some contents..."}),(0,n.jsx)("p",{children:"Some contents..."}),(0,n.jsx)("p",{children:"Some contents..."})]}),(0,n.jsx)(s.ConfigProvider,{drawer:{classNames:c,styles:u},children:(0,n.jsxs)(s.Drawer,{title:"Basic Drawer",placement:"right",footer:"Footer",onClose:()=>d(1,!1),open:e[1],children:[(0,n.jsx)("p",{children:"Some contents..."}),(0,n.jsx)("p",{children:"Some contents..."}),(0,n.jsx)("p",{children:"Some contents..."})]})})]});};},"24c9c1d5":function(e,r,t){"use strict";t.d(r,"__esModule",{value:!0}),t.d(r,"default",{enumerable:!0,get:function(){return a;}});var n=t("f19d2b93");t("d91ec980");var l=t("a9d1a279");let{_InternalPanelDoNotUseOrYouWillBeFired:s}=l.Drawer;var a=()=>(0,n.jsx)(l.ConfigProvider,{theme:{components:{Drawer:{footerPaddingBlock:0,footerPaddingInline:0}}},children:(0,n.jsx)("div",{style:{padding:32,background:"#e6e6e6"},children:(0,n.jsx)(s,{title:"Hello Title",style:{height:300},footer:"Footer!",children:"Hello Content"})})});},"324720c0":function(e,r,t){"use strict";t.d(r,"__esModule",{value:!0}),t.d(r,"default",{enumerable:!0,get:function(){return s;}});var n=t("f19d2b93");t("cd041de2");let{_InternalPanelDoNotUseOrYouWillBeFired:l}=t("a9d1a279").Drawer;var s=()=>(0,n.jsx)("div",{style:{padding:32,background:"#e6e6e6"},children:(0,n.jsx)(l,{title:"Hello Title",style:{height:300},footer:"Footer!",children:"Hello Content"})});},"3644acb2":function(e,r,t){"use strict";t.d(r,"__esModule",{value:!0}),t.d(r,"default",{enumerable:!0,get:function(){return a;}});var n=t("f19d2b93");t("8c1eed3f");var l=t("5b220c3d"),s=t("a9d1a279"),a=()=>{let[e,r]=(0,l.useState)(!1);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.Button,{type:"primary",onClick:()=>{r(!0);},children:"Open"}),(0,n.jsxs)(s.Drawer,{title:"Drawer without mask",placement:"right",mask:!1,onClose:()=>{r(!1);},open:e,styles:{mask:{width:333,background:"red",borderRadius:20,boxShadow:"-5px 0 5px green",overflow:"hidden"}},children:[(0,n.jsx)("p",{children:"Some contents..."}),(0,n.jsx)("p",{children:"Some contents..."}),(0,n.jsx)("p",{children:"Some contents..."})]})]});};},"82b07988":function(e,r,t){"use strict";t.d(r,"__esModule",{value:!0}),t.d(r,"default",{enumerable:!0,get:function(){return o;}});var n=t("f19d2b93");t("d322e434");var l=t("5b220c3d"),s=t("a9d1a279");let a=({title:e,content:r})=>(0,n.jsxs)("div",{className:"site-description-item-profile-wrapper",children:[(0,n.jsxs)("p",{className:"site-description-item-profile-p-label",children:[e,":"]}),r]});var o=()=>{let[e,r]=(0,l.useState)(!1),t=()=>{r(!0);};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.List,{dataSource:[{id:1,name:"Lily"},{id:2,name:"Lily"}],bordered:!0,renderItem:e=>(0,n.jsx)(s.List.Item,{actions:[(0,n.jsx)("a",{onClick:t,children:"View Profile"},`a-${e.id}`)],children:(0,n.jsx)(s.List.Item.Meta,{avatar:(0,n.jsx)(s.Avatar,{src:"https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png"}),title:(0,n.jsx)("a",{href:"https://ant.design/index-cn",children:e.name}),description:"Progresser XTech"})},e.id)}),(0,n.jsxs)(s.Drawer,{width:640,placement:"right",closable:!1,onClose:()=>{r(!1);},open:e,children:[(0,n.jsx)("p",{className:"site-description-item-profile-p",style:{marginBottom:24},children:"User Profile"}),(0,n.jsx)("p",{className:"site-description-item-profile-p",children:"Personal"}),(0,n.jsxs)(s.Row,{children:[(0,n.jsx)(s.Col,{span:12,children:(0,n.jsx)(a,{title:"Full Name",content:"Lily"})}),(0,n.jsx)(s.Col,{span:12,children:(0,n.jsx)(a,{title:"Account",content:"AntDesign@example.com"})})]}),(0,n.jsxs)(s.Row,{children:[(0,n.jsx)(s.Col,{span:12,children:(0,n.jsx)(a,{title:"City",content:"HangZhou"})}),(0,n.jsx)(s.Col,{span:12,children:(0,n.jsx)(a,{title:"Country",content:"China\u{1F1E8}\u{1F1F3}"})})]}),(0,n.jsxs)(s.Row,{children:[(0,n.jsx)(s.Col,{span:12,children:(0,n.jsx)(a,{title:"Birthday",content:"February 2,1900"})}),(0,n.jsx)(s.Col,{span:12,children:(0,n.jsx)(a,{title:"Website",content:"-"})})]}),(0,n.jsx)(s.Row,{children:(0,n.jsx)(s.Col,{span:24,children:(0,n.jsx)(a,{title:"Message",content:"Make things as simple as possible but no simpler."})})}),(0,n.jsx)(s.Divider,{}),(0,n.jsx)("p",{className:"site-description-item-profile-p",children:"Company"}),(0,n.jsxs)(s.Row,{children:[(0,n.jsx)(s.Col,{span:12,children:(0,n.jsx)(a,{title:"Position",content:"Programmer"})}),(0,n.jsx)(s.Col,{span:12,children:(0,n.jsx)(a,{title:"Responsibilities",content:"Coding"})})]}),(0,n.jsxs)(s.Row,{children:[(0,n.jsx)(s.Col,{span:12,children:(0,n.jsx)(a,{title:"Department",content:"XTech"})}),(0,n.jsx)(s.Col,{span:12,children:(0,n.jsx)(a,{title:"Supervisor",content:(0,n.jsx)("a",{children:"Lin"})})})]}),(0,n.jsx)(s.Row,{children:(0,n.jsx)(s.Col,{span:24,children:(0,n.jsx)(a,{title:"Skills",content:"C / C + +, data structures, software engineering, operating systems, computer networks, databases, compiler theory, computer architecture, Microcomputer Principle and Interface Technology, Computer English, Java, ASP, etc."})})}),(0,n.jsx)(s.Divider,{}),(0,n.jsx)("p",{className:"site-description-item-profile-p",children:"Contacts"}),(0,n.jsxs)(s.Row,{children:[(0,n.jsx)(s.Col,{span:12,children:(0,n.jsx)(a,{title:"Email",content:"AntDesign@example.com"})}),(0,n.jsx)(s.Col,{span:12,children:(0,n.jsx)(a,{title:"Phone Number",content:"+86 181 0000 0000"})})]}),(0,n.jsx)(s.Row,{children:(0,n.jsx)(s.Col,{span:24,children:(0,n.jsx)(a,{title:"Github",content:(0,n.jsx)("a",{href:"http://github.com/ant-design/ant-design/",target:"_blank",rel:"noreferrer",children:"github.com/ant-design/ant-design/"})})})})]})]});};},"90b79cc5":function(e,r,t){"use strict";t.d(r,"__esModule",{value:!0}),t.d(r,"default",{enumerable:!0,get:function(){return d;}});var n=t("777fffbe"),l=t("f19d2b93");t("abeae473");var s=t("a9d1a279"),a=n._(t("f4312251")),o=n._(t("23546486"));let i={cn:{mask:"\u906E\u7F69\u5C42\u5143\u7D20",content:"Drawer \u5BB9\u5668\u5143\u7D20",header:"\u5934\u90E8\u5143\u7D20",body:"\u5185\u5BB9\u5143\u7D20",footer:"\u5E95\u90E8\u5143\u7D20"},en:{mask:"Mask element",content:"Drawer container element",header:"Header element",body:"Body element",footer:"Footer element"}};var d=()=>{let[e]=(0,o.default)(i);return(0,l.jsx)(a.default,{componentName:"Drawer",semantics:[{name:"mask",desc:e.mask,version:"5.13.0"},{name:"content",desc:e.content,version:"5.13.0"},{name:"header",desc:e.header,version:"5.13.0"},{name:"body",desc:e.body,version:"5.13.0"},{name:"footer",desc:e.footer,version:"5.13.0"}],height:300,children:(0,l.jsx)(s.Drawer,{title:"Title",placement:"right",footer:(0,l.jsx)(s.Typography.Link,{children:"Footer"}),closable:!1,open:!0,getContainer:!1,children:(0,l.jsx)("p",{children:"Some contents..."})})});};},a71d1aea:function(e,r,t){"use strict";t.d(r,"__esModule",{value:!0}),t.d(r,"default",{enumerable:!0,get:function(){return o;}});var n=t("777fffbe"),l=t("f19d2b93");t("cd88d0bb");var s=n._(t("5b220c3d")),a=t("a9d1a279"),o=()=>{let[e,r]=s.default.useState(!1),[t,n]=s.default.useState(!0),o=()=>{r(!0),n(!0),setTimeout(()=>{n(!1);},2e3);};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.Button,{type:"primary",onClick:o,children:"Open Drawer"}),(0,l.jsxs)(a.Drawer,{closable:!0,destroyOnHidden:!0,title:(0,l.jsx)("p",{children:"Loading Drawer"}),placement:"right",open:e,loading:t,onClose:()=>r(!1),children:[(0,l.jsx)(a.Button,{type:"primary",style:{marginBottom:16},onClick:o,children:"Reload"}),(0,l.jsx)("p",{children:"Some contents..."}),(0,l.jsx)("p",{children:"Some contents..."}),(0,l.jsx)("p",{children:"Some contents..."})]})]});};},aae23a20:function(e,r,t){"use strict";t.d(r,"__esModule",{value:!0}),t.d(r,"default",{enumerable:!0,get:function(){return i;}});var n=t("f19d2b93");t("2f978a38");var l=t("5b220c3d"),s=t("e22febe0"),a=t("a9d1a279");let{Option:o}=a.Select;var i=()=>{let[e,r]=(0,l.useState)(!1),t=()=>{r(!1);};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.Button,{type:"primary",onClick:()=>{r(!0);},icon:(0,n.jsx)(s.PlusOutlined,{}),children:"New account"}),(0,n.jsx)(a.Drawer,{title:"Create a new account",width:720,onClose:t,open:e,styles:{body:{paddingBottom:80}},extra:(0,n.jsxs)(a.Space,{children:[(0,n.jsx)(a.Button,{onClick:t,children:"Cancel"}),(0,n.jsx)(a.Button,{onClick:t,type:"primary",children:"Submit"})]}),children:(0,n.jsxs)(a.Form,{layout:"vertical",hideRequiredMark:!0,children:[(0,n.jsxs)(a.Row,{gutter:16,children:[(0,n.jsx)(a.Col,{span:12,children:(0,n.jsx)(a.Form.Item,{name:"name",label:"Name",rules:[{required:!0,message:"Please enter user name"}],children:(0,n.jsx)(a.Input,{placeholder:"Please enter user name"})})}),(0,n.jsx)(a.Col,{span:12,children:(0,n.jsx)(a.Form.Item,{name:"url",label:"Url",rules:[{required:!0,message:"Please enter url"}],children:(0,n.jsx)(a.Input,{style:{width:"100%"},addonBefore:"http://",addonAfter:".com",placeholder:"Please enter url"})})})]}),(0,n.jsxs)(a.Row,{gutter:16,children:[(0,n.jsx)(a.Col,{span:12,children:(0,n.jsx)(a.Form.Item,{name:"owner",label:"Owner",rules:[{required:!0,message:"Please select an owner"}],children:(0,n.jsxs)(a.Select,{placeholder:"Please select an owner",children:[(0,n.jsx)(o,{value:"xiao",children:"Xiaoxiao Fu"}),(0,n.jsx)(o,{value:"mao",children:"Maomao Zhou"})]})})}),(0,n.jsx)(a.Col,{span:12,children:(0,n.jsx)(a.Form.Item,{name:"type",label:"Type",rules:[{required:!0,message:"Please choose the type"}],children:(0,n.jsxs)(a.Select,{placeholder:"Please choose the type",children:[(0,n.jsx)(o,{value:"private",children:"Private"}),(0,n.jsx)(o,{value:"public",children:"Public"})]})})})]}),(0,n.jsxs)(a.Row,{gutter:16,children:[(0,n.jsx)(a.Col,{span:12,children:(0,n.jsx)(a.Form.Item,{name:"approver",label:"Approver",rules:[{required:!0,message:"Please choose the approver"}],children:(0,n.jsxs)(a.Select,{placeholder:"Please choose the approver",children:[(0,n.jsx)(o,{value:"jack",children:"Jack Ma"}),(0,n.jsx)(o,{value:"tom",children:"Tom Liu"})]})})}),(0,n.jsx)(a.Col,{span:12,children:(0,n.jsx)(a.Form.Item,{name:"dateTime",label:"DateTime",rules:[{required:!0,message:"Please choose the dateTime"}],children:(0,n.jsx)(a.DatePicker.RangePicker,{style:{width:"100%"},getPopupContainer:e=>e.parentElement})})})]}),(0,n.jsx)(a.Row,{gutter:16,children:(0,n.jsx)(a.Col,{span:24,children:(0,n.jsx)(a.Form.Item,{name:"description",label:"Description",rules:[{required:!0,message:"please enter url description"}],children:(0,n.jsx)(a.Input.TextArea,{rows:4,placeholder:"please enter url description"})})})})]})})]});};},af5f7645:function(e,r,t){"use strict";t.d(r,"__esModule",{value:!0}),t.d(r,"default",{enumerable:!0,get:function(){return a;}});var n=t("f19d2b93");t("7df65db8");var l=t("5b220c3d"),s=t("a9d1a279"),a=()=>{let[e,r]=(0,l.useState)(!1);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.Button,{type:"primary",onClick:()=>{r(!0);},children:"Open"}),(0,n.jsxs)(s.Drawer,{title:"Basic Drawer",closable:{"aria-label":"Close Button"},onClose:()=>{r(!1);},open:e,children:[(0,n.jsx)("p",{children:"Some contents..."}),(0,n.jsx)("p",{children:"Some contents..."}),(0,n.jsx)("p",{children:"Some contents..."})]})]});};},b70a9d00:function(e,r,t){"use strict";t.d(r,"__esModule",{value:!0}),t.d(r,"default",{enumerable:!0,get:function(){return a;}});var n=t("f19d2b93");t("f66e75ae");var l=t("5b220c3d"),s=t("a9d1a279"),a=()=>{let[e,r]=(0,l.useState)(!1),[t,a]=(0,l.useState)(),o=()=>{r(!1);};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.Space,{children:[(0,n.jsx)(s.Button,{type:"primary",onClick:()=>{a("default"),r(!0);},children:"Open Default Size (378px)"}),(0,n.jsx)(s.Button,{type:"primary",onClick:()=>{a("large"),r(!0);},children:"Open Large Size (736px)"})]}),(0,n.jsxs)(s.Drawer,{title:`${t} Drawer`,placement:"right",size:t,onClose:o,open:e,extra:(0,n.jsxs)(s.Space,{children:[(0,n.jsx)(s.Button,{onClick:o,children:"Cancel"}),(0,n.jsx)(s.Button,{type:"primary",onClick:o,children:"OK"})]}),children:[(0,n.jsx)("p",{children:"Some contents..."}),(0,n.jsx)("p",{children:"Some contents..."}),(0,n.jsx)("p",{children:"Some contents..."})]})]});};},b844df36:function(e,r,t){"use strict";t.d(r,"__esModule",{value:!0}),t.d(r,"default",{enumerable:!0,get:function(){return a;}});var n=t("f19d2b93");t("019e0ec3");var l=t("5b220c3d"),s=t("a9d1a279"),a=()=>{let[e,r]=(0,l.useState)(!1),[t,a]=(0,l.useState)(!1),[o,i]=(0,l.useState)(!1),[d,c]=(0,l.useState)(!1);return(0,n.jsxs)("div",{style:{position:"relative",zIndex:999999},children:[(0,n.jsxs)(s.Space,{children:[(0,n.jsx)(s.Switch,{checkedChildren:"Drawer",unCheckedChildren:"Drawer",checked:e,onChange:()=>r(!e)}),(0,n.jsx)(s.Switch,{checkedChildren:"Drawer2",unCheckedChildren:"Drawer2",checked:t,onChange:()=>a(!t)}),(0,n.jsx)(s.Switch,{checkedChildren:"Modal",unCheckedChildren:"Modal",checked:o,onChange:()=>i(!o)}),(0,n.jsx)(s.Switch,{checkedChildren:"Modal2",unCheckedChildren:"Modal2",checked:d,onChange:()=>c(!d)})]}),(0,n.jsxs)(s.Drawer,{title:"Drawer",open:e,children:["Some contents...",(0,n.jsx)(s.Drawer,{title:"Drawer Sub",open:e,children:"Sub contents..."})]}),(0,n.jsx)(s.Drawer,{title:"Drawer2",open:t,children:"Some contents..."}),(0,n.jsx)(s.Modal,{title:"Modal",open:o,children:"Some contents..."}),(0,n.jsx)(s.Modal,{title:"Modal2",open:d,children:"Some contents..."})]});};},fed5a0a8:function(e,r,t){"use strict";t.d(r,"__esModule",{value:!0}),t.d(r,"default",{enumerable:!0,get:function(){return a;}});var n=t("f19d2b93");t("6ed9092f");var l=t("5b220c3d"),s=t("a9d1a279"),a=()=>{let[e,r]=(0,l.useState)(!1),[t,a]=(0,l.useState)(!1);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.Button,{type:"primary",onClick:()=>{r(!0);},children:"Open drawer"}),(0,n.jsxs)(s.Drawer,{title:"Multi-level drawer",width:520,closable:!1,onClose:()=>{r(!1);},open:e,children:[(0,n.jsx)(s.Button,{type:"primary",onClick:()=>{a(!0);},children:"Two-level drawer"}),(0,n.jsx)(s.Drawer,{title:"Two-level Drawer",width:320,closable:!1,onClose:()=>{a(!1);},open:t,children:"This is two-level drawer"})]})]});};}}]); |