chore: prettier source code

This commit is contained in:
chenjiahan
2020-04-02 15:36:02 +08:00
parent 340c56b3b5
commit 2fb5cca49a
93 changed files with 272 additions and 283 deletions
+2 -2
View File
@@ -57,7 +57,7 @@ export default {
customCount: '自定义数量',
readonly: '只读状态',
changeEvent: '监听 change 事件',
toastContent: value => `当前值:${value}`,
toastContent: (value) => `当前值:${value}`,
},
'en-US': {
halfStar: 'Half Star',
@@ -67,7 +67,7 @@ export default {
customCount: 'Custom Count',
readonly: 'Readonly',
changeEvent: 'Change Event',
toastContent: value => `current value${value}`,
toastContent: (value) => `current value${value}`,
},
},
+3 -1
View File
@@ -96,7 +96,9 @@ export default createComponent({
this.touchStart(event);
const rects = this.$refs.items.map(item => item.getBoundingClientRect());
const rects = this.$refs.items.map((item) =>
item.getBoundingClientRect()
);
const ranges = [];
rects.forEach((rect, index) => {
+1 -1
View File
@@ -17,7 +17,7 @@ test('change event', () => {
const wrapper = mount(Rate, {
listeners: {
input: value => {
input: (value) => {
onInput(value);
wrapper.setProps({ value });
},