ant-design/29c98474-async.3aa2d477.js
2024-11-20 18:30:54 +00:00

1 line
7.6 KiB
JavaScript

(("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 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-custom-style":{component:d.default.memo(d.default.lazy(()=>Promise.all([a.ensure("common"),a.ensure("df508469")]).then(a.dr(n,a.bind(a,"befb48b8"))))),asset:{type:"BLOCK",id:"message-demo-custom-style",refAtomIds:["message"],dependencies:{"index.tsx":{type:"FILE",value:a("d03f40b5").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},antd:{type:"NPM",value:"5.22.2"}},entry:"index.tsx",title:"Customized style",description:"The style and className are available to customize Message."},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-update":{component:d.default.memo(d.default.lazy(()=>Promise.all([a.ensure("common"),a.ensure("df508469")]).then(a.dr(n,a.bind(a,"1d32525f"))))),asset:{type:"BLOCK",id:"message-demo-update",refAtomIds:["message"],dependencies:{"index.tsx":{type:"FILE",value:a("78bb70d6").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},antd:{type:"NPM",value:"5.22.2"}},entry:"index.tsx",title:"Update Message Content",description:"Update message content with unique key."},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-info":{component:d.default.memo(d.default.lazy(()=>Promise.all([a.ensure("common"),a.ensure("df508469")]).then(a.dr(n,a.bind(a,"946f2fc6"))))),asset:{type:"BLOCK",id:"message-demo-info",refAtomIds:["message"],dependencies:{"index.tsx":{type:"FILE",value:a("07efc0ec").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},antd:{type:"NPM",value:"5.22.2"}},entry:"index.tsx",title:"Static method (deprecated)",description:"Static methods cannot consume Context. Please use hooks first."},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-render-panel":{component:d.default.memo(d.default.lazy(()=>Promise.all([a.ensure("common"),a.ensure("df508469")]).then(a.dr(n,a.bind(a,"5195cc89"))))),asset:{type:"BLOCK",id:"message-demo-render-panel",refAtomIds:["message"],dependencies:{"index.tsx":{type:"FILE",value:a("3ad69296").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},antd:{type:"NPM",value:"5.22.2"}},entry:"index.tsx",title:"_InternalPanelDoNotUseOrYouWillBeFired",description:"Debug usage. Do not use in your production."},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-component-token":{component:d.default.memo(d.default.lazy(()=>Promise.all([a.ensure("common"),a.ensure("df508469")]).then(a.dr(n,a.bind(a,"6cf25a29"))))),asset:{type:"BLOCK",id:"message-demo-component-token",refAtomIds:["message"],dependencies:{"index.tsx":{type:"FILE",value:a("ab49c621").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},antd:{type:"NPM",value:"5.22.2"}},entry:"index.tsx",title:"Component Token",description:"Component Token Debug"},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)}}};}}]);