Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ant-design-pro-vue
Overview
Overview
Details
Activity
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
tianzhuanghu
ant-design-pro-vue
Commits
cfc3bbcd
Unverified
Commit
cfc3bbcd
authored
Mar 25, 2019
by
Sendya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reactor: v2: ExceptionPage move to components/
parent
c5cdf68a
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
94 additions
and
90 deletions
+94
-90
ExceptionPage.vue
src/components/Exception/ExceptionPage.vue
+87
-87
index.js
src/components/Exception/index.js
+2
-0
type.js
src/components/Exception/type.js
+0
-0
index.js
src/components/index.js
+2
-0
403.vue
src/views/exception/403.vue
+1
-1
404.vue
src/views/exception/404.vue
+1
-1
500.vue
src/views/exception/500.vue
+1
-1
No files found.
src/
views/e
xception/ExceptionPage.vue
→
src/
components/E
xception/ExceptionPage.vue
View file @
cfc3bbcd
<
template
>
<
template
>
<div
class=
"exception"
>
<div
class=
"exception"
>
<div
class=
"img"
>
<div
class=
"img"
>
<img
:src=
"config[type].img"
/>
<img
:src=
"config[type].img"
/>
</div>
</div>
<div
class=
"content"
>
<div
class=
"content"
>
<h1>
{{
config
[
type
].
title
}}
</h1>
<h1>
{{
config
[
type
].
title
}}
</h1>
<div
class=
"desc"
>
{{
config
[
type
].
desc
}}
</div>
<div
class=
"desc"
>
{{
config
[
type
].
desc
}}
</div>
<div
class=
"action"
>
<div
class=
"action"
>
<a-button
type=
"primary"
@
click=
"handleToHome"
>
返回首页
</a-button>
<a-button
type=
"primary"
@
click=
"handleToHome"
>
返回首页
</a-button>
</div>
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
types
from
'./type'
import
types
from
'./type'
export
default
{
export
default
{
name
:
'Exception'
,
name
:
'Exception'
,
props
:
{
props
:
{
type
:
{
type
:
{
type
:
String
,
type
:
String
,
default
:
'404'
default
:
'404'
}
}
},
},
data
()
{
data
()
{
return
{
return
{
config
:
types
config
:
types
}
}
},
},
methods
:
{
methods
:
{
handleToHome
()
{
handleToHome
()
{
this
.
$router
.
push
({
name
:
'dashboard'
})
this
.
$router
.
push
({
name
:
'dashboard'
})
}
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.exception
{
.exception
{
min-height
:
500px
;
min-height
:
500px
;
height
:
80%
;
height
:
80%
;
align-items
:
center
;
align-items
:
center
;
text-align
:
center
;
text-align
:
center
;
margin-top
:
150px
;
margin-top
:
150px
;
.img
{
.img
{
display
:
inline-block
;
display
:
inline-block
;
padding-right
:
52px
;
padding-right
:
52px
;
zoom
:
1
;
zoom
:
1
;
img
{
img
{
height
:
360px
;
height
:
360px
;
max-width
:
430px
;
max-width
:
430px
;
}
}
}
}
.content
{
.content
{
display
:
inline-block
;
display
:
inline-block
;
flex
:
auto
;
flex
:
auto
;
h1
{
h1
{
color
:
#434e59
;
color
:
#434e59
;
font-size
:
72px
;
font-size
:
72px
;
font-weight
:
600
;
font-weight
:
600
;
line-height
:
72px
;
line-height
:
72px
;
margin-bottom
:
24px
;
margin-bottom
:
24px
;
}
}
.desc
{
.desc
{
color
:
rgba
(
0
,
0
,
0
,
.45
);
color
:
rgba
(
0
,
0
,
0
,
.45
);
font-size
:
20px
;
font-size
:
20px
;
line-height
:
28px
;
line-height
:
28px
;
margin-bottom
:
16px
;
margin-bottom
:
16px
;
}
}
}
}
}
}
.mobile
{
.mobile
{
.exception
{
.exception
{
margin-top
:
30px
;
margin-top
:
30px
;
.img
{
.img
{
padding-right
:
unset
;
padding-right
:
unset
;
img
{
img
{
height
:
40%
;
height
:
40%
;
max-width
:
80%
;
max-width
:
80%
;
}
}
}
}
}
}
}
}
</
style
>
</
style
>
src/components/Exception/index.js
0 → 100644
View file @
cfc3bbcd
import
ExceptionPage
from
'./ExceptionPage.vue'
export
default
ExceptionPage
src/
views/e
xception/type.js
→
src/
components/E
xception/type.js
View file @
cfc3bbcd
File moved
src/components/index.js
View file @
cfc3bbcd
...
@@ -22,6 +22,7 @@ import STable from '@/components/Table'
...
@@ -22,6 +22,7 @@ import STable from '@/components/Table'
import
MultiTab
from
'@/components/MultiTab'
import
MultiTab
from
'@/components/MultiTab'
import
Result
from
'@/components/Result'
import
Result
from
'@/components/Result'
import
IconSelector
from
'@/components/IconSelector'
import
IconSelector
from
'@/components/IconSelector'
import
ExceptionPage
from
'@/components/Exception'
export
{
export
{
AvatarList
,
AvatarList
,
...
@@ -46,5 +47,6 @@ export {
...
@@ -46,5 +47,6 @@ export {
STable
,
STable
,
MultiTab
,
MultiTab
,
Result
,
Result
,
ExceptionPage
,
IconSelector
IconSelector
}
}
src/views/exception/403.vue
View file @
cfc3bbcd
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
ExceptionPage
from
'./ExceptionPage
'
import
{
ExceptionPage
}
from
'@/components
'
export
default
{
export
default
{
components
:
{
components
:
{
...
...
src/views/exception/404.vue
View file @
cfc3bbcd
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
ExceptionPage
from
'./ExceptionPage
'
import
{
ExceptionPage
}
from
'@/components
'
export
default
{
export
default
{
components
:
{
components
:
{
...
...
src/views/exception/500.vue
View file @
cfc3bbcd
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
ExceptionPage
from
'./ExceptionPage
'
import
{
ExceptionPage
}
from
'@/components
'
export
default
{
export
default
{
components
:
{
components
:
{
...
...
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