update 汉化ant design
This commit is contained in:
+5
-1
@@ -1,4 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<a-locale-provider :locale="local">
|
||||||
<div id="app">
|
<div id="app">
|
||||||
<van-nav-bar
|
<van-nav-bar
|
||||||
v-if="hasNavBar"
|
v-if="hasNavBar"
|
||||||
@@ -14,12 +15,14 @@
|
|||||||
<router-view />
|
<router-view />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</a-locale-provider>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import { Locale } from 'vant'
|
import { Locale } from 'vant'
|
||||||
import zhCN from 'vant/es/locale/lang/zh-CN'
|
import zhCN from 'vant/es/locale/lang/zh-CN'
|
||||||
import enUS from 'vant/es/locale/lang/en-US'
|
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 ZH = 'zh-CN'
|
||||||
const EN = 'en-US'
|
const EN = 'en-US'
|
||||||
@@ -28,7 +31,8 @@ export default {
|
|||||||
name: 'App',
|
name: 'App',
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
currentLang: ZH
|
currentLang: ZH,
|
||||||
|
local: zh_CN
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ module.exports = {
|
|||||||
clickToUpload: '点击上传',
|
clickToUpload: '点击上传',
|
||||||
operation: '操作',
|
operation: '操作',
|
||||||
strip: '条',
|
strip: '条',
|
||||||
|
total: '共',
|
||||||
// 标准法规入库/变更流程
|
// 标准法规入库/变更流程
|
||||||
standardEntryOrChange: {
|
standardEntryOrChange: {
|
||||||
source: '来源',
|
source: '来源',
|
||||||
|
|||||||
+2
-1
@@ -15,7 +15,7 @@ import { ACCESS_TOKEN, USER_INFO } from '@/store/mutation-types'
|
|||||||
import './permission'
|
import './permission'
|
||||||
import './assets/font/iconfont.css'
|
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 'ant-design-vue/dist/antd.css'
|
||||||
|
|
||||||
import Viewer from 'v-viewer'
|
import Viewer from 'v-viewer'
|
||||||
@@ -31,6 +31,7 @@ Vue.use(FormModel)
|
|||||||
Vue.use(Input)
|
Vue.use(Input)
|
||||||
Vue.use(Row)
|
Vue.use(Row)
|
||||||
Vue.use(Col)
|
Vue.use(Col)
|
||||||
|
Vue.use(LocaleProvider)
|
||||||
Vue.use(Viewer)
|
Vue.use(Viewer)
|
||||||
|
|
||||||
Viewer.setDefaults({
|
Viewer.setDefaults({
|
||||||
|
|||||||
Reference in New Issue
Block a user