🎨 add eslint

This commit is contained in:
jingsam 2016-12-25 22:49:42 +08:00
parent 829a2e4cfc
commit b0893113b3
88 changed files with 376 additions and 370 deletions

View file

@ -12,7 +12,7 @@
model: {
type: Array,
default () {
return []
return [];
}
}
},
@ -43,14 +43,9 @@
}
},
watch: {
model (val, oldVal) {
// if (val == oldVal) {
// this.updateModel();
// } else {
// this.updateModel(true);
// }
model () {
this.updateModel(true);
}
}
}
</script>
};
</script>

View file

@ -44,7 +44,7 @@
selected: false,
group: false,
showSlot: true
}
};
},
computed: {
wrapClasses () {
@ -55,7 +55,7 @@
[`${prefixCls}-wrapper-checked`]: this.selected,
[`${prefixCls}-wrapper-disabled`]: this.disabled
}
]
];
},
checkboxClasses () {
return [
@ -64,7 +64,7 @@
[`${prefixCls}-checked`]: this.selected,
[`${prefixCls}-disabled`]: this.disabled
}
]
];
},
innerClasses () {
return `${prefixCls}-inner`;
@ -105,5 +105,5 @@
this.updateModel();
}
}
}
</script>
};
</script>