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
+4 -4
View File
@@ -37,15 +37,15 @@ export default {
type: '加载类型',
color: '自定义颜色',
text: '加载文案',
vertical: '垂直排列'
vertical: '垂直排列',
},
'en-US': {
type: 'Type',
color: 'Color',
text: 'Text',
vertical: 'Vertical'
}
}
vertical: 'Vertical',
},
},
};
</script>
+3 -3
View File
@@ -36,7 +36,7 @@ function LoadingIcon(h: CreateElement, props: LoadingProps) {
function LoadingText(h: CreateElement, props: LoadingProps, slots: DefaultSlots) {
if (slots.default) {
const style = props.textSize && {
fontSize: addUnit(props.textSize)
fontSize: addUnit(props.textSize),
};
return (
@@ -79,8 +79,8 @@ Loading.props = {
textSize: [Number, String],
type: {
type: String,
default: 'circular'
}
default: 'circular',
},
};
export default createComponent<LoadingProps>(Loading);
+5 -5
View File
@@ -4,8 +4,8 @@ import Loading from '..';
test('size prop', () => {
const wrapper = mount(Loading, {
propsData: {
size: 20
}
size: 20,
},
});
expect(wrapper).toMatchSnapshot();
@@ -14,11 +14,11 @@ test('size prop', () => {
test('text-size prop', () => {
const wrapper = mount(Loading, {
propsData: {
textSize: 20
textSize: 20,
},
scopedSlots: {
default: () => 'Text'
}
default: () => 'Text',
},
});
expect(wrapper).toMatchSnapshot();