switch icon indicating copy to clipboard operation
switch copied to clipboard

checkedChildren and uncheckedChildren style overides

Open evenstensberg opened this issue 7 years ago • 2 comments

Hi! Currently the checkChildren and uncheckedChildren doesn't support classNames, as you render those as svgs. Will you support a way to do that?

evenstensberg avatar Oct 10 '18 08:10 evenstensberg

I have similar problem. The words for checked and unchecked children is 4-6 characters long and I can't set the width of the switch.

teddybee avatar Oct 21 '18 22:10 teddybee

image <Switch onChange={this.onSwitchChange.bind(this, recode)} checkedChildren={'正常' + value} defaultChecked={value!==1} unCheckedChildren={'禁用'+ value} className={'hack-switch'} />; .hack-switch { width: 54px; &.rc-switch-checked:after { left: 32px; } }

delenzhang avatar Nov 07 '18 03:11 delenzhang