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