mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 19:24:16 +00:00
chore: prettier js codes
This commit is contained in:
@@ -4,16 +4,21 @@ import { CheckboxMixin } from '../mixins/checkbox';
|
||||
const [createComponent, bem] = createNamespace('checkbox');
|
||||
|
||||
export default createComponent({
|
||||
mixins: [CheckboxMixin({
|
||||
bem,
|
||||
role: 'checkbox',
|
||||
parent: 'vanCheckbox',
|
||||
})],
|
||||
mixins: [
|
||||
CheckboxMixin({
|
||||
bem,
|
||||
role: 'checkbox',
|
||||
parent: 'vanCheckbox',
|
||||
}),
|
||||
],
|
||||
|
||||
computed: {
|
||||
checked: {
|
||||
get() {
|
||||
return this.parent ? this.parent.value.indexOf(this.name) !== -1 : this.value;
|
||||
if (this.parent) {
|
||||
return this.parent.value.indexOf(this.name) !== -1;
|
||||
}
|
||||
return this.value;
|
||||
},
|
||||
|
||||
set(val) {
|
||||
|
Reference in New Issue
Block a user