mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
1 line
17 KiB
JavaScript
1 line
17 KiB
JavaScript
|
(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["5d3cbfba"],{"15047c9c":function(e,n,t){"use strict";t.d(n,"__esModule",{value:!0}),t.d(n,"default",{enumerable:!0,get:function(){return i;}});var r=t("f19d2b93");t("0fef50f8");var l=t("5b220c3d"),o=t("e22febe0"),a=t("a9d1a279");let d=[{label:"Submit and continue",key:"1"}];var i=()=>{let[e,n]=(0,l.useState)([]),t=e=>{n(n=>{let t=[...n];return t[e]=!0,t;}),setTimeout(()=>{n(n=>{let t=[...n];return t[e]=!1,t;});},6e3);};return(0,r.jsxs)(a.Space,{direction:"vertical",children:[(0,r.jsx)(a.Dropdown.Button,{type:"primary",loading:!0,menu:{items:d},children:"Submit"}),(0,r.jsx)(a.Dropdown.Button,{type:"primary",size:"small",loading:!0,menu:{items:d},children:"Submit"}),(0,r.jsx)(a.Dropdown.Button,{type:"primary",loading:e[0],menu:{items:d},onClick:()=>t(0),children:"Submit"}),(0,r.jsx)(a.Dropdown.Button,{icon:(0,r.jsx)(o.DownOutlined,{}),loading:e[1],menu:{items:d},onClick:()=>t(1),children:"Submit"})]});};},"348fe64f":function(e,n,t){"use strict";t.d(n,"__esModule",{value:!0}),t.d(n,"default",{enumerable:!0,get:function(){return a;}});var r=t("f19d2b93");t("6fd6fca1");var l=t("a9d1a279");let o=[{key:"1",label:(0,r.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.antgroup.com",children:"1st menu item"})},{key:"2",label:(0,r.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.aliyun.com",children:"2nd menu item"})},{key:"3",label:(0,r.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.luohanacademy.com",children:"3rd menu item"})}];var a=()=>(0,r.jsxs)(l.Space,{direction:"vertical",children:[(0,r.jsxs)(l.Space,{wrap:!0,children:[(0,r.jsx)(l.Dropdown,{menu:{items:o},placement:"bottomLeft",arrow:!0,children:(0,r.jsx)(l.Button,{children:"bottomLeft"})}),(0,r.jsx)(l.Dropdown,{menu:{items:o},placement:"bottom",arrow:!0,children:(0,r.jsx)(l.Button,{children:"bottom"})}),(0,r.jsx)(l.Dropdown,{menu:{items:o},placement:"bottomRight",arrow:!0,children:(0,r.jsx)(l.Button,{children:"bottomRight"})})]}),(0,r.jsxs)(l.Space,{wrap:!0,children:[(0,r.jsx)(l.Dropdown,{menu:{items:o},placement:"topLeft",arrow:!0,children:(0,r.jsx)(l.Button,{children:"topLeft"})}),(0,r.jsx)(l.Dropdown,{menu:{items:o},placement:"top",arrow:!0,children:(0,r.jsx)(l.Button,{children:"top"})}),(0,r.jsx)(l.Dropdown,{menu:{items:o},placement:"topRight",arrow:!0,children:(0,r.jsx)(l.Button,{children:"topRight"})})]})]});},"3e9387a8":function(e,n,t){"use strict";t.d(n,"__esModule",{value:!0}),t.d(n,"default",{enumerable:!0,get:function(){return a;}});var r=t("f19d2b93");t("079c47f2");var l=t("a9d1a279");let o=[{label:"1st menu item",key:"1"},{label:"2nd menu item",key:"2"},{label:"3rd menu item",key:"3"}];var a=()=>{let{token:{colorBgLayout:e,colorTextTertiary:n}}=l.theme.useToken();return(0,r.jsx)(l.Dropdown,{menu:{items:o},trigger:["contextMenu"],children:(0,r.jsx)("div",{style:{color:n,background:e,height:200,textAlign:"center",lineHeight:"200px"},children:"Right Click on here"})});};},"518d5f39":function(e,n,t){"use strict";t.d(n,"__esModule",{value:!0}),t.d(n,"default",{enumerable:!0,get:function(){return d;}});var r=t("f19d2b93");t("1d907343");var l=t("e22febe0"),o=t("a9d1a279");let a=[{key:"1",label:(0,r.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.antgroup.com",children:"1st menu item"})},{key:"2",label:(0,r.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.aliyun.com",children:"2nd menu item (disabled)"}),icon:(0,r.jsx)(l.SmileOutlined,{}),disabled:!0},{key:"3",label:(0,r.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.luohanacademy.com",children:"3rd menu item (disabled)"}),disabled:!0},{key:"4",danger:!0,label:"a danger item"}];var d=()=>(0,r.jsx)(o.Dropdown,{menu:{items:a},children:(0,r.jsx)("a",{onClick:e=>e.preventDefault(),children:(0,r.jsxs)(o.Space,{children:["Hover me",(0,r.jsx)(l.DownOutlined,{})]})})});},"6d894512":function(e,n,t){"use strict";t.d(n,"__esModule",{value:!0}),t.d(n,"default",{
|