chore: add trailingComma
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user