1. 替换vue-i18n多语言实现;

2. 修复一丢丢小问题。
This commit is contained in:
vdpAdmin
2022-02-11 17:31:36 +08:00
parent 8fbb9f4647
commit f7885d5774
8 changed files with 250 additions and 163 deletions

View File

@ -287,14 +287,7 @@
border: 1px dashed #336699;
margin: 3px;
//min-height: 36px;
height: 100%;
/*position: absolute;*/
/*top: 0;*/
/*right: 0;*/
/*bottom: 0;*/
/*left: 0;*/
}
.table-cell-action{
@ -307,6 +300,9 @@
background: $--color-primary;
z-index: 999;
display: flex;
align-items: center;
i {
font-size: 14px;
color: #fff;

View File

@ -72,7 +72,7 @@
import {MOCK_CASE_URL, VARIANT_FORM_VERSION} from "@/utils/config"
import i18n, { changeLocale } from "@/utils/i18n"
import axios from 'axios'
import SvgIcon from "@/components/svg-icon/index";
import SvgIcon from "@/components/svg-icon/index"
export default {
name: "VFormDesigner",
@ -123,12 +123,13 @@
return {
vFormVersion: VARIANT_FORM_VERSION,
curLangName: '',
curLocale: '',
vsCodeFlag: false,
caseName: '',
docUrl: 'https://www.vform666.com/document.html',
gitUrl: 'https://github.com/vform666/variant-form',
docUrl: 'https://www.vform666.com/document3.html',
gitUrl: 'https://github.com/vform666/variant-form3-vite',
chatUrl: 'https://www.vform666.com/chat-group.html',
subScribeUrl: 'https://www.vform666.com/subscribe.html',
@ -225,14 +226,14 @@
},
initLocale() {
let curLocale = localStorage.getItem('v_form_locale')
this.curLocale = localStorage.getItem('v_form_locale')
if (!!this.vsCodeFlag) {
curLocale = curLocale || 'en-US'
this.curLocale = this.curLocale || 'en-US'
} else {
curLocale = curLocale || 'zh-CN'
this.curLocale = this.curLocale || 'zh-CN'
}
this.curLangName = this.i18nt('application.' + curLocale)
this.changeLanguage(curLocale)
this.curLangName = this.i18nt('application.' + this.curLocale)
this.changeLanguage(this.curLocale)
},
loadFieldListFromServer() {