mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
chore: add trailingComma
This commit is contained in:
@@ -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>
|
||||
|
||||
|
Reference in New Issue
Block a user