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

View File

@@ -41,7 +41,7 @@ const images = [
'https://img.yzcdn.cn/vant/apple-1.jpg',
'https://img.yzcdn.cn/vant/apple-2.jpg',
'https://img.yzcdn.cn/vant/apple-3.jpg',
'https://img.yzcdn.cn/vant/apple-4.jpg'
'https://img.yzcdn.cn/vant/apple-4.jpg',
];
export default {
@@ -51,22 +51,22 @@ export default {
button2: '指定初始位置',
button3: '异步关闭',
componentCall: '组件调用',
index: index => `${index + 1}`
index: index => `${index + 1}`,
},
'en-US': {
button1: 'Show Images',
button2: 'Custom Start Position',
button3: 'Async Close',
componentCall: 'Component Call',
index: index => `Page: ${index}`
}
index: index => `Page: ${index}`,
},
},
data() {
return {
show: false,
images,
index: 0
index: 0,
};
},
@@ -86,7 +86,7 @@ export default {
swipeDuration: 300,
asyncClose: !!timer,
closeOnPopstate: true,
startPosition: typeof position === 'number' ? position : 0
startPosition: typeof position === 'number' ? position : 0,
});
if (timer) {
@@ -94,8 +94,8 @@ export default {
instance.close();
}, timer);
}
}
}
},
},
};
</script>