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
d710c6ae
Commit
d710c6ae
authored
Jan 07, 2019
by
Sendya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: #45 height overflow
parent
4a0506dd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
107 additions
and
104 deletions
+107
-104
App.vue
src/App.vue
+52
-47
GlobalFooter.vue
src/components/page/GlobalFooter.vue
+55
-57
GlobalLayout.vue
src/components/page/GlobalLayout.vue
+0
-0
No files found.
src/App.vue
View file @
d710c6ae
<
template
>
<a-locale-provider
:locale=
"locale"
>
<div
id=
"app"
>
<router-view/>
</div>
</a-locale-provider>
</
template
>
<
script
>
import
zhCN
from
'ant-design-vue/lib/locale-provider/zh_CN'
import
{
deviceEnquire
,
DEVICE_TYPE
}
from
'@/utils/device'
import
{
version
}
from
'ant-design-vue'
export
default
{
data
()
{
return
{
locale
:
zhCN
,
version
}
},
mounted
()
{
const
{
$store
}
=
this
console
.
log
(
'use Ant-Design Of Vue:'
,
version
)
deviceEnquire
(
deviceType
=>
{
switch
(
deviceType
)
{
case
DEVICE_TYPE
.
DESKTOP
:
$store
.
commit
(
'TOGGLE_DEVICE'
,
'desktop'
)
$store
.
dispatch
(
'setSidebar'
,
true
)
break
case
DEVICE_TYPE
.
TABLET
:
console
.
log
(
'tablet'
)
$store
.
dispatch
(
'ToggleDevice'
,
'tablet'
)
$store
.
dispatch
(
'setSidebar'
,
false
)
break
case
DEVICE_TYPE
.
MOBILE
:
default
:
$store
.
commit
(
'TOGGLE_DEVICE'
,
'mobile'
)
$store
.
dispatch
(
'setSidebar'
,
false
)
break
}
console
.
log
(
'deviceType'
,
deviceType
)
})
}
}
</
script
>
\ No newline at end of file
<
template
>
<a-locale-provider
:locale=
"locale"
>
<div
id=
"app"
>
<router-view/>
</div>
</a-locale-provider>
</
template
>
<
script
>
import
zhCN
from
'ant-design-vue/lib/locale-provider/zh_CN'
import
{
deviceEnquire
,
DEVICE_TYPE
}
from
'@/utils/device'
import
{
version
}
from
'ant-design-vue'
export
default
{
data
()
{
return
{
locale
:
zhCN
,
version
}
},
mounted
()
{
const
{
$store
}
=
this
console
.
log
(
'use Ant-Design Of Vue:'
,
version
)
deviceEnquire
(
deviceType
=>
{
switch
(
deviceType
)
{
case
DEVICE_TYPE
.
DESKTOP
:
$store
.
commit
(
'TOGGLE_DEVICE'
,
'desktop'
)
$store
.
dispatch
(
'setSidebar'
,
true
)
break
case
DEVICE_TYPE
.
TABLET
:
console
.
log
(
'tablet'
)
$store
.
dispatch
(
'ToggleDevice'
,
'tablet'
)
$store
.
dispatch
(
'setSidebar'
,
false
)
break
case
DEVICE_TYPE
.
MOBILE
:
default
:
$store
.
commit
(
'TOGGLE_DEVICE'
,
'mobile'
)
$store
.
dispatch
(
'setSidebar'
,
false
)
break
}
console
.
log
(
'deviceType'
,
deviceType
)
})
}
}
</
script
>
<
style
>
#app
{
height
:
100%
;
}
</
style
>
\ No newline at end of file
src/components/page/GlobalFooter.vue
View file @
d710c6ae
<
template
>
<div
class=
"footer"
>
<div
class=
"links"
>
<a
href=
"https://pro.ant.design/"
target=
"_blank"
>
Pro 首页
</a>
<a
href=
"https://github.com/ant-design/ant-design-pro"
target=
"_blank"
>
<a-icon
type=
"github"
/>
</a>
<a
href=
"https://ant.design/"
>
Ant Design
</a>
<a
href=
"https://vuecomponent.github.io/ant-design-vue/docs/vue/introduce-cn/"
>
Vue Antd
</a>
<a>
Antd-Vue Version@
{{
version
}}
</a>
</div>
<div
class=
"copyright"
>
Copyright
<a-icon
type=
"copyright"
/>
2018
<span>
白鹭学园技术组出品
</span>
</div>
</div>
</
template
>
<
script
>
import
{
version
}
from
'ant-design-vue'
export
default
{
name
:
'LayoutFooter'
,
data
()
{
return
{
version
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.footer
{
padding
:
0
16px
;
margin
:
48px
0
24px
;
text-align
:
center
;
.links
{
margin-bottom
:
8px
;
a
{
color
:
rgba
(
0
,
0
,
0
,
.45
);
&:hover
{
color
:
rgba
(
0
,
0
,
0
,
.65
);
}
&
:not
(
:last-child
)
{
margin-right
:
40px
;
}
}
}
.copyright
{
color
:
rgba
(
0
,
0
,
0
,
.45
);
font-size
:
14px
;
}
}
<
template
>
<div
class=
"footer"
>
<div
class=
"links"
>
<a
href=
"https://pro.ant.design/"
target=
"_blank"
>
Pro 首页
</a>
<a
href=
"https://github.com/ant-design/ant-design-pro"
target=
"_blank"
>
<a-icon
type=
"github"
/>
</a>
<a
href=
"https://ant.design/"
>
Ant Design
</a>
<a
href=
"https://vuecomponent.github.io/ant-design-vue/docs/vue/introduce-cn/"
>
Vue Antd
</a>
</div>
<div
class=
"copyright"
>
Copyright
<a-icon
type=
"copyright"
/>
2018
<span>
白鹭学园技术组出品
</span>
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
'LayoutFooter'
,
data
()
{
return
{
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.footer
{
padding
:
0
16px
;
margin
:
48px
0
24px
;
text-align
:
center
;
.links
{
margin-bottom
:
8px
;
a
{
color
:
rgba
(
0
,
0
,
0
,
.45
);
&:hover
{
color
:
rgba
(
0
,
0
,
0
,
.65
);
}
&
:not
(
:last-child
)
{
margin-right
:
40px
;
}
}
}
.copyright
{
color
:
rgba
(
0
,
0
,
0
,
.45
);
font-size
:
14px
;
}
}
</
style
>
\ No newline at end of file
src/components/page/GlobalLayout.vue
View file @
d710c6ae
This diff is collapsed.
Click to expand it.
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