mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
1 line
5.8 KiB
JavaScript
1 line
5.8 KiB
JavaScript
|
(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["598f2544"],{"52b05444":function(e,l,a){"use strict";a.d(l,"__esModule",{value:!0}),a.d(l,"default",{enumerable:!0,get:function(){return t;}});var n=a("f19d2b93");a("64c7cd5a");var d=a("a9d1a279"),t=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.Checkbox,{defaultChecked:!1,disabled:!0}),(0,n.jsx)("br",{}),(0,n.jsx)(d.Checkbox,{indeterminate:!0,disabled:!0}),(0,n.jsx)("br",{}),(0,n.jsx)(d.Checkbox,{defaultChecked:!0,disabled:!0})]});},"7840da9d":function(e,l,a){"use strict";a.d(l,"__esModule",{value:!0}),a.d(l,"default",{enumerable:!0,get:function(){return r;}});var n=a("f19d2b93");a("a90b2d48");var d=a("a9d1a279");let t={border:"1px solid red",marginBottom:16};var r=()=>(0,n.jsxs)("div",{children:[(0,n.jsxs)(d.Space,{style:t,align:"center",children:[(0,n.jsx)(d.Checkbox,{value:"light"}),(0,n.jsx)("div",{children:"Bamboo"}),(0,n.jsx)(d.Checkbox,{value:"little",children:"Little"})]}),(0,n.jsxs)(d.Space,{style:t,align:"center",children:[(0,n.jsx)(d.Radio,{value:"light"}),(0,n.jsx)("div",{children:"Bamboo"}),(0,n.jsx)(d.Radio,{value:"little",children:"Little"})]}),(0,n.jsxs)("div",{style:{...t,display:"flex",alignItems:"center"},children:[(0,n.jsx)(d.Checkbox,{value:"light"}),(0,n.jsx)("div",{children:"Bamboo"}),(0,n.jsx)(d.Checkbox,{value:"little",children:"Little"})]}),(0,n.jsxs)("div",{style:{...t,display:"flex",alignItems:"center"},children:[(0,n.jsx)(d.Radio,{value:"light"}),(0,n.jsx)("div",{children:"Bamboo"}),(0,n.jsx)(d.Radio,{value:"little",children:"Little"})]}),(0,n.jsx)("div",{children:(0,n.jsx)(d.ConfigProvider,{theme:{token:{controlHeight:48}},children:(0,n.jsx)(d.Checkbox,{children:"Aligned"})})}),(0,n.jsx)("div",{children:(0,n.jsx)(d.Checkbox,{children:(0,n.jsx)("span",{style:{fontSize:32},children:"Aligned"})})})]});},"8d36cf53":function(e,l,a){"use strict";a.d(l,"__esModule",{value:!0}),a.d(l,"default",{enumerable:!0,get:function(){return r;}});var n=a("f19d2b93");a("6480dfc0");var d=a("a9d1a279");let t=e=>{console.log("checked = ",e);};var r=()=>(0,n.jsx)(d.Checkbox.Group,{style:{width:"100%"},onChange:t,children:(0,n.jsxs)(d.Row,{children:[(0,n.jsx)(d.Col,{span:8,children:(0,n.jsx)(d.Checkbox,{value:"A",children:"A"})}),(0,n.jsx)(d.Col,{span:8,children:(0,n.jsx)(d.Checkbox,{value:"B",children:"B"})}),(0,n.jsx)(d.Col,{span:8,children:(0,n.jsx)(d.Checkbox,{value:"C",children:"C"})}),(0,n.jsx)(d.Col,{span:8,children:(0,n.jsx)(d.Checkbox,{value:"D",children:"D"})}),(0,n.jsx)(d.Col,{span:8,children:(0,n.jsx)(d.Checkbox,{value:"E",children:"E"})})]})});},"9dfc2533":function(e,l,a){"use strict";a.d(l,"__esModule",{value:!0}),a.d(l,"default",{enumerable:!0,get:function(){return r;}});var n=a("f19d2b93");a("0e3bed0e");var d=a("5b220c3d"),t=a("a9d1a279"),r=()=>{let[e,l]=(0,d.useState)(!0),[a,r]=(0,d.useState)(!1),c=`${e?"Checked":"Unchecked"}-${a?"Disabled":"Enabled"}`;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{style:{marginBottom:"20px"},children:(0,n.jsx)(t.Checkbox,{checked:e,disabled:a,onChange:e=>{console.log("checked = ",e.target.checked),l(e.target.checked);},children:c})}),(0,n.jsxs)("p",{children:[(0,n.jsx)(t.Button,{type:"primary",size:"small",onClick:()=>{l(!e);},children:e?"Uncheck":"Check"}),(0,n.jsx)(t.Button,{style:{margin:"0 10px"},type:"primary",size:"small",onClick:()=>{r(!a);},children:a?"Enable":"Disable"})]})]});};},a92acc57:function(e,l,a){"use strict";a.d(l,"__esModule",{value:!0}),a.d(l,"default",{enumerable:!0,get:function(){return r;}});var n=a("f19d2b93");a("2f56b89a");var d=a("a9d1a279");let t=e=>{console.log(`checked = ${e.target.checked}`);};var r=()=>(0,n.jsx)(d.Checkbox,{onChange:t,children:"Checkbox"});},dfc65bee:function(e,l,a){"use strict";a.d(l,"__esModule",{value:!0}),a.d(l,"default",{enumerable:!0,get:function(){return i;}});var n=a("f19d2b93");a("c2ae325a");var d=a("5b220c3d"),t=a("a9d1a279");let r=t.Checkbox.Group,c=["Apple","Pear","Orange"],s=["Apple","Orange"];var i=()=>{let[e,l]=(0,d.useState)(s),a=c.length===e.length,i=
|