Commit 41f86bbf authored by rockyl's avatar rockyl

语言包补充

parent aa5b8c8c
......@@ -154,5 +154,17 @@
"touchstart": "Touchstart",
"touchend": "Touchend",
"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 @@
"touchstart": "触摸按下",
"touchend": "触摸弹起",
"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";
import i18n from '../i18n'
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) {
Message({
dangerouslyUseHTMLString: true,
......
......@@ -10,7 +10,7 @@
<el-switch v-model="evn.once" @change="v => handleOnceChange(key, v)"></el-switch>
</el-tooltip>-->
<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 icon="el-icon-delete" size="mini" v-if="evn.behaviors && evn.behaviors.length" @click="deleteBehavior(key)">
</el-button>
......
......@@ -33,19 +33,19 @@
</el-form-item>
<el-form-item prop="scaleMode" :label="$t('Scale Mode')">
<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"
:value="value"
:label="key"
:value="key"
:label="label"
></el-option>
</el-select>
</el-form-item>
<el-form-item prop="rendererType" :label="$t('Renderer Type')">
<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"
:value="value"
:label="key"
:value="key"
:label="label"
></el-option>
</el-select>
</el-form-item>
......@@ -65,13 +65,16 @@
import {mapState, mapGetters, mapMutations} from 'vuex';
import {RENDERER_TYPES, SCALE_MODES} from "../../../utils";
export default {
name: "ProjectDetailsDialog",
data() {
const scaleMode = this.$t('scaleMode');
const rendererType = this.$t('rendererType');
return {
visible: false,
SCALE_MODES,
RENDERER_TYPES,
scaleMode,
rendererType,
}
},
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