ant-design/4ef5149d-async.dd9a10df.js
2024-11-20 18:30:54 +00:00

1 line
7.5 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 c;}});var o=n("f19d2b93");n("f092456a");var i=n("a9d1a279");let{_InternalPanelDoNotUseOrYouWillBeFired:l}=i.Popconfirm;var c=()=>(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 r;}});var o=n("f19d2b93");n("ce5304a3");var i=n("a9d1a279");let l=e=>{console.log(e),i.message.success("Click on Yes");},c=e=>{console.log(e),i.message.error("Click on No");};var r=()=>(0,o.jsx)(i.Popconfirm,{title:"Delete the task",description:"Are you sure to delete this task?",onConfirm:l,onCancel:c,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 r;}});var o=n("f19d2b93");n("373e40d8");var i=n("a9d1a279");let l="Are you sure to delete this task?",c="Delete the task";var r=()=>(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:c,okText:"Yes",cancelText:"No",children:(0,o.jsx)(i.Button,{children:"TL"})}),(0,o.jsx)(i.Popconfirm,{placement:"top",title:l,description:c,okText:"Yes",cancelText:"No",children:(0,o.jsx)(i.Button,{children:"Top"})}),(0,o.jsx)(i.Popconfirm,{placement:"topRight",title:l,description:c,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:c,okText:"Yes",cancelText:"No",children:(0,o.jsx)(i.Button,{children:"LT"})}),(0,o.jsx)(i.Popconfirm,{placement:"left",title:l,description:c,okText:"Yes",cancelText:"No",children:(0,o.jsx)(i.Button,{children:"Left"})}),(0,o.jsx)(i.Popconfirm,{placement:"leftBottom",title:l,description:c,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:c,okText:"Yes",cancelText:"No",children:(0,o.jsx)(i.Button,{children:"RT"})}),(0,o.jsx)(i.Popconfirm,{placement:"right",title:l,description:c,okText:"Yes",cancelText:"No",children:(0,o.jsx)(i.Button,{children:"Right"})}),(0,o.jsx)(i.Popconfirm,{placement:"rightBottom",title:l,description:c,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:c,okText:"Yes",cancelText:"No",children:(0,o.jsx)(i.Button,{children:"BL"})}),(0,o.jsx)(i.Popconfirm,{placement:"bottom",title:l,description:c,okText:"Yes",cancelText:"No",children:(0,o.jsx)(i.Button,{children:"Bottom"})}),(0,o.jsx)(i.Popconfirm,{placement:"bottomRight",title:l,description:c,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 c;}});var o=n("f19d2b93");n("4588c86c");var i=n("5b220c3d"),l=n("a9d1a279"),c=()=>{let[e,t]=(0,i.useState)(!1),[n,c]=(0,i.useState)(!1);return(0,o.jsx)(l.Popconfirm,{title:"Title",description:"Open Popconfirm with async logic",open:e,onConfirm:()=>{c(!0),setTimeout(()=>{t(!1),c(!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 c;}});var o=n("f19d2b93");n("a2ef1103");var i=n("e22febe0"),l=n("a9d1a279"),c=()=>(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")),c=n("a9d1a279");let r={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:r,children:(0,i.jsx)(c.Popconfirm,{title:"Thanks for using antd. Have a nice day !",open:!0,children:(0,i.jsx)(c.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?"})]});},ebf568ca: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("ea30428b");var i=n("5b220c3d"),l=n("a9d1a279"),c=()=>{let[e,t]=(0,i.useState)(!1),[n,c]=(0,i.useState)(!0),r=()=>{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?r():t(e);},onConfirm:r,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=>{c(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"})});}}]);