ant-design/598f2544-async.c35dde29.js
2024-11-20 18:30:54 +00:00

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=e.length>0&&e.length<c.length;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.Checkbox,{indeterminate:i,onChange:e=>{l(e.target.checked?c:[]);},checked:a,children:"Check all"}),(0,n.jsx)(t.Divider,{}),(0,n.jsx)(r,{options:c,value:e,onChange:e=>{l(e);}})]});};},e552227c: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("fde93017");var d=a("a9d1a279");let t=e=>{console.log("checked = ",e);},r=["Apple","Pear","Orange"],c=[{label:"Apple",value:"Apple"},{label:"Pear",value:"Pear"},{label:"Orange",value:"Orange"}],s=[{label:"Apple",value:"Apple"},{label:"Pear",value:"Pear"},{label:"Orange",value:"Orange",disabled:!1}];var i=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.Checkbox.Group,{options:r,defaultValue:["Apple"],onChange:t}),(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),(0,n.jsx)(d.Checkbox.Group,{options:c,defaultValue:["Pear"],onChange:t}),(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),(0,n.jsx)(d.Checkbox.Group,{options:s,disabled:!0,defaultValue:["Apple"],onChange:t})]});},e9dbf6eb: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("ce305767");var d=a("a9d1a279"),t=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(d.ConfigProvider,{theme:{components:{Checkbox:{lineWidth:6}}},children:[(0,n.jsx)(d.Checkbox,{checked:!0}),(0,n.jsx)(d.Checkbox,{})]}),(0,n.jsx)(d.Checkbox,{checked:!0}),(0,n.jsx)(d.Checkbox,{})]});},ec4c66e9: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("6b80b78e");var d=a("a9d1a279"),t=()=>(0,n.jsx)("div",{style:{padding:56},children:(0,n.jsx)(d.Popover,{content:"xxxx",trigger:"hover",children:(0,n.jsx)(d.Checkbox,{disabled:!0,checked:!0})})});}}]);