Commit 41f86bbf authored by rockyl's avatar rockyl

语言包补充

parent aa5b8c8c
...@@ -154,5 +154,17 @@ ...@@ -154,5 +154,17 @@
"touchstart": "Touchstart", "touchstart": "Touchstart",
"touchend": "Touchend", "touchend": "Touchend",
"touchmove": "Touchmove" "touchmove": "Touchmove"
},
"scaleMode": {
"exactFit": "EXACT_FIT",
"noBorder": "NO_BORDER",
"noScale": "NO_SCALE",
"showAll": "SHOW_ALL",
"fixedWidth": "FIXED_WIDTH",
"fixedHeight": "FIXED_HEIGHT"
},
"rendererType": {
"webgl": "WEBGL",
"canvas": "CANVAS"
} }
} }
\ No newline at end of file
...@@ -154,5 +154,17 @@ ...@@ -154,5 +154,17 @@
"touchstart": "触摸按下", "touchstart": "触摸按下",
"touchend": "触摸弹起", "touchend": "触摸弹起",
"touchmove": "触摸移动" "touchmove": "触摸移动"
},
"scaleMode": {
"exactFit": "精确适配",
"noBorder": "无边框",
"noScale": "不缩放",
"showAll": "全部展示",
"fixedWidth": "宽度锁定",
"fixedHeight": "高度锁定"
},
"rendererType": {
"webgl": "WEBGL",
"canvas": "CANVAS"
} }
} }
\ No newline at end of file
...@@ -6,20 +6,6 @@ import {Message, Loading} from "element-ui"; ...@@ -6,20 +6,6 @@ import {Message, Loading} from "element-ui";
import i18n from '../i18n' import i18n from '../i18n'
import generateUUID from "uuid/v4"; import generateUUID from "uuid/v4";
export const SCALE_MODES = {
EXACT_FIT: "exactFit",
NO_BORDER: "noBorder",
NO_SCALE: "noScale",
SHOW_ALL: "showAll",
FIXED_WIDTH: "fixedWidth",
FIXED_HEIGHT: "fixedHeight",
};
export const RENDERER_TYPES= {
WEBGL: 'webgl',
CANVAS: 'canvas',
};
export function messageError(e) { export function messageError(e) {
Message({ Message({
dangerouslyUseHTMLString: true, dangerouslyUseHTMLString: true,
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<el-switch v-model="evn.once" @change="v => handleOnceChange(key, v)"></el-switch> <el-switch v-model="evn.once" @change="v => handleOnceChange(key, v)"></el-switch>
</el-tooltip>--> </el-tooltip>-->
<el-button size="mini" @click="showBehaviorEditor(evn, key)" style="margin-left: 20px;" icon="el-icon-edit"> <el-button size="mini" @click="showBehaviorEditor(evn, key)" style="margin-left: 20px;" icon="el-icon-edit">
<i v-if="evn.behaviors && evn.behaviors.length" class="el-icon-check el-icon--right"></i> <!--<i v-if="evn.behaviors && evn.behaviors.length" class="el-icon-check el-icon&#45;&#45;right"></i>-->
</el-button> </el-button>
<el-button icon="el-icon-delete" size="mini" v-if="evn.behaviors && evn.behaviors.length" @click="deleteBehavior(key)"> <el-button icon="el-icon-delete" size="mini" v-if="evn.behaviors && evn.behaviors.length" @click="deleteBehavior(key)">
</el-button> </el-button>
......
...@@ -33,19 +33,19 @@ ...@@ -33,19 +33,19 @@
</el-form-item> </el-form-item>
<el-form-item prop="scaleMode" :label="$t('Scale Mode')"> <el-form-item prop="scaleMode" :label="$t('Scale Mode')">
<el-select v-model="options.scaleMode"> <el-select v-model="options.scaleMode">
<el-option v-for="(value, key) in SCALE_MODES" <el-option v-for="(label, key) in scaleMode"
:key="key" :key="key"
:value="value" :value="key"
:label="key" :label="label"
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item prop="rendererType" :label="$t('Renderer Type')"> <el-form-item prop="rendererType" :label="$t('Renderer Type')">
<el-select v-model="options.rendererType"> <el-select v-model="options.rendererType">
<el-option v-for="(value, key) in RENDERER_TYPES" <el-option v-for="(label, key) in rendererType"
:key="key" :key="key"
:value="value" :value="key"
:label="key" :label="label"
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -65,13 +65,16 @@ ...@@ -65,13 +65,16 @@
import {mapState, mapGetters, mapMutations} from 'vuex'; import {mapState, mapGetters, mapMutations} from 'vuex';
import {RENDERER_TYPES, SCALE_MODES} from "../../../utils"; import {RENDERER_TYPES, SCALE_MODES} from "../../../utils";
export default { export default {
name: "ProjectDetailsDialog", name: "ProjectDetailsDialog",
data() { data() {
const scaleMode = this.$t('scaleMode');
const rendererType = this.$t('rendererType');
return { return {
visible: false, visible: false,
SCALE_MODES, scaleMode,
RENDERER_TYPES, rendererType,
} }
}, },
computed: { computed: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment