update 汉化ant design
This commit is contained in:
+19
-15
@@ -1,25 +1,28 @@
|
||||
<template>
|
||||
<div id="app">
|
||||
<van-nav-bar
|
||||
v-if="hasNavBar"
|
||||
:class="{'white-style': isWhiteNavBar}"
|
||||
:title="pageTitle"
|
||||
:left-text="hasBack ? $t('back') : ''"
|
||||
:left-arrow="hasBack"
|
||||
:right-text="isChinese ? $t('chinese') : $t('english')"
|
||||
@click-left="handleBack"
|
||||
@click-right="handleChangeLang"
|
||||
/>
|
||||
<div class="scroll-box">
|
||||
<router-view />
|
||||
<a-locale-provider :locale="local">
|
||||
<div id="app">
|
||||
<van-nav-bar
|
||||
v-if="hasNavBar"
|
||||
:class="{'white-style': isWhiteNavBar}"
|
||||
:title="pageTitle"
|
||||
:left-text="hasBack ? $t('back') : ''"
|
||||
:left-arrow="hasBack"
|
||||
:right-text="isChinese ? $t('chinese') : $t('english')"
|
||||
@click-left="handleBack"
|
||||
@click-right="handleChangeLang"
|
||||
/>
|
||||
<div class="scroll-box">
|
||||
<router-view />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a-locale-provider>
|
||||
</template>
|
||||
<script>
|
||||
import Vue from 'vue'
|
||||
import { Locale } from 'vant'
|
||||
import zhCN from 'vant/es/locale/lang/zh-CN'
|
||||
import enUS from 'vant/es/locale/lang/en-US'
|
||||
import zh_CN from 'ant-design-vue/lib/locale-provider/zh_CN'
|
||||
|
||||
const ZH = 'zh-CN'
|
||||
const EN = 'en-US'
|
||||
@@ -28,7 +31,8 @@ export default {
|
||||
name: 'App',
|
||||
data () {
|
||||
return {
|
||||
currentLang: ZH
|
||||
currentLang: ZH,
|
||||
local: zh_CN
|
||||
}
|
||||
},
|
||||
created () {
|
||||
|
||||
@@ -41,6 +41,7 @@ module.exports = {
|
||||
clickToUpload: '点击上传',
|
||||
operation: '操作',
|
||||
strip: '条',
|
||||
total: '共',
|
||||
// 标准法规入库/变更流程
|
||||
standardEntryOrChange: {
|
||||
source: '来源',
|
||||
|
||||
+2
-1
@@ -15,7 +15,7 @@ import { ACCESS_TOKEN, USER_INFO } from '@/store/mutation-types'
|
||||
import './permission'
|
||||
import './assets/font/iconfont.css'
|
||||
|
||||
import { Table, FormModel, Input, Row, Col } from 'ant-design-vue'
|
||||
import { Table, FormModel, Input, Row, Col, LocaleProvider } from 'ant-design-vue'
|
||||
import 'ant-design-vue/dist/antd.css'
|
||||
|
||||
import Viewer from 'v-viewer'
|
||||
@@ -31,6 +31,7 @@ Vue.use(FormModel)
|
||||
Vue.use(Input)
|
||||
Vue.use(Row)
|
||||
Vue.use(Col)
|
||||
Vue.use(LocaleProvider)
|
||||
Vue.use(Viewer)
|
||||
|
||||
Viewer.setDefaults({
|
||||
|
||||
Reference in New Issue
Block a user