ant-design/29c98474-async.3aa2d477.js

1 line
7.6 KiB
JavaScript
Raw Permalink Normal View History

(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["29c98474"],{"29c98474":function(e,t,a){"use strict";var n=a("852bbaa9")._;a.d(t,"__esModule",{value:!0}),a.d(t,"demos",{enumerable:!0,get:function(){return r;}});var s=a("852bbaa9"),d=s._(a("5b220c3d"));a("183953a3");var o=s._(a("a9d1a279"));let r={"message-demo-hooks":{component:d.default.memo(d.default.lazy(()=>Promise.all([a.ensure("common"),a.ensure("df508469")]).then(a.dr(n,a.bind(a,"5b9c8f1a"))))),asset:{type:"BLOCK",id:"message-demo-hooks",refAtomIds:["message"],dependencies:{"index.tsx":{type:"FILE",value:a("864e2da2").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},antd:{type:"NPM",value:"5.22.2"}},entry:"index.tsx",title:"Hooks usage (recommended)",description:"Use message.useMessage to get contextHolder with context accessible issue. Please note that, we recommend to use top level registration instead of message static method, because static method cannot consume context, and ConfigProvider data will not work."},context:{react:d,antd:o},renderOpts:{compile:async(...e)=>(await Promise.all([a.ensure("vendors_1"),a.ensure("vendors_0"),a.ensure("d2b37e0b")]).then(a.dr(n,a.bind(a,"d2b37e0b")))).default(...e)}},"message-demo-other":{component:d.default.memo(d.default.lazy(()=>Promise.all([a.ensure("common"),a.ensure("df508469")]).then(a.dr(n,a.bind(a,"501d3d80"))))),asset:{type:"BLOCK",id:"message-demo-other",refAtomIds:["message"],dependencies:{"index.tsx":{type:"FILE",value:a("9cb53b4f").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},antd:{type:"NPM",value:"5.22.2"}},entry:"index.tsx",title:"Other types of message",description:"Messages of success, error and warning types."},context:{react:d,antd:o},renderOpts:{compile:async(...e)=>(await Promise.all([a.ensure("vendors_1"),a.ensure("vendors_0"),a.ensure("d2b37e0b")]).then(a.dr(n,a.bind(a,"d2b37e0b")))).default(...e)}},"message-demo-duration":{component:d.default.memo(d.default.lazy(()=>Promise.all([a.ensure("common"),a.ensure("df508469")]).then(a.dr(n,a.bind(a,"3a8ff795"))))),asset:{type:"BLOCK",id:"message-demo-duration",refAtomIds:["message"],dependencies:{"index.tsx":{type:"FILE",value:a("ddd2ff7d").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},antd:{type:"NPM",value:"5.22.2"}},entry:"index.tsx",title:"Customize duration",description:"Customize message display duration from default 3s to 10s."},context:{react:d,antd:o},renderOpts:{compile:async(...e)=>(await Promise.all([a.ensure("vendors_1"),a.ensure("vendors_0"),a.ensure("d2b37e0b")]).then(a.dr(n,a.bind(a,"d2b37e0b")))).default(...e)}},"message-demo-loading":{component:d.default.memo(d.default.lazy(()=>Promise.all([a.ensure("common"),a.ensure("df508469")]).then(a.dr(n,a.bind(a,"591a2903"))))),asset:{type:"BLOCK",id:"message-demo-loading",refAtomIds:["message"],dependencies:{"index.tsx":{type:"FILE",value:a("257c7f57").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},antd:{type:"NPM",value:"5.22.2"}},entry:"index.tsx",title:"Message with loading indicator",description:"Display a global loading indicator, which is dismissed by itself asynchronously."},context:{react:d,antd:o},renderOpts:{compile:async(...e)=>(await Promise.all([a.ensure("vendors_1"),a.ensure("vendors_0"),a.ensure("d2b37e0b")]).then(a.dr(n,a.bind(a,"d2b37e0b")))).default(...e)}},"message-demo-thenable":{component:d.default.memo(d.default.lazy(()=>Promise.all([a.ensure("common"),a.ensure("df508469")]).then(a.dr(n,a.bind(a,"d1e779d0"))))),asset:{type:"BLOCK",id:"message-demo-thenable",refAtomIds:["message"],dependencies:{"index.tsx":{type:"FILE",value:a("9e5252fe").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},antd:{type:"NPM",value:"5.22.2"}},entry:"index.tsx",title:"Promise interface",description:"message provides a promise interface for onClose. The above example will display a new message when the old message is about to close."},context:{react:d,antd:o},renderOpts:{compile:async(...e)=>(await Pr