mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-12 04:13:13 +08:00
1 line
8.4 KiB
JavaScript
1 line
8.4 KiB
JavaScript
(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["4ef5149d"],{"0ab9ec37":function(e,t,n){"use strict";n.d(t,"__esModule",{value:!0}),n.d(t,"default",{enumerable:!0,get:function(){return r;}});var o=n("f19d2b93");n("f092456a");var i=n("a9d1a279");let{_InternalPanelDoNotUseOrYouWillBeFired:l}=i.Popconfirm;var r=()=>(0,o.jsxs)(i.ConfigProvider,{theme:{token:{wireframe:!0}},children:[(0,o.jsx)(l,{title:"Are you OK?"}),(0,o.jsx)(l,{title:"Are you OK?",placement:"bottomRight",style:{width:250}})]});},"56757bb9":function(e,t,n){"use strict";n.d(t,"__esModule",{value:!0}),n.d(t,"default",{enumerable:!0,get:function(){return c;}});var o=n("f19d2b93");n("ce5304a3");var i=n("a9d1a279");let l=e=>{console.log(e),i.message.success("Click on Yes");},r=e=>{console.log(e),i.message.error("Click on No");};var c=()=>(0,o.jsx)(i.Popconfirm,{title:"Delete the task",description:"Are you sure to delete this task?",onConfirm:l,onCancel:r,okText:"Yes",cancelText:"No",children:(0,o.jsx)(i.Button,{danger:!0,children:"Delete"})});},"64fd04c0":function(e,t,n){"use strict";n.d(t,"__esModule",{value:!0}),n.d(t,"default",{enumerable:!0,get:function(){return c;}});var o=n("f19d2b93");n("373e40d8");var i=n("a9d1a279");let l="Are you sure to delete this task?",r="Delete the task";var c=()=>(0,o.jsx)(i.ConfigProvider,{button:{style:{width:80,margin:4}},children:(0,o.jsxs)(i.Flex,{vertical:!0,justify:"center",align:"center",className:"demo",children:[(0,o.jsxs)(i.Flex,{justify:"center",align:"center",style:{whiteSpace:"nowrap"},children:[(0,o.jsx)(i.Popconfirm,{placement:"topLeft",title:l,description:r,okText:"Yes",cancelText:"No",children:(0,o.jsx)(i.Button,{children:"TL"})}),(0,o.jsx)(i.Popconfirm,{placement:"top",title:l,description:r,okText:"Yes",cancelText:"No",children:(0,o.jsx)(i.Button,{children:"Top"})}),(0,o.jsx)(i.Popconfirm,{placement:"topRight",title:l,description:r,okText:"Yes",cancelText:"No",children:(0,o.jsx)(i.Button,{children:"TR"})})]}),(0,o.jsxs)(i.Flex,{style:{width:432},justify:"space-between",align:"center",children:[(0,o.jsxs)(i.Flex,{align:"center",vertical:!0,children:[(0,o.jsx)(i.Popconfirm,{placement:"leftTop",title:l,description:r,okText:"Yes",cancelText:"No",children:(0,o.jsx)(i.Button,{children:"LT"})}),(0,o.jsx)(i.Popconfirm,{placement:"left",title:l,description:r,okText:"Yes",cancelText:"No",children:(0,o.jsx)(i.Button,{children:"Left"})}),(0,o.jsx)(i.Popconfirm,{placement:"leftBottom",title:l,description:r,okText:"Yes",cancelText:"No",children:(0,o.jsx)(i.Button,{children:"LB"})})]}),(0,o.jsxs)(i.Flex,{align:"center",vertical:!0,children:[(0,o.jsx)(i.Popconfirm,{placement:"rightTop",title:l,description:r,okText:"Yes",cancelText:"No",children:(0,o.jsx)(i.Button,{children:"RT"})}),(0,o.jsx)(i.Popconfirm,{placement:"right",title:l,description:r,okText:"Yes",cancelText:"No",children:(0,o.jsx)(i.Button,{children:"Right"})}),(0,o.jsx)(i.Popconfirm,{placement:"rightBottom",title:l,description:r,okText:"Yes",cancelText:"No",children:(0,o.jsx)(i.Button,{children:"RB"})})]})]}),(0,o.jsxs)(i.Flex,{justify:"center",align:"center",style:{whiteSpace:"nowrap"},children:[(0,o.jsx)(i.Popconfirm,{placement:"bottomLeft",title:l,description:r,okText:"Yes",cancelText:"No",children:(0,o.jsx)(i.Button,{children:"BL"})}),(0,o.jsx)(i.Popconfirm,{placement:"bottom",title:l,description:r,okText:"Yes",cancelText:"No",children:(0,o.jsx)(i.Button,{children:"Bottom"})}),(0,o.jsx)(i.Popconfirm,{placement:"bottomRight",title:l,description:r,okText:"Yes",cancelText:"No",children:(0,o.jsx)(i.Button,{children:"BR"})})]})]})});},"74e8b75c":function(e,t,n){"use strict";n.d(t,"__esModule",{value:!0}),n.d(t,"default",{enumerable:!0,get:function(){return r;}});var o=n("f19d2b93");n("4588c86c");var i=n("5b220c3d"),l=n("a9d1a279"),r=()=>{let[e,t]=(0,i.useState)(!1),[n,r]=(0,i.useState)(!1);return(0,o.jsx)(l.Popconfirm,{title:"Title",description:"Open Popconfirm with async logic",open:e,onConfirm:()=>{r(!0),setTimeout(()=>{t(!1),r(!1);},2e3);},okButtonProps:{loading:n},onCancel:()=>{console.log("Clicked cancel button"),t(!1);},children:(0,o.jsx)(l.Button,{type:"primary",onClick:()=>{t(!0);},children:"Open Popconfirm with async logic"})});};},"8a7090cb":function(e,t,n){"use strict";n.d(t,"__esModule",{value:!0}),n.d(t,"default",{enumerable:!0,get:function(){return l;}});var o=n("f19d2b93");n("c83002cc");var i=n("a9d1a279"),l=()=>(0,o.jsx)(i.Popconfirm,{title:"Delete the task",description:"Are you sure to delete this task?",okText:"Yes",cancelText:"No",children:(0,o.jsx)(i.Button,{danger:!0,children:"Delete"})});},"9bf093c3":function(e,t,n){"use strict";n.d(t,"__esModule",{value:!0}),n.d(t,"default",{enumerable:!0,get:function(){return r;}});var o=n("f19d2b93");n("a2ef1103");var i=n("e22febe0"),l=n("a9d1a279"),r=()=>(0,o.jsx)(l.Popconfirm,{title:"Delete the task",description:"Are you sure to delete this task?",icon:(0,o.jsx)(i.QuestionCircleOutlined,{style:{color:"red"}}),children:(0,o.jsx)(l.Button,{danger:!0,children:"Delete"})});},af112ede:function(e,t,n){"use strict";n.d(t,"__esModule",{value:!0}),n.d(t,"default",{enumerable:!0,get:function(){return s;}});var o=n("777fffbe"),i=n("f19d2b93");n("0aa94798");var l=o._(n("5b220c3d")),r=n("a9d1a279");let c={width:"300vw",height:"300vh",display:"flex",alignItems:"center",justifyContent:"center"};var s=()=>(l.default.useEffect(()=>{document.documentElement.scrollTop=document.documentElement.clientHeight,document.documentElement.scrollLeft=document.documentElement.clientWidth;},[]),(0,i.jsx)("div",{style:c,children:(0,i.jsx)(r.Popconfirm,{title:"Thanks for using antd. Have a nice day !",open:!0,children:(0,i.jsx)(r.Button,{type:"primary",children:"Scroll The Window"})})}));},b9fc596c:function(e,t,n){"use strict";n.d(t,"__esModule",{value:!0}),n.d(t,"default",{enumerable:!0,get:function(){return l;}});var o=n("f19d2b93");n("101070f0");let{_InternalPanelDoNotUseOrYouWillBeFired:i}=n("a9d1a279").Popconfirm;var l=()=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i,{title:"Are you OK?",description:"Does this look good?"}),(0,o.jsx)(i,{title:"Are you OK?",description:"Does this look good?",placement:"bottomRight",style:{width:250}}),(0,o.jsx)(i,{icon:null,title:"Are you OK?"}),(0,o.jsx)(i,{icon:null,title:"Are you OK?",description:"Does this look good?"})]});},c5c46c5f:function(e,t,n){"use strict";n.d(t,"__esModule",{value:!0}),n.d(t,"default",{enumerable:!0,get:function(){return u;}});var o=n("777fffbe"),i=n("f19d2b93");n("b4de0246");var l=o._(n("5b220c3d")),r=n("a9d1a279"),c=o._(n("f4312251")),s=o._(n("23546486"));let a={cn:{root:"\u6839\u5143\u7D20 (\u5305\u542B\u7BAD\u5934\u3001\u5185\u5BB9\u5143\u7D20)",body:"\u5185\u5BB9\u5143\u7D20"},en:{root:"Root element (including arrows, content elements)",body:"Body element"}},d=e=>{let t=l.default.useRef(null);return(0,i.jsx)("div",{ref:t,style:{position:"absolute",marginTop:60},children:(0,i.jsx)(r.Popconfirm,{title:"prompt text",open:!0,placement:"top",autoAdjustOverflow:!1,getPopupContainer:()=>t.current,...e})});};var u=()=>{let[e]=(0,s.default)(a);return(0,i.jsx)(c.default,{componentName:"Popconfirm",semantics:[{name:"root",desc:e.root,version:"5.23.0"},{name:"body",desc:e.body,version:"5.23.0"}],children:(0,i.jsx)(d,{})});};},ebf568ca:function(e,t,n){"use strict";n.d(t,"__esModule",{value:!0}),n.d(t,"default",{enumerable:!0,get:function(){return r;}});var o=n("f19d2b93");n("ea30428b");var i=n("5b220c3d"),l=n("a9d1a279"),r=()=>{let[e,t]=(0,i.useState)(!1),[n,r]=(0,i.useState)(!0),c=()=>{t(!1),l.message.success("Next step.");};return(0,o.jsxs)("div",{children:[(0,o.jsx)(l.Popconfirm,{title:"Delete the task",description:"Are you sure to delete this task?",open:e,onOpenChange:e=>{if(!e){t(e);return;}console.log(n),n?c():t(e);},onConfirm:c,onCancel:()=>{t(!1),l.message.error("Click on cancel.");},okText:"Yes",cancelText:"No",children:(0,o.jsx)(l.Button,{danger:!0,children:"Delete a task"})}),(0,o.jsx)("br",{}),(0,o.jsx)("br",{}),"Whether directly execute\uFF1A",(0,o.jsx)(l.Switch,{defaultChecked:!0,onChange:e=>{r(e);}})]});};},f1ba3367:function(e,t,n){"use strict";n.d(t,"__esModule",{value:!0}),n.d(t,"default",{enumerable:!0,get:function(){return l;}});var o=n("f19d2b93");n("9c3bf91d");var i=n("a9d1a279"),l=()=>(0,o.jsx)(i.Popconfirm,{title:"Title",description:"Open Popconfirm with Promise",onConfirm:()=>new Promise(e=>{setTimeout(()=>e(null),3e3);}),onOpenChange:()=>console.log("open change"),children:(0,o.jsx)(i.Button,{type:"primary",children:"Open Popconfirm with Promise"})});}}]); |