mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
1 line
4.4 KiB
JavaScript
1 line
4.4 KiB
JavaScript
(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["3842b31f"],{"3842b31f":function(e,a,d){"use strict";d.d(a,"__esModule",{value:!0}),d.d(a,"texts",{enumerable:!0,get:function(){return t;}}),d("9a51ed9a");let t=[{value:"If you need to represent the switching between two states or on-off state.",paraId:0,tocIndex:0},{value:"The difference between ",paraId:0,tocIndex:0},{value:"Switch",paraId:0,tocIndex:0},{value:" and ",paraId:0,tocIndex:0},{value:"Checkbox",paraId:0,tocIndex:0},{value:" is that ",paraId:0,tocIndex:0},{value:"Switch",paraId:0,tocIndex:0},{value:" will trigger a state change directly when you toggle it, while ",paraId:0,tocIndex:0},{value:"Checkbox",paraId:0,tocIndex:0},{value:" is generally used for state marking, which should work in conjunction with submit operation.",paraId:0,tocIndex:0},{value:"Common props ref\uFF1A",paraId:1,tocIndex:8},{value:"Common props",paraId:2,tocIndex:8},{value:"Property",paraId:3,tocIndex:8},{value:"Description",paraId:3,tocIndex:8},{value:"Type",paraId:3,tocIndex:8},{value:"Default",paraId:3,tocIndex:8},{value:"Version",paraId:3,tocIndex:8},{value:"autoFocus",paraId:3,tocIndex:8},{value:"Whether get focus when component mounted",paraId:3,tocIndex:8},{value:"boolean",paraId:3,tocIndex:8},{value:"false",paraId:3,tocIndex:8},{value:"checked",paraId:3,tocIndex:8},{value:"Determine whether the Switch is checked",paraId:3,tocIndex:8},{value:"boolean",paraId:3,tocIndex:8},{value:"false",paraId:3,tocIndex:8},{value:"checkedChildren",paraId:3,tocIndex:8},{value:"The content to be shown when the state is checked",paraId:3,tocIndex:8},{value:"ReactNode",paraId:3,tocIndex:8},{value:"-",paraId:3,tocIndex:8},{value:"className",paraId:3,tocIndex:8},{value:"The additional class to Switch",paraId:3,tocIndex:8},{value:"string",paraId:3,tocIndex:8},{value:"-",paraId:3,tocIndex:8},{value:"defaultChecked",paraId:3,tocIndex:8},{value:"Whether to set the initial state",paraId:3,tocIndex:8},{value:"boolean",paraId:3,tocIndex:8},{value:"false",paraId:3,tocIndex:8},{value:"defaultValue",paraId:3,tocIndex:8},{value:"Alias for ",paraId:3,tocIndex:8},{value:"defaultChecked",paraId:3,tocIndex:8},{value:"boolean",paraId:3,tocIndex:8},{value:"-",paraId:3,tocIndex:8},{value:"5.12.0",paraId:3,tocIndex:8},{value:"disabled",paraId:3,tocIndex:8},{value:"Disable switch",paraId:3,tocIndex:8},{value:"boolean",paraId:3,tocIndex:8},{value:"false",paraId:3,tocIndex:8},{value:"loading",paraId:3,tocIndex:8},{value:"Loading state of switch",paraId:3,tocIndex:8},{value:"boolean",paraId:3,tocIndex:8},{value:"false",paraId:3,tocIndex:8},{value:"size",paraId:3,tocIndex:8},{value:"The size of the Switch, options: ",paraId:3,tocIndex:8},{value:"default",paraId:3,tocIndex:8},{value:" ",paraId:3,tocIndex:8},{value:"small",paraId:3,tocIndex:8},{value:"string",paraId:3,tocIndex:8},{value:"default",paraId:3,tocIndex:8},{value:"unCheckedChildren",paraId:3,tocIndex:8},{value:"The content to be shown when the state is unchecked",paraId:3,tocIndex:8},{value:"ReactNode",paraId:3,tocIndex:8},{value:"-",paraId:3,tocIndex:8},{value:"value",paraId:3,tocIndex:8},{value:"Alias for ",paraId:3,tocIndex:8},{value:"checked",paraId:3,tocIndex:8},{value:"boolean",paraId:3,tocIndex:8},{value:"-",paraId:3,tocIndex:8},{value:"5.12.0",paraId:3,tocIndex:8},{value:"onChange",paraId:3,tocIndex:8},{value:"Trigger when the checked state is changing",paraId:3,tocIndex:8},{value:"function(checked: boolean, event: Event)",paraId:3,tocIndex:8},{value:"-",paraId:3,tocIndex:8},{value:"onClick",paraId:3,tocIndex:8},{value:"Trigger when clicked",paraId:3,tocIndex:8},{value:"function(checked: boolean, event: Event)",paraId:3,tocIndex:8},{value:"-",paraId:3,tocIndex:8},{value:"Name",paraId:4,tocIndex:9},{value:"Description",paraId:4,tocIndex:9},{value:"blur()",paraId:4,tocIndex:9},{value:"Remove focus",paraId:4,tocIndex:9},{value:"focus()",paraId:4,tocIndex:9},{value:"Get focus",paraId:4,tocIndex:9},{value:"Form.Item default bind value to ",paraId:5,tocIndex:12},{value:"value",paraId:5,tocIndex:12},{value:" property, but Switch value property is ",paraId:5,tocIndex:12},{value:"checked",paraId:5,tocIndex:12},{value:". You can use ",paraId:5,tocIndex:12},{value:"valuePropName",paraId:5,tocIndex:12},{value:" to change bind property.",paraId:5,tocIndex:12},{value:'<Form.Item name="fieldA" valuePropName="checked">\n <Switch />\n</Form.Item>\n',paraId:6,tocIndex:12}];}}]); |