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
@@ -76,7 +76,7 @@ export default {
urlRoute: 'URL 跳转',
vueRoute: '路由跳转',
useSlots: '使用插槽',
verticalCenter: '垂直居中'
verticalCenter: '垂直居中',
},
'en-US': {
cell: 'Cell title',
@@ -90,9 +90,9 @@ export default {
urlRoute: 'URL',
vueRoute: 'Vue Router',
useSlots: 'Use Slots',
verticalCenter: 'Vertical center'
}
}
verticalCenter: 'Vertical center',
},
},
};
</script>
+2 -2
View File
@@ -109,7 +109,7 @@ function Cell(
clickable,
center: props.center,
required: props.required,
borderless: !props.border
borderless: !props.border,
};
if (size) {
@@ -135,7 +135,7 @@ function Cell(
Cell.props = {
...cellProps,
...routeProps
...routeProps,
};
export default createComponent<CellProps, CellEvents, CellSlots>(Cell);
+2 -2
View File
@@ -33,6 +33,6 @@ export const cellProps = {
arrowDirection: String,
border: {
type: Boolean,
default: true
}
default: true,
},
};
+12 -12
View File
@@ -7,9 +7,9 @@ test('click event', () => {
const wrapper = mount(Cell, {
context: {
on: {
click
}
}
click,
},
},
});
wrapper.trigger('click');
@@ -20,8 +20,8 @@ test('arrow direction', () => {
const wrapper = mount(Cell, {
propsData: {
isLink: true,
arrowDirection: 'down'
}
arrowDirection: 'down',
},
});
expect(wrapper).toMatchSnapshot();
@@ -38,8 +38,8 @@ test('render slot', () => {
</cell>
`,
components: {
Cell
}
Cell,
},
});
expect(wrapper).toMatchSnapshot();
@@ -50,9 +50,9 @@ test('title-style prop', () => {
propsData: {
title: 'title',
titleStyle: {
color: 'red'
}
}
color: 'red',
},
},
});
expect(wrapper).toMatchSnapshot();
@@ -61,8 +61,8 @@ test('title-style prop', () => {
test('CellGroup title slot', () => {
const wrapper = mount(CellGroup, {
scopedSlots: {
title: () => 'CustomTitle'
}
title: () => 'CustomTitle',
},
});
expect(wrapper).toMatchSnapshot();