mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 12:39:49 +08:00
1 line
1.6 KiB
JavaScript
1 line
1.6 KiB
JavaScript
(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["91849098"],{"9545f711":function(e,n,t){"use strict";t.d(n,"__esModule",{value:!0}),t.d(n,"default",{enumerable:!0,get:function(){return o;}});var s=t("f19d2b93");t("8a146945");var i=t("a9d1a279");let a=()=>{let{message:e,notification:n}=i.App.useApp();return(0,s.jsxs)(i.Space,{wrap:!0,children:[(0,s.jsx)(i.Button,{type:"primary",onClick:()=>{e.success("Success!");},children:"Message for only one"}),(0,s.jsx)(i.Button,{type:"primary",onClick:()=>{n.info({message:"Notification",description:"Hello, Ant Design!!"});},children:"Notification for bottomLeft"})]});};var o=()=>(0,s.jsx)(i.App,{message:{maxCount:1},notification:{placement:"bottomLeft"},children:(0,s.jsx)(a,{})});},ced21a2a:function(e,n,t){"use strict";t.d(n,"__esModule",{value:!0}),t.d(n,"default",{enumerable:!0,get:function(){return o;}});var s=t("f19d2b93");t("54750542");var i=t("a9d1a279");let a=()=>{let{message:e,modal:n,notification:t}=i.App.useApp();return(0,s.jsxs)(i.Space,{wrap:!0,children:[(0,s.jsx)(i.Button,{type:"primary",onClick:()=>{e.success("Success!");},children:"Open message"}),(0,s.jsx)(i.Button,{type:"primary",onClick:()=>{n.warning({title:"This is a warning message",content:"some messages...some messages..."});},children:"Open modal"}),(0,s.jsx)(i.Button,{type:"primary",onClick:()=>{t.info({message:"Notification topLeft",description:"Hello, Ant Design!!",placement:"topLeft"});},children:"Open notification"})]});};var o=()=>(0,s.jsx)(i.App,{children:(0,s.jsx)(a,{})});}}]); |