chore: add trailingComma
This commit is contained in:
@@ -37,15 +37,15 @@ export default {
|
||||
type: '加载类型',
|
||||
color: '自定义颜色',
|
||||
text: '加载文案',
|
||||
vertical: '垂直排列'
|
||||
vertical: '垂直排列',
|
||||
},
|
||||
'en-US': {
|
||||
type: 'Type',
|
||||
color: 'Color',
|
||||
text: 'Text',
|
||||
vertical: 'Vertical'
|
||||
}
|
||||
}
|
||||
vertical: 'Vertical',
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user