chore: add trailingComma

This commit is contained in:
陈嘉涵
2020-01-19 11:57:09 +08:00
parent e841175fe8
commit 389d68884d
269 changed files with 2706 additions and 2702 deletions
+2 -2
View File
@@ -35,8 +35,8 @@
export default {
data() {
return {
checked: true
checked: true,
};
}
},
};
</script>
+3 -3
View File
@@ -43,12 +43,12 @@ SwitchCell.props = {
cellSize: String,
border: {
type: Boolean,
default: true
default: true,
},
size: {
type: String,
default: '24px'
}
default: '24px',
},
};
export default createComponent<SwitchCellProps, SwitchEvents>(SwitchCell);
+7 -7
View File
@@ -6,9 +6,9 @@ test('change event', () => {
const wrapper = mount(SwitchCell, {
context: {
on: {
change: onChange
}
}
change: onChange,
},
},
});
wrapper.find('.van-switch').trigger('click');
@@ -19,8 +19,8 @@ test('change event', () => {
test('border prop', () => {
const wrapper = mount(SwitchCell, {
propsData: {
border: false
}
border: false,
},
});
expect(wrapper).toMatchSnapshot();
@@ -29,8 +29,8 @@ test('border prop', () => {
test('cell-size prop', () => {
const wrapper = mount(SwitchCell, {
propsData: {
cellSize: 'large'
}
cellSize: 'large',
},
});
expect(wrapper).toMatchSnapshot();