Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-editor
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
劳工
zeroing-editor
Commits
41f86bbf
Commit
41f86bbf
authored
Nov 21, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
语言包补充
parent
aa5b8c8c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
23 deletions
+36
-23
en.json
src/locales/en.json
+12
-0
zh-CN.json
src/locales/zh-CN.json
+12
-0
index.js
src/utils/index.js
+0
-14
BehaviorTab.vue
src/views/Editor/Inspector/BehaviorTab.vue
+1
-1
ProjectDetailsDialog.vue
src/views/Editor/dialogs/ProjectDetailsDialog.vue
+11
-8
No files found.
src/locales/en.json
View file @
41f86bbf
...
@@ -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
src/locales/zh-CN.json
View file @
41f86bbf
...
@@ -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
src/utils/index.js
View file @
41f86bbf
...
@@ -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
,
...
...
src/views/Editor/Inspector/BehaviorTab.vue
View file @
41f86bbf
...
@@ -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--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>
...
...
src/views/Editor/dialogs/ProjectDetailsDialog.vue
View file @
41f86bbf
...
@@ -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
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment