mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-23 18:50:06 +08:00
1 line
15 KiB
JavaScript
1 line
15 KiB
JavaScript
(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["c7743eb7"],{c7743eb7:function(e,t,n){"use strict";var a=n("852bbaa9")._;n.d(t,"__esModule",{value:!0}),n.d(t,"demos",{enumerable:!0,get:function(){return m;}});var d=n("852bbaa9"),o=d._(n("5b220c3d"));n("13df8842");var s=d._(n("a9d1a279")),r=d._(n("3835a2b7")),i=d._(n("e22febe0")),u=d._(n("1164364c")),l=d._(n("23546486")),c=d._(n("9c86e52a")),b=d._(n("600aabe0"));let m={"button-demo-basic":{component:o.default.memo(o.default.lazy(()=>Promise.all([n.ensure("common"),n.ensure("0593ab1f")]).then(n.dr(a,n.bind(n,"c84bfa8a"))))),asset:{type:"BLOCK",id:"button-demo-basic",refAtomIds:["button"],dependencies:{"index.tsx":{type:"FILE",value:n("33da27d4").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},antd:{type:"NPM",value:"5.22.2"}},entry:"index.tsx",title:"Syntactic sugar",description:"Through the type syntactic sugar, use the preset button styles: primary buttons, default buttons, dashed buttons, text buttons, and link buttons."},context:{react:o,antd:s},renderOpts:{compile:async(...e)=>(await Promise.all([n.ensure("vendors_1"),n.ensure("vendors_0"),n.ensure("d2b37e0b")]).then(n.dr(a,n.bind(n,"d2b37e0b")))).default(...e)}},"button-demo-color-variant":{component:o.default.memo(o.default.lazy(()=>Promise.all([n.ensure("common"),n.ensure("0593ab1f")]).then(n.dr(a,n.bind(n,"94909507"))))),asset:{type:"BLOCK",id:"button-demo-color-variant",refAtomIds:["button"],dependencies:{"index.tsx":{type:"FILE",value:n("a8f9897e").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},antd:{type:"NPM",value:"5.22.2"},"antd-style":{type:"NPM",value:"3.7.1"}},entry:"index.tsx",title:"Color & Variant",description:"You can set the color and variant attributes at the same time can derive more variant buttons."},context:{react:o,antd:s,"antd-style":r},renderOpts:{compile:async(...e)=>(await Promise.all([n.ensure("vendors_1"),n.ensure("vendors_0"),n.ensure("d2b37e0b")]).then(n.dr(a,n.bind(n,"d2b37e0b")))).default(...e)}},"button-demo-debug-color-variant":{component:o.default.memo(o.default.lazy(()=>Promise.all([n.ensure("common"),n.ensure("0593ab1f")]).then(n.dr(a,n.bind(n,"a8cb4feb"))))),asset:{type:"BLOCK",id:"button-demo-debug-color-variant",refAtomIds:["button"],dependencies:{"index.tsx":{type:"FILE",value:n("6ce6b9ac").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},antd:{type:"NPM",value:"5.22.2"},"antd-style":{type:"NPM",value:"3.7.1"}},entry:"index.tsx",title:"Debug Color & Variant",description:"Debug usage"},context:{react:o,antd:s,"antd-style":r},renderOpts:{compile:async(...e)=>(await Promise.all([n.ensure("vendors_1"),n.ensure("vendors_0"),n.ensure("d2b37e0b")]).then(n.dr(a,n.bind(n,"d2b37e0b")))).default(...e)}},"button-demo-icon":{component:o.default.memo(o.default.lazy(()=>Promise.all([n.ensure("common"),n.ensure("0593ab1f")]).then(n.dr(a,n.bind(n,"ea64f6c0"))))),asset:{type:"BLOCK",id:"button-demo-icon",refAtomIds:["button"],dependencies:{"index.tsx":{type:"FILE",value:n("408c6134").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:"Icon",description:"You can add an icon using the icon property."},context:{react:o,"@ant-design/icons":i,antd:s},renderOpts:{compile:async(...e)=>(await Promise.all([n.ensure("vendors_1"),n.ensure("vendors_0"),n.ensure("d2b37e0b")]).then(n.dr(a,n.bind(n,"d2b37e0b")))).default(...e)}},"button-demo-icon-position":{component:o.default.memo(o.default.lazy(()=>Promise.all([n.ensure("common"),n.ensure("0593ab1f")]).then(n.dr(a,n.bind(n,"633a6f0b"))))),asset:{type:"BLOCK",id:"button-demo-icon-position",refAtomIds:["button"],dependencies:{"index.tsx":{type:"FILE",value:n("e224ebfa").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:"Icon Position",description:"You can set the position of a button's icon by setting the iconPosition to start or end respectively."},context:{react:o,"@ant-design/icons":i,antd:s},renderOpts:{compile:async(...e)=>(await Promise.all([n.ensure("vendors_1"),n.ensure("vendors_0"),n.ensure("d2b37e0b")]).then(n.dr(a,n.bind(n,"d2b37e0b")))).default(...e)}},"button-demo-debug-icon":{component:o.default.memo(o.default.lazy(()=>Promise.all([n.ensure("common"),n.ensure("0593ab1f")]).then(n.dr(a,n.bind(n,"076ee157"))))),asset:{type:"BLOCK",id:"button-demo-debug-icon",refAtomIds:["button"],dependencies:{"index.tsx":{type:"FILE",value:n("bea9f5a4").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:"Debug Icon",description:"Debug usage"},context:{react:o,"@ant-design/icons":i,antd:s},renderOpts:{compile:async(...e)=>(await Promise.all([n.ensure("vendors_1"),n.ensure("vendors_0"),n.ensure("d2b37e0b")]).then(n.dr(a,n.bind(n,"d2b37e0b")))).default(...e)}},"button-demo-debug-block":{component:o.default.memo(o.default.lazy(()=>Promise.all([n.ensure("common"),n.ensure("0593ab1f")]).then(n.dr(a,n.bind(n,"04778281"))))),asset:{type:"BLOCK",id:"button-demo-debug-block",refAtomIds:["button"],dependencies:{"index.tsx":{type:"FILE",value:n("f9e1ed1c").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:"Debug Block",description:"Debug usage"},context:{react:o,"@ant-design/icons":i,antd:s},renderOpts:{compile:async(...e)=>(await Promise.all([n.ensure("vendors_1"),n.ensure("vendors_0"),n.ensure("d2b37e0b")]).then(n.dr(a,n.bind(n,"d2b37e0b")))).default(...e)}},"button-demo-size":{component:o.default.memo(o.default.lazy(()=>Promise.all([n.ensure("common"),n.ensure("0593ab1f")]).then(n.dr(a,n.bind(n,"04270773"))))),asset:{type:"BLOCK",id:"button-demo-size",refAtomIds:["button"],dependencies:{"index.tsx":{type:"FILE",value:n("be8eb1d2").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:"Size",description:"Ant Design supports three sizes of buttons: small, default and large.\n\nIf a large or small button is desired, set the size property to either large or small respectively. Omit the size property for a button with the default size."},context:{react:o,"@ant-design/icons":i,antd:s},renderOpts:{compile:async(...e)=>(await Promise.all([n.ensure("vendors_1"),n.ensure("vendors_0"),n.ensure("d2b37e0b")]).then(n.dr(a,n.bind(n,"d2b37e0b")))).default(...e)}},"button-demo-disabled":{component:o.default.memo(o.default.lazy(()=>Promise.all([n.ensure("common"),n.ensure("0593ab1f")]).then(n.dr(a,n.bind(n,"ceb42329"))))),asset:{type:"BLOCK",id:"button-demo-disabled",refAtomIds:["button"],dependencies:{"index.tsx":{type:"FILE",value:n("6e37e703").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},antd:{type:"NPM",value:"5.22.2"}},entry:"index.tsx",title:"Disabled",description:"To mark a button as disabled, add the disabled property to the Button."},context:{react:o,antd:s},renderOpts:{compile:async(...e)=>(await Promise.all([n.ensure("vendors_1"),n.ensure("vendors_0"),n.ensure("d2b37e0b")]).then(n.dr(a,n.bind(n,"d2b37e0b")))).default(...e)}},"button-demo-loading":{component:o.default.memo(o.default.lazy(()=>Promise.all([n.ensure("common"),n.ensure("0593ab1f")]).then(n.dr(a,n.bind(n,"054dec07"))))),asset:{type:"BLOCK",id:"button-demo-loading",refAtomIds:["button"],dependencies:{"index.tsx":{type:"FILE",value:n("ca9d5cfe").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:"Loading",description:"A loading indicator can be added to a button by setting the loading property on the Button."},context:{react:o,"@ant-design/icons":i,antd:s},renderOpts:{compile:async(...e)=>(await Promise.all([n.ensure("vendors_1"),n.ensure("vendors_0"),n.ensure("d2b37e0b")]).then(n.dr(a,n.bind(n,"d2b37e0b")))).default(...e)}},"button-demo-multiple":{component:o.default.memo(o.default.lazy(()=>Promise.all([n.ensure("common"),n.ensure("0593ab1f")]).then(n.dr(a,n.bind(n,"0619b569"))))),asset:{type:"BLOCK",id:"button-demo-multiple",refAtomIds:["button"],dependencies:{"index.tsx":{type:"FILE",value:n("8d16eacb").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},antd:{type:"NPM",value:"5.22.2"}},entry:"index.tsx",title:"Multiple Buttons",description:"If you need several buttons, we recommend that you use 1 primary button + n secondary buttons. If there are more than three operations, you can group some of them into a Dropdown.Button [/components/dropdown/#dropdown-demo-dropdown-button]."},context:{react:o,antd:s},renderOpts:{compile:async(...e)=>(await Promise.all([n.ensure("vendors_1"),n.ensure("vendors_0"),n.ensure("d2b37e0b")]).then(n.dr(a,n.bind(n,"d2b37e0b")))).default(...e)}},"button-demo-ghost":{component:o.default.memo(o.default.lazy(()=>Promise.all([n.ensure("common"),n.ensure("0593ab1f")]).then(n.dr(a,n.bind(n,"256d6b06"))))),asset:{type:"BLOCK",id:"button-demo-ghost",refAtomIds:["button"],dependencies:{"index.tsx":{type:"FILE",value:n("14d63102").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},antd:{type:"NPM",value:"5.22.2"}},entry:"index.tsx",title:"Ghost Button",description:"The ghost property will make a button's background transparent, this is commonly used in colored background."},context:{react:o,antd:s},renderOpts:{compile:async(...e)=>(await Promise.all([n.ensure("vendors_1"),n.ensure("vendors_0"),n.ensure("d2b37e0b")]).then(n.dr(a,n.bind(n,"d2b37e0b")))).default(...e)}},"button-demo-danger":{component:o.default.memo(o.default.lazy(()=>Promise.all([n.ensure("common"),n.ensure("0593ab1f")]).then(n.dr(a,n.bind(n,"71903401"))))),asset:{type:"BLOCK",id:"button-demo-danger",refAtomIds:["button"],dependencies:{"index.tsx":{type:"FILE",value:n("37ef7827").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},antd:{type:"NPM",value:"5.22.2"}},entry:"index.tsx",title:"Danger Buttons",description:"The danger is a property of buttons after antd 4.0."},context:{react:o,antd:s},renderOpts:{compile:async(...e)=>(await Promise.all([n.ensure("vendors_1"),n.ensure("vendors_0"),n.ensure("d2b37e0b")]).then(n.dr(a,n.bind(n,"d2b37e0b")))).default(...e)}},"button-demo-block":{component:o.default.memo(o.default.lazy(()=>Promise.all([n.ensure("common"),n.ensure("0593ab1f")]).then(n.dr(a,n.bind(n,"54b75c07"))))),asset:{type:"BLOCK",id:"button-demo-block",refAtomIds:["button"],dependencies:{"index.tsx":{type:"FILE",value:n("6b12212b").default},react:{type:"NPM",value:"18.3.0-canary-c3048aab4-20240326"},antd:{type:"NPM",value:"5.22.2"}},entry:"index.tsx",title:"Block Button",description:"The block property will make a button fit to its parent width."},context:{react:o,antd:s},renderOpts:{compile:async(...e)=>(await Promise.all([n.ensure("vendors_1"),n.ensure("vendors_0"),n.ensure("d2b37e0b")]).then(n.dr(a,n.bind(n,"d2b37e0b")))).default(...e)}},"button-demo-legacy-group":{component:o.default.memo(o.default.lazy(()=>Promise.all([n.ensure("common"),n.ensure("0593ab1f")]).then(n.dr(a,n.bind(n,"9c85ca9f"))))),asset:{type:"BLOCK",id:"button-demo-legacy-group",refAtomIds:["button"],dependencies:{"index.tsx":{type:"FILE",value:n("f2649c9d").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:"Deprecated Button Group",description:"Debug usage"},context:{react:o,"@ant-design/icons":i,antd:s},renderOpts:{compile:async(...e)=>(await Promise.all([n.ensure("vendors_1"),n.ensure("vendors_0"),n.ensure("d2b37e0b")]).then(n.dr(a,n.bind(n,"d2b37e0b")))).default(...e)}},"button-demo-chinese-chars-loading":{component:o.default.memo(o.default.lazy(()=>Promise.all([n.ensure("common"),n.ensure("0593ab1f")]).then(n.dr(a,n.bind(n,"1efebc8e"))))),asset:{type:"BLOCK",id:"button-demo-chinese-chars-loading",refAtomIds:["button"],dependencies:{"index.tsx":{type:"FILE",value:n("e7a9fd37").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:"Loading style bug",description:"https://github.com/ant-design/ant-design/issues/36165 [https://github.com/ant-design/ant-design/issues/36165]"},context:{react:o,"@ant-design/icons":i,antd:s},renderOpts:{compile:async(...e)=>(await Promise.all([n.ensure("vendors_1"),n.ensure("vendors_0"),n.ensure("d2b37e0b")]).then(n.dr(a,n.bind(n,"d2b37e0b")))).default(...e)}},"button-demo-component-token":{component:o.default.memo(o.default.lazy(()=>Promise.all([n.ensure("common"),n.ensure("0593ab1f")]).then(n.dr(a,n.bind(n,"8844f136"))))),asset:{type:"BLOCK",id:"button-demo-component-token",refAtomIds:["button"],dependencies:{"index.tsx":{type:"FILE",value:n("2e9bfb32").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. Button with MUI style."},context:{react:o,antd:s},renderOpts:{compile:async(...e)=>(await Promise.all([n.ensure("vendors_1"),n.ensure("vendors_0"),n.ensure("d2b37e0b")]).then(n.dr(a,n.bind(n,"d2b37e0b")))).default(...e)}},"button-demo-linear-gradient":{component:o.default.memo(o.default.lazy(()=>Promise.all([n.ensure("common"),n.ensure("0593ab1f")]).then(n.dr(a,n.bind(n,"05db3bea"))))),asset:{type:"BLOCK",id:"button-demo-linear-gradient",refAtomIds:["button"],dependencies:{"index.tsx":{type:"FILE",value:n("8d1be930").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"},"antd-style":{type:"NPM",value:"3.7.1"}},entry:"index.tsx",title:"Gradient Button",description:"Buttons with a gradient background."},context:{react:o,"@ant-design/icons":i,antd:s,"antd-style":r},renderOpts:{compile:async(...e)=>(await Promise.all([n.ensure("vendors_1"),n.ensure("vendors_0"),n.ensure("d2b37e0b")]).then(n.dr(a,n.bind(n,"d2b37e0b")))).default(...e)}},"button-demo-_semantic":{component:o.default.memo(o.default.lazy(()=>Promise.all([n.ensure("common"),n.ensure("0593ab1f")]).then(n.dr(a,n.bind(n,"ddf24a41"))))),asset:{type:"BLOCK",id:"button-demo-_semantic",refAtomIds:["button"],dependencies:{"index.tsx":{type:"FILE",value:n("af95493e").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"},"../../../.dumi/components/SemanticPreview.tsx":{type:"FILE",value:n("57938cf4").default},"../../../.dumi/hooks/useLocale.ts":{type:"FILE",value:n("80fe647a").default},"antd-style":{type:"NPM",value:"3.7.1"},classnames:{type:"NPM",value:"2.5.1"}},entry:"index.tsx"},context:{"../../../.dumi/components/SemanticPreview.tsx":u,"../../../.dumi/hooks/useLocale.ts":l,react:o,"@ant-design/icons":i,antd:s,"/home/runner/work/ant-design/ant-design/.dumi/components/SemanticPreview.tsx":u,"/home/runner/work/ant-design/ant-design/.dumi/hooks/useLocale.ts":l,dumi:c,"antd-style":r,classnames:b},renderOpts:{compile:async(...e)=>(await Promise.all([n.ensure("vendors_1"),n.ensure("vendors_0"),n.ensure("d2b37e0b")]).then(n.dr(a,n.bind(n,"d2b37e0b")))).default(...e)}}};}}]); |