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
@@ -66,7 +66,7 @@ export default {
customContent: '自定义内容',
urlRoute: 'URL 跳转',
vueRoute: '路由跳转',
showInfo: '提示信息'
showInfo: '提示信息',
},
'en-US': {
text: 'Text',
@@ -77,9 +77,9 @@ export default {
customContent: 'Custom Content',
urlRoute: 'URL',
vueRoute: 'Vue Router',
showInfo: 'Show Info'
}
}
showInfo: 'Show Info',
},
},
};
</script>
+7 -7
View File
@@ -14,16 +14,16 @@ export default createComponent({
clickable: Boolean,
columnNum: {
type: Number,
default: 4
default: 4,
},
center: {
type: Boolean,
default: true
default: true,
},
border: {
type: Boolean,
default: true
}
default: true,
},
},
computed: {
@@ -32,10 +32,10 @@ export default createComponent({
if (gutter) {
return {
paddingLeft: addUnit(gutter)
paddingLeft: addUnit(gutter),
};
}
}
},
},
render() {
@@ -47,5 +47,5 @@ export default createComponent({
{this.slots()}
</div>
);
}
},
});
+5 -5
View File
@@ -9,8 +9,8 @@ test('click grid item', () => {
</van-grid>
`,
methods: {
onClick
}
onClick,
},
});
const Item = wrapper.find('.van-grid-item__content');
@@ -27,7 +27,7 @@ test('sqaure and set gutter', () => {
<van-grid-item />
<van-grid-item />
</van-grid>
`
`,
});
expect(wrapper).toMatchSnapshot();
@@ -39,7 +39,7 @@ test('icon-size prop', () => {
<van-grid icon-size="10">
<van-grid-item icon="success" />
</van-grid>
`
`,
});
expect(wrapper).toMatchSnapshot();
@@ -53,7 +53,7 @@ test('render icon-slot', () => {
<div slot="icon" />
</van-grid-item>
</van-grid>
`
`,
});
expect(wrapper).toMatchSnapshot();