Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
VueElementTemplate
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
JIRA
JIRA
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
黄瑜
VueElementTemplate
Commits
4723a02a
Commit
4723a02a
authored
Nov 06, 2017
by
Pan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refine: refine i18n
parent
e05da265
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
42 deletions
+44
-42
en.js
src/lang/en.js
+34
-34
zh.js
src/lang/zh.js
+1
-1
index.js
src/router/index.js
+1
-1
Levelbar.vue
src/views/layout/components/Levelbar.vue
+6
-3
TabsView.vue
src/views/layout/components/TabsView.vue
+2
-3
No files found.
src/lang/en.js
View file @
4723a02a
export
default
{
route
:
{
dashboard
:
'
d
ashboard'
,
introduction
:
'
i
ntroduction'
,
permission
:
'
p
ermission'
,
icons
:
'
i
cons'
,
components
:
'
components:
'
,
componentIndex
:
'
i
ntroduction'
,
tinymce
:
'
t
inymce'
,
dashboard
:
'
D
ashboard'
,
introduction
:
'
I
ntroduction'
,
permission
:
'
P
ermission'
,
icons
:
'
I
cons'
,
components
:
'
Components
'
,
componentIndex
:
'
I
ntroduction'
,
tinymce
:
'
T
inymce'
,
markdown
:
'Markdown'
,
jsonEditor
:
'JSON Editor'
,
dndList
:
'
dnd l
ist'
,
splitPane
:
'Split
p
ane'
,
avatarUpload
:
'
avatar u
pload'
,
dndList
:
'
Dnd L
ist'
,
splitPane
:
'Split
P
ane'
,
avatarUpload
:
'
Avatar U
pload'
,
dropzone
:
'Dropzone'
,
sticky
:
'Sticky'
,
countTo
:
'CountTo'
,
componentMixin
:
'Mixin'
,
backToTop
:
'
b
ackToTop'
,
charts
:
'
c
harts'
,
chartsIndex
:
'
i
ntroduction'
,
keyboardChart
:
'
keyboard c
hart'
,
keyboardChart2
:
'
keyboard c
hart2'
,
lineChart
:
'
l
ine chart'
,
mixChart
:
'
mix c
hart'
,
example
:
'
e
xample'
,
backToTop
:
'
B
ackToTop'
,
charts
:
'
C
harts'
,
chartsIndex
:
'
I
ntroduction'
,
keyboardChart
:
'
Keyboard C
hart'
,
keyboardChart2
:
'
Keyboard C
hart2'
,
lineChart
:
'
L
ine chart'
,
mixChart
:
'
Mix C
hart'
,
example
:
'
E
xample'
,
Table
:
'Table'
,
dynamicTable
:
'
动态t
able'
,
dragTable
:
'
拖拽t
able'
,
inlineEditTable
:
'
table内编辑
'
,
complexTabl
:
'综合t
able'
,
dynamicTable
:
'
Dynamic T
able'
,
dragTable
:
'
Drag T
able'
,
inlineEditTable
:
'
Inline Edit
'
,
complexTabl
e
:
'Complex T
able'
,
tab
:
'Tab'
,
form
:
'Form'
,
createForm
:
'
create f
orm'
,
editForm
:
'
edit f
orm'
,
errorPages
:
'
error p
ages'
,
createForm
:
'
Create F
orm'
,
editForm
:
'
Edit F
orm'
,
errorPages
:
'
Error P
ages'
,
page401
:
'401'
,
page404
:
'404'
,
errorLog
:
'
error l
og'
,
excel
:
'
e
xcel'
,
exportExcel
:
'
export e
xcel'
,
selectExcel
:
'
export s
elected'
,
uploadExcel
:
'
upload e
xcel'
,
exportZip
:
'
z
ip'
,
theme
:
'
t
heme'
,
clipboardDemo
:
'
c
lipboard'
,
i18n
:
'
i
18n'
errorLog
:
'
Error L
og'
,
excel
:
'
E
xcel'
,
exportExcel
:
'
Export E
xcel'
,
selectExcel
:
'
Export S
elected'
,
uploadExcel
:
'
Upload E
xcel'
,
exportZip
:
'
Z
ip'
,
theme
:
'
T
heme'
,
clipboardDemo
:
'
C
lipboard'
,
i18n
:
'
I
18n'
}
}
src/lang/zh.js
View file @
4723a02a
...
...
@@ -28,7 +28,7 @@ export default {
dynamicTable
:
'动态table'
,
dragTable
:
'拖拽table'
,
inlineEditTable
:
'table内编辑'
,
complexTabl
:
'综合table'
,
complexTabl
e
:
'综合table'
,
tab
:
'Tab'
,
form
:
'表单'
,
createForm
:
'创建表单'
,
...
...
src/router/index.js
View file @
4723a02a
...
...
@@ -151,7 +151,7 @@ export const asyncRouterMap = [
{
path
:
'dynamic-table'
,
component
:
_import
(
'example/table/dynamicTable/index'
),
name
:
'dynamicTable'
,
meta
:
{
title
:
'dynamicTable'
}},
{
path
:
'drag-table'
,
component
:
_import
(
'example/table/dragTable'
),
name
:
'dragTable'
,
meta
:
{
title
:
'dragTable'
}},
{
path
:
'inline-edit-table'
,
component
:
_import
(
'example/table/inlineEditTable'
),
name
:
'inlineEditTable'
,
meta
:
{
title
:
'inlineEditTable'
}},
{
path
:
'complex-table'
,
component
:
_import
(
'example/table/complexTable'
),
name
:
'complexTable'
,
meta
:
{
title
:
'complexTabl'
}}
{
path
:
'complex-table'
,
component
:
_import
(
'example/table/complexTable'
),
name
:
'complexTable'
,
meta
:
{
title
:
'complexTabl
e
'
}}
]
},
{
path
:
'tab/index'
,
icon
:
'tab'
,
component
:
_import
(
'example/tab/index'
),
name
:
'tab'
,
meta
:
{
title
:
'tab'
}}
...
...
src/views/layout/components/Levelbar.vue
View file @
4723a02a
<
template
>
<el-breadcrumb
class=
"app-levelbar"
separator=
"/"
>
<el-breadcrumb-item
v-for=
"(item,index) in levelList"
:key=
"item.path"
v-if=
'item.meta.title'
>
<span
v-if=
'item.redirect==="noredirect"||index==levelList.length-1'
class=
"no-redirect"
>
{{
item
.
meta
.
title
}}
</span>
<router-link
v-else
:to=
"item.redirect||item.path"
>
{{
item
.
meta
.
title
}}
</router-link>
<span
v-if=
'item.redirect==="noredirect"||index==levelList.length-1'
class=
"no-redirect"
>
{{
generateTitle
(
item
.
meta
.
title
)
}}
</span>
<router-link
v-else
:to=
"item.redirect||item.path"
>
{{
generateTitle
(
item
.
meta
.
title
)
}}
</router-link>
</el-breadcrumb-item>
</el-breadcrumb>
</
template
>
...
...
@@ -26,9 +26,12 @@ export default {
}
const
first
=
matched
[
0
]
if
(
first
&&
first
.
name
!==
'dashboard'
)
{
matched
=
[{
path
:
'/'
,
meta
:
{
title
:
'
首页
'
}}].
concat
(
matched
)
matched
=
[{
path
:
'/'
,
meta
:
{
title
:
'
dashboard
'
}}].
concat
(
matched
)
}
this
.
levelList
=
matched
},
generateTitle
(
title
)
{
return
this
.
$t
(
'route.'
+
title
)
}
},
watch
:
{
...
...
src/views/layout/components/TabsView.vue
View file @
4723a02a
<
template
>
<scroll-pane
class=
'tabs-view-container'
>
<router-link
class=
"tabs-view-item"
:class=
"isActive(tag)?'active':''"
v-for=
"tag in Array.from(visitedViews)"
:to=
"tag.path"
:key=
"tag.path"
>
{{
tag
.
title
}}
<router-link
class=
"tabs-view-item"
:class=
"isActive(tag)?'active':''"
v-for=
"tag in Array.from(visitedViews)"
:to=
"tag.path"
:key=
"tag.path"
>
{{
$t
(
'route.'
+
tag
.
title
)
}}
<span
class=
'el-icon-close'
@
click=
'closeViewTabs(tag,$event)'
></span>
</router-link>
</scroll-pane>
</
template
>
<
script
>
import
ScrollPane
from
'@/components/ScrollPane'
...
...
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