[improvement] SwitchCell: jsx (#2656)

This commit is contained in:
neverland
2019-01-31 14:37:24 +08:00
committed by GitHub
parent 1c70cf6ead
commit 9183849e6a
11 changed files with 82 additions and 118 deletions

View File

@@ -4,12 +4,7 @@ import CheckboxMixin from '../mixins/checkbox';
const [sfc, bem] = use('checkbox');
export default sfc({
mixins: [
CheckboxMixin({
bem,
parent: 'van-checkbox-group'
})
],
mixins: [CheckboxMixin('van-checkbox-group', bem)],
computed: {
checked: {