mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
1 line
13 KiB
JavaScript
1 line
13 KiB
JavaScript
(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["e525dc9b"],{e525dc9b: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 m;}});var d=a("852bbaa9"),s=d._(a("5b220c3d"));a("6c8ca525");var o=d._(a("e22febe0")),r=d._(a("a9d1a279")),i=d._(a("23546486")),l=d._(a("1164364c")),u=d._(a("9c86e52a")),c=d._(a("3835a2b7")),b=d._(a("600aabe0"));let m={"badge-demo-basic":{component:s.default.memo(s.default.lazy(()=>Promise.all([a.ensure("common"),a.ensure("fc651ead")]).then(a.dr(n,a.bind(a,"995c1745"))))),asset:{type:"BLOCK",id:"badge-demo-basic",refAtomIds:["badge"],dependencies:{"index.tsx":{type:"FILE",value:a("442e37f6").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},"@ant-design/icons":{type:"NPM",value:"5.5.1"},antd:{type:"NPM",value:"5.22.2"}},entry:"index.tsx",title:"Basic",description:"Simplest Usage. Badge will be hidden when count is 0, but we can use showZero to show it."},context:{react:s,"@ant-design/icons":o,antd:r},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)}},"badge-demo-no-wrapper":{component:s.default.memo(s.default.lazy(()=>Promise.all([a.ensure("common"),a.ensure("fc651ead")]).then(a.dr(n,a.bind(a,"f7c57507"))))),asset:{type:"BLOCK",id:"badge-demo-no-wrapper",refAtomIds:["badge"],dependencies:{"index.tsx":{type:"FILE",value:a("3a1b1b85").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},"@ant-design/icons":{type:"NPM",value:"5.5.1"},antd:{type:"NPM",value:"5.22.2"}},entry:"index.tsx",title:"Standalone",description:"Used in standalone when children is empty."},context:{react:s,"@ant-design/icons":o,antd:r},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)}},"badge-demo-overflow":{component:s.default.memo(s.default.lazy(()=>Promise.all([a.ensure("common"),a.ensure("fc651ead")]).then(a.dr(n,a.bind(a,"bce60f4b"))))),asset:{type:"BLOCK",id:"badge-demo-overflow",refAtomIds:["badge"],dependencies:{"index.tsx":{type:"FILE",value:a("7c350a51").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},antd:{type:"NPM",value:"5.22.2"}},entry:"index.tsx",title:"Overflow Count",description:"${overflowCount}+ is displayed when count is larger than overflowCount. The default value of overflowCount is 99."},context:{react:s,antd:r},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)}},"badge-demo-dot":{component:s.default.memo(s.default.lazy(()=>Promise.all([a.ensure("common"),a.ensure("fc651ead")]).then(a.dr(n,a.bind(a,"643adadd"))))),asset:{type:"BLOCK",id:"badge-demo-dot",refAtomIds:["badge"],dependencies:{"index.tsx":{type:"FILE",value:a("9afa3ca0").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},"@ant-design/icons":{type:"NPM",value:"5.5.1"},antd:{type:"NPM",value:"5.22.2"}},entry:"index.tsx",title:"Red badge",description:"This will simply display a red badge, without a specific count. If count equals 0, it won't display the dot."},context:{react:s,"@ant-design/icons":o,antd:r},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)}},"badge-demo-change":{component:s.default.memo(s.default.lazy(()=>Promise.all([a.ensure("common"),a.ensure("fc651ead")]).then(a.dr(n,a.bind(a,"0e6613e9"))))),asset:{type:"BLOCK",id:"badge-demo-change",refAtomIds:["badge"],dependencies:{"index.tsx":{type:"FILE",value:a("32a0f233").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},"@ant-design/icons":{type:"NPM",value:"5.5.1"},antd:{type:"NPM",value:"5.22.2"}},entry:"index.tsx",title:"Dynamic",description:"The count will be animated as it changes."},context:{react:s,"@ant-design/icons":o,antd:r},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)}},"badge-demo-link":{component:s.default.memo(s.default.lazy(()=>Promise.all([a.ensure("common"),a.ensure("fc651ead")]).then(a.dr(n,a.bind(a,"23a7e102"))))),asset:{type:"BLOCK",id:"badge-demo-link",refAtomIds:["badge"],dependencies:{"index.tsx":{type:"FILE",value:a("537f5e32").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},antd:{type:"NPM",value:"5.22.2"}},entry:"index.tsx",title:"Clickable",description:"The badge can be wrapped with a tag to make it linkable."},context:{react:s,antd:r},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)}},"badge-demo-offset":{component:s.default.memo(s.default.lazy(()=>Promise.all([a.ensure("common"),a.ensure("fc651ead")]).then(a.dr(n,a.bind(a,"01a21bff"))))),asset:{type:"BLOCK",id:"badge-demo-offset",refAtomIds:["badge"],dependencies:{"index.tsx":{type:"FILE",value:a("998ad620").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},antd:{type:"NPM",value:"5.22.2"}},entry:"index.tsx",title:"Offset",description:"Set offset of the badge dot, the format is [left, top], which represents the offset of the status dot from the left and top of the default position."},context:{react:s,antd:r},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)}},"badge-demo-size":{component:s.default.memo(s.default.lazy(()=>Promise.all([a.ensure("common"),a.ensure("fc651ead")]).then(a.dr(n,a.bind(a,"bdfea811"))))),asset:{type:"BLOCK",id:"badge-demo-size",refAtomIds:["badge"],dependencies:{"index.tsx":{type:"FILE",value:a("109558d4").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},antd:{type:"NPM",value:"5.22.2"}},entry:"index.tsx",title:"Size",description:"Set size of numeral Badge."},context:{react:s,antd:r},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)}},"badge-demo-status":{component:s.default.memo(s.default.lazy(()=>Promise.all([a.ensure("common"),a.ensure("fc651ead")]).then(a.dr(n,a.bind(a,"5ddb14b9"))))),asset:{type:"BLOCK",id:"badge-demo-status",refAtomIds:["badge"],dependencies:{"index.tsx":{type:"FILE",value:a("8c703eb8").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},antd:{type:"NPM",value:"5.22.2"}},entry:"index.tsx",title:"Status",description:"Standalone badge with status."},context:{react:s,antd:r},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)}},"badge-demo-colorful":{component:s.default.memo(s.default.lazy(()=>Promise.all([a.ensure("common"),a.ensure("fc651ead")]).then(a.dr(n,a.bind(a,"92954dfb"))))),asset:{type:"BLOCK",id:"badge-demo-colorful",refAtomIds:["badge"],dependencies:{"index.tsx":{type:"FILE",value:a("ba45390e").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},antd:{type:"NPM",value:"5.22.2"}},entry:"index.tsx",title:"Colorful Badge",description:"We preset a series of colorful Badge styles for use in different situations. You can also set it to a hex color string for custom color."},context:{react:s,antd:r},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)}},"badge-demo-ribbon":{component:s.default.memo(s.default.lazy(()=>Promise.all([a.ensure("common"),a.ensure("fc651ead")]).then(a.dr(n,a.bind(a,"b89cba8a"))))),asset:{type:"BLOCK",id:"badge-demo-ribbon",refAtomIds:["badge"],dependencies:{"index.tsx":{type:"FILE",value:a("744c418e").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},antd:{type:"NPM",value:"5.22.2"}},entry:"index.tsx",title:"Ribbon",description:"Use ribbon badge."},context:{react:s,antd:r},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)}},"badge-demo-ribbon-debug":{component:s.default.memo(s.default.lazy(()=>Promise.all([a.ensure("common"),a.ensure("fc651ead")]).then(a.dr(n,a.bind(a,"56158cdc"))))),asset:{type:"BLOCK",id:"badge-demo-ribbon-debug",refAtomIds:["badge"],dependencies:{"index.tsx":{type:"FILE",value:a("5149e5f4").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},antd:{type:"NPM",value:"5.22.2"}},entry:"index.tsx",title:"Ribbon Debug",description:"Buggy!"},context:{react:s,antd:r},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)}},"badge-demo-mix":{component:s.default.memo(s.default.lazy(()=>Promise.all([a.ensure("common"),a.ensure("fc651ead")]).then(a.dr(n,a.bind(a,"e410d597"))))),asset:{type:"BLOCK",id:"badge-demo-mix",refAtomIds:["badge"],dependencies:{"index.tsx":{type:"FILE",value:a("b1528252").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},antd:{type:"NPM",value:"5.22.2"}},entry:"index.tsx",title:"Mixed usage",description:"Using count/dot with custom status/color."},context:{react:s,antd:r},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)}},"badge-demo-title":{component:s.default.memo(s.default.lazy(()=>Promise.all([a.ensure("common"),a.ensure("fc651ead")]).then(a.dr(n,a.bind(a,"45e92bbf"))))),asset:{type:"BLOCK",id:"badge-demo-title",refAtomIds:["badge"],dependencies:{"index.tsx":{type:"FILE",value:a("e246be8b").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},antd:{type:"NPM",value:"5.22.2"}},entry:"index.tsx",title:"Title",description:"The badge will display title when hovered over, instead of count."},context:{react:s,antd:r},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)}},"badge-demo-colorful-with-count-debug":{component:s.default.memo(s.default.lazy(()=>Promise.all([a.ensure("common"),a.ensure("fc651ead")]).then(a.dr(n,a.bind(a,"8bace5cc"))))),asset:{type:"BLOCK",id:"badge-demo-colorful-with-count-debug",refAtomIds:["badge"],dependencies:{"index.tsx":{type:"FILE",value:a("6bfa51a6").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},antd:{type:"NPM",value:"5.22.2"}},entry:"index.tsx",title:"Colorful Badge support count Debug",description:"support count when use colorful badge"},context:{react:s,antd:r},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)}},"badge-demo-component-token":{component:s.default.memo(s.default.lazy(()=>Promise.all([a.ensure("common"),a.ensure("fc651ead")]).then(a.dr(n,a.bind(a,"a69582bb"))))),asset:{type:"BLOCK",id:"badge-demo-component-token",refAtomIds:["badge"],dependencies:{"index.tsx":{type:"FILE",value:a("9240dee0").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},"@ant-design/icons":{type:"NPM",value:"5.5.1"},antd:{type:"NPM",value:"5.22.2"}},entry:"index.tsx",title:"Component Token",description:"Component Token Debug"},context:{react:s,"@ant-design/icons":o,antd:r},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)}},"badge-demo-_semantic":{component:s.default.memo(s.default.lazy(()=>Promise.all([a.ensure("common"),a.ensure("fc651ead")]).then(a.dr(n,a.bind(a,"d65dbf6b"))))),asset:{type:"BLOCK",id:"badge-demo-_semantic",refAtomIds:["badge"],dependencies:{"index.tsx":{type:"FILE",value:a("3065f103").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},antd:{type:"NPM",value:"5.22.2"},"../../../.dumi/hooks/useLocale.ts":{type:"FILE",value:a("80fe647a").default},"../../../.dumi/components/SemanticPreview.tsx":{type:"FILE",value:a("57938cf4").default},"antd-style":{type:"NPM",value:"3.7.1"},classnames:{type:"NPM",value:"2.5.1"}},entry:"index.tsx"},context:{"../../../.dumi/hooks/useLocale.ts":i,"../../../.dumi/components/SemanticPreview.tsx":l,react:s,antd:r,"/home/runner/work/ant-design/ant-design/.dumi/hooks/useLocale.ts":i,"/home/runner/work/ant-design/ant-design/.dumi/components/SemanticPreview.tsx":l,dumi:u,"antd-style":c,classnames:b},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)}}};}}]); |