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
+5 -5
View File
@@ -55,7 +55,7 @@ export default {
clickIcon: '点击图标',
clickButton: '点击按钮',
customIconColor: '自定义图标颜色',
customButtonColor: '自定义按钮颜色'
customButtonColor: '自定义按钮颜色',
},
'en-US': {
icon1: 'Icon1',
@@ -68,8 +68,8 @@ export default {
clickIcon: 'Click Icon',
clickButton: 'Click Button',
customIconColor: 'Custom Icon Color',
customButtonColor: 'Custom Button Color'
}
customButtonColor: 'Custom Button Color',
},
},
methods: {
onClickIcon() {
@@ -77,8 +77,8 @@ export default {
},
onClickButton() {
this.$toast(this.$t('clickButton'));
}
}
},
},
};
</script>
+2 -2
View File
@@ -7,7 +7,7 @@ export default createComponent({
mixins: [ParentMixin('vanGoodsAction')],
props: {
safeAreaInsetBottom: Boolean
safeAreaInsetBottom: Boolean,
},
render() {
@@ -16,5 +16,5 @@ export default createComponent({
{this.slots()}
</div>
);
}
},
});
+5 -5
View File
@@ -18,7 +18,7 @@ test('Button render default slot', () => {
const wrapper = mount({
render(h) {
return h(Button, null, ['Default Content']);
}
},
});
expect(wrapper).toMatchSnapshot();
@@ -28,7 +28,7 @@ test('Icon render default slot', () => {
const wrapper = mount({
render(h) {
return h(Icon, null, ['Default Content']);
}
},
});
expect(wrapper).toMatchSnapshot();
@@ -40,10 +40,10 @@ test('Icon render icon slot', () => {
return h(Icon, {
scopedSlots: {
default: () => 'Text',
icon: () => 'Custom Icon'
}
icon: () => 'Custom Icon',
},
});
}
},
});
expect(wrapper).toMatchSnapshot();