feat(Form): binding checkbox

This commit is contained in:
陈嘉涵
2020-02-10 10:57:57 +08:00
parent f385c94040
commit 1fe96f3edc
5 changed files with 32 additions and 4 deletions
+2 -1
View File
@@ -2,11 +2,12 @@
* Common part of Checkbox & Radio
*/
import Icon from '../icon';
import { FieldMixin } from './field';
import { ChildrenMixin } from './relation';
import { addUnit } from '../utils';
export const CheckboxMixin = ({ parent, bem, role }) => ({
mixins: [ChildrenMixin(parent)],
mixins: [ChildrenMixin(parent), FieldMixin],
props: {
name: null,