[Doc] fix demo page (#1050)

This commit is contained in:
neverland 2018-05-12 11:50:50 +08:00 committed by GitHub
parent 74714a41e4
commit 7a295fce88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,19 +16,21 @@
</template>
<script>
export default {
name: 'van-doc-demo-pages',
import { Locale } from '../../../packages';
i18n: {
Locale.add({
'zh-CN': {
vanDocDemoPages: {
title: '示例',
source: '源代码',
description: '下面是一些使用 Vant 搭建的示例页面,点击图片切换至对应示例。',
goodsDetail: '商品详情',
userCenter: '会员中心',
shoppingCart: '购物车'
}
},
'en-US': {
vanDocDemoPages: {
title: 'Demo Pages',
source: 'Source code',
description: 'Here are some of the demo pages built using Vant, click on the picture to switch to the corresponding demo.',
@ -36,7 +38,11 @@ export default {
userCenter: 'User Center',
shoppingCart: 'Shopping Cart'
}
},
}
});
export default {
name: 'van-doc-demo-pages',
data() {
return {