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

@@ -16,7 +16,7 @@
<demo-block :title="$t('componentCall')">
<van-button type="primary" @click="show = true">{{ $t('componentCall') }}</van-button>
<van-dialog v-model="show" :title="$t('title')" show-cancel-button :lazy-render="false">
<img :src="image">
<img :src="image" />
</van-dialog>
</demo-block>
</demo-section>
@@ -31,22 +31,22 @@ export default {
confirm: '确认弹窗',
asyncClose: '异步关闭',
componentCall: '组件调用',
content: '代码是写出来给人看的,附带能在机器上运行'
content: '代码是写出来给人看的,附带能在机器上运行',
},
'en-US': {
alert1: 'Alert',
alert2: 'Alert without title',
confirm: 'Confirm dialog',
asyncClose: 'Async Close',
componentCall: 'Component Call'
}
componentCall: 'Component Call',
},
},
data() {
return {
show: false,
currentRate: 0,
image: 'https://img.yzcdn.cn/vant/apple-3.jpg'
image: 'https://img.yzcdn.cn/vant/apple-3.jpg',
};
},
@@ -54,20 +54,20 @@ export default {
onClickAlert() {
this.$dialog.alert({
title: this.$t('title'),
message: this.$t('content')
message: this.$t('content'),
});
},
onClickAlert2() {
this.$dialog.alert({
message: this.$t('content')
message: this.$t('content'),
});
},
onClickConfirm() {
this.$dialog.confirm({
title: this.$t('title'),
message: this.$t('content')
message: this.$t('content'),
});
},
@@ -83,10 +83,10 @@ export default {
this.$dialog.confirm({
title: this.$t('title'),
message: this.$t('content'),
beforeClose
beforeClose,
});
}
}
},
},
};
</script>