mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 17:44:35 +08:00
37 lines
9.5 KiB
JavaScript
37 lines
9.5 KiB
JavaScript
(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["32c4f72e"],{"1f086c76":function(e,a,l){"use strict";l.d(a,"__esModule",{value:!0}),l.d(a,"default",{enumerable:!0,get:function(){return r;}});var n=l("f19d2b93");l("e0b1d625");var s=l("a9d1a279");let i=`
|
|
A dog is a type of domesticated animal.
|
|
Known for its loyalty and faithfulness,
|
|
it can be found as a welcome guest in many households across the world.
|
|
`,d=[{key:"1",label:"This is panel nest panel",children:(0,n.jsx)("p",{children:i})}],t=[{key:"1",label:"This is panel header 1",children:(0,n.jsx)(s.Collapse,{defaultActiveKey:"1",items:d})},{key:"2",label:"This is panel header 2",children:(0,n.jsx)("p",{children:i})},{key:"3",label:"This is panel header 3",children:(0,n.jsx)("p",{children:i})}];var r=()=>(0,n.jsx)(s.Collapse,{onChange:e=>{console.log(e);},items:t});},"24a2cdc7":function(e,a,l){"use strict";l.d(a,"__esModule",{value:!0}),l.d(a,"default",{enumerable:!0,get:function(){return o;}});var n=l("f19d2b93");l("463065d4");var s=l("5b220c3d"),i=l("e22febe0"),d=l("a9d1a279");let{Option:t}=d.Select,r=`
|
|
A dog is a type of domesticated animal.
|
|
Known for its loyalty and faithfulness,
|
|
it can be found as a welcome guest in many households across the world.
|
|
`;var o=()=>{let[e,a]=(0,s.useState)("start"),l=()=>(0,n.jsx)(i.SettingOutlined,{onClick:e=>{e.stopPropagation();}}),o=[{key:"1",label:"This is panel header 1",children:(0,n.jsx)("div",{children:r}),extra:l()},{key:"2",label:"This is panel header 2",children:(0,n.jsx)("div",{children:r}),extra:l()},{key:"3",label:"This is panel header 3",children:(0,n.jsx)("div",{children:r}),extra:l()}];return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.Collapse,{defaultActiveKey:["1"],onChange:e=>{console.log(e);},expandIconPosition:e,items:o}),(0,n.jsx)("br",{}),(0,n.jsx)("span",{children:"Expand Icon Position: "}),(0,n.jsxs)(d.Select,{value:e,style:{margin:"0 8px"},onChange:e=>{a(e);},children:[(0,n.jsx)(t,{value:"start",children:"start"}),(0,n.jsx)(t,{value:"end",children:"end"})]})]});};},"4012b541":function(e,a,l){"use strict";l.d(a,"__esModule",{value:!0}),l.d(a,"default",{enumerable:!0,get:function(){return d;}});var n=l("f19d2b93");l("df98726e");var s=l("a9d1a279");let i=`
|
|
A dog is a type of domesticated animal.
|
|
Known for its loyalty and faithfulness,
|
|
it can be found as a welcome guest in many households across the world.
|
|
`;var d=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.Divider,{orientation:"left",children:"Default Size"}),(0,n.jsx)(s.Collapse,{items:[{key:"1",label:"This is default size panel header",children:(0,n.jsx)("p",{children:i})}]}),(0,n.jsx)(s.Divider,{orientation:"left",children:"Small Size"}),(0,n.jsx)(s.Collapse,{size:"small",items:[{key:"1",label:"This is small size panel header",children:(0,n.jsx)("p",{children:i})}]}),(0,n.jsx)(s.Divider,{orientation:"left",children:"Large Size"}),(0,n.jsx)(s.Collapse,{size:"large",items:[{key:"1",label:"This is large size panel header",children:(0,n.jsx)("p",{children:i})}]})]});},"4b6dfd6d":function(e,a,l){"use strict";l.d(a,"__esModule",{value:!0}),l.d(a,"default",{enumerable:!0,get:function(){return t;}});var n=l("f19d2b93");l("97f30088");var s=l("a9d1a279");let i=`
|
|
A dog is a type of domesticated animal.
|
|
Known for its loyalty and faithfulness,
|
|
it can be found as a welcome guest in many households across the world.
|
|
`,d=[{key:"1",label:"This is panel header with arrow icon",children:(0,n.jsx)("p",{children:i})},{key:"2",label:"This is panel header with no arrow icon",children:(0,n.jsx)("p",{children:i}),showArrow:!1}];var t=()=>(0,n.jsx)(s.Collapse,{defaultActiveKey:["1"],onChange:e=>{console.log(e);},items:d});},"5062cf0e":function(e,a,l){"use strict";l.d(a,"__esModule",{value:!0}),l.d(a,"default",{enumerable:!0,get:function(){return r;}});var n=l("f19d2b93");l("665547cc");var s=l("e22febe0"),i=l("a9d1a279");let d=`
|
|
A dog is a type of domesticated animal.
|
|
Known for its loyalty and faithfulness,
|
|
it can be found as a welcome guest in many households across the world.
|
|
`,t=e=>[{key:"1",label:"This is panel header 1",children:(0,n.jsx)("p",{children:d}),style:e},{key:"2",label:"This is panel header 2",children:(0,n.jsx)("p",{children:d}),style:e},{key:"3",label:"This is panel header 3",children:(0,n.jsx)("p",{children:d}),style:e}];var r=()=>{let{token:e}=i.theme.useToken(),a={marginBottom:24,background:e.colorFillAlter,borderRadius:e.borderRadiusLG,border:"none"};return(0,n.jsx)(i.Collapse,{bordered:!1,defaultActiveKey:["1"],expandIcon:({isActive:e})=>(0,n.jsx)(s.CaretRightOutlined,{rotate:e?90:0}),style:{background:e.colorBgContainer},items:t(a)});};},"7edac802":function(e,a,l){"use strict";l.d(a,"__esModule",{value:!0}),l.d(a,"default",{enumerable:!0,get:function(){return t;}});var n=l("f19d2b93");l("def12182");var s=l("a9d1a279");let i=`
|
|
A dog is a type of domesticated animal.
|
|
Known for its loyalty and faithfulness,
|
|
it can be found as a welcome guest in many households across the world.
|
|
`,d=[{key:"1",label:"This is panel header 1",children:(0,n.jsx)("p",{children:i})},{key:"2",label:"This is panel header 2",children:(0,n.jsx)("p",{children:i})},{key:"3",label:"This is panel header 3",children:(0,n.jsx)("p",{children:i})}];var t=()=>(0,n.jsx)(s.Collapse,{defaultActiveKey:["1"],ghost:!0,items:d});},"83dfd9db":function(e,a,l){"use strict";l.d(a,"__esModule",{value:!0}),l.d(a,"default",{enumerable:!0,get:function(){return c;}});var n=l("777fffbe"),s=l("f19d2b93");l("6d336c40");var i=l("a9d1a279"),d=n._(l("f4312251")),t=n._(l("23546486"));let r={cn:{header:"\u5934\u90E8\u5143\u7D20",body:"\u5185\u5BB9\u5143\u7D20"},en:{header:"Header element",body:"Body element"}},o=e=>{let a=[{key:"1",label:"This is panel header",children:(0,s.jsx)("p",{children:"This is panel body"}),...e}];return(0,s.jsx)("div",{style:{position:"absolute",inset:0},children:(0,s.jsx)(i.Collapse,{...e,items:a,defaultActiveKey:["1"]})});};var c=()=>{let[e]=(0,t.default)(r);return(0,s.jsx)(d.default,{componentName:"Collapse",semantics:[{name:"header",desc:e.header,version:"5.21.0"},{name:"body",desc:e.body,version:"5.21.0"}],children:(0,s.jsx)(o,{})});};},b7d79f99:function(e,a,l){"use strict";l.d(a,"__esModule",{value:!0}),l.d(a,"default",{enumerable:!0,get:function(){return t;}});var n=l("f19d2b93");l("29d2207b");var s=l("a9d1a279");let i=`
|
|
A dog is a type of domesticated animal.
|
|
Known for its loyalty and faithfulness,
|
|
it can be found as a welcome guest in many households across the world.
|
|
`,d=[{key:"1",label:"This is panel header 1",children:(0,n.jsx)("p",{children:i})},{key:"2",label:"This is panel header 2",children:(0,n.jsx)("p",{children:i})},{key:"3",label:"This is panel header 3",children:(0,n.jsx)("p",{children:i})}];var t=()=>(0,n.jsx)(s.Collapse,{items:d,defaultActiveKey:["1"],onChange:e=>{console.log(e);}});},d49536f3:function(e,a,l){"use strict";l.d(a,"__esModule",{value:!0}),l.d(a,"default",{enumerable:!0,get:function(){return t;}});var n=l("f19d2b93");l("36881db2");var s=l("a9d1a279");let i=(0,n.jsx)("p",{style:{paddingInlineStart:24},children:"A dog is a type of domesticated animal. Known for its loyalty and faithfulness, it can be found as a welcome guest in many households across the world."}),d=[{key:"1",label:"This is panel header 1",children:i},{key:"2",label:"This is panel header 2",children:i},{key:"3",label:"This is panel header 3",children:i}];var t=()=>(0,n.jsx)(s.Collapse,{items:d,bordered:!1,defaultActiveKey:["1"]});},e259a016:function(e,a,l){"use strict";l.d(a,"__esModule",{value:!0}),l.d(a,"default",{enumerable:!0,get:function(){return d;}});var n=l("f19d2b93");l("39de706c");var s=l("a9d1a279");let i=`
|
|
A dog is a type of domesticated animal.
|
|
Known for its loyalty and faithfulness,
|
|
it can be found as a welcome guest in many households across the world.
|
|
`;var d=()=>(0,n.jsxs)(s.Space,{direction:"vertical",children:[(0,n.jsx)(s.Collapse,{collapsible:"header",defaultActiveKey:["1"],items:[{key:"1",label:"This panel can only be collapsed by clicking text",children:(0,n.jsx)("p",{children:i})}]}),(0,n.jsx)(s.Collapse,{collapsible:"icon",defaultActiveKey:["1"],items:[{key:"1",label:"This panel can only be collapsed by clicking icon",children:(0,n.jsx)("p",{children:i})}]}),(0,n.jsx)(s.Collapse,{collapsible:"disabled",items:[{key:"1",label:"This panel can't be collapsed",children:(0,n.jsx)("p",{children:i})}]})]});},e64389cb:function(e,a,l){"use strict";l.d(a,"__esModule",{value:!0}),l.d(a,"default",{enumerable:!0,get:function(){return t;}});var n=l("f19d2b93");l("a00b1622");var s=l("a9d1a279");let i="Ant Design! ".repeat(26),d=[{key:"1",label:`This is panel header 1, (${i})`,children:i},{key:"2",label:`This is panel header 2, (${i})`,children:i},{key:"3",label:`This is panel header 3, (${i})`,children:i}];var t=()=>(0,n.jsx)(s.ConfigProvider,{theme:{components:{Collapse:{headerPadding:"0px 10px 20px 30px",headerBg:"#eaeeff",contentPadding:"0px 10px 20px 30px",contentBg:"#e6f7ff"}}},children:(0,n.jsx)(s.Collapse,{items:d})});},f212c430:function(e,a,l){"use strict";l.d(a,"__esModule",{value:!0}),l.d(a,"default",{enumerable:!0,get:function(){return t;}});var n=l("f19d2b93");l("a5aaa80f");var s=l("a9d1a279");let i=`
|
|
A dog is a type of domesticated animal.
|
|
Known for its loyalty and faithfulness,
|
|
it can be found as a welcome guest in many households across the world.
|
|
`,d=[{key:"1",label:"This is panel header 1",children:(0,n.jsx)("p",{children:i})},{key:"2",label:"This is panel header 2",children:(0,n.jsx)("p",{children:i})},{key:"3",label:"This is panel header 3",children:(0,n.jsx)("p",{children:i})}];var t=()=>(0,n.jsx)(s.Collapse,{accordion:!0,items:d});}}]); |