lodash-form-collector icon indicating copy to clipboard operation
lodash-form-collector copied to clipboard

关于radio

Open crapthings opened this issue 8 years ago • 0 comments

当一个字段为boolean时,如 { isDisabled: true }

使用两个 radio 来控制,并且可以转换成正确的 true or false

当利用位控制时候(罕见),如 [false, true, false, ...] 并且只能选1时候 保证选中的为 true 其他为 false

ps: 类似情况还有 checkbox,区别为多选

crapthings avatar Apr 20 '17 05:04 crapthings