Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
polysoft-nafmii
/
polysoft-h5
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3d3125d2
authored
Jun 08, 2021
by
amateur
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
1232fb09
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
33 deletions
src/assets/css/tabsmixin.less
src/views/news/index.vue
src/views/selfregulating/index.vue
src/assets/css/tabsmixin.less
View file @
3d3125d
@NavHeight: 4
2
px;
@NavHeight: 4
0
px;
/deep/.van-tabs {
/deep/.van-tabs {
...
@@ -10,8 +10,9 @@
...
@@ -10,8 +10,9 @@
padding-bottom: 0;
padding-bottom: 0;
.van-tab {
.van-tab {
font-size: 15px;
font-size
: 15px;
color : white;
color : white;
padding-bottom: 5px;
}
}
.van-tab--active {
.van-tab--active {
...
@@ -20,7 +21,7 @@
...
@@ -20,7 +21,7 @@
.van-tabs__line {
.van-tabs__line {
background: white;
background: white;
bottom :
2
px;
bottom :
4
px;
}
}
}
}
}
}
...
...
src/views/news/index.vue
View file @
3d3125d
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<div
class=
"nav-placeholder"
></div>
<div
class=
"nav-placeholder"
></div>
</
template
>
</
template
>
</nafm-header>
</nafm-header>
<van-tabs
v-model=
"active"
animated
scrollspy
class=
"news
-tabs"
>
<van-tabs
v-model=
"active"
animated
scrollspy
swipe-threshold=
"3"
class=
"data
-tabs"
>
<van-tab
:title=
"item.name"
v-for=
"(item,idx) in tabs"
:key=
"idx"
>
<van-tab
:title=
"item.name"
v-for=
"(item,idx) in tabs"
:key=
"idx"
>
<DataListLayout
:tab=
"item"
/>
<DataListLayout
:tab=
"item"
/>
</van-tab>
</van-tab>
...
@@ -43,7 +43,8 @@ export default {
...
@@ -43,7 +43,8 @@ export default {
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
@PlaceholderHeight
:
40px
;
@import
'~@/assets/css/tabsmixin.less'
;
@PlaceholderHeight
:
42px
;
.news
{
.news
{
height
:
100%
;
height
:
100%
;
display
:
flex
;
display
:
flex
;
...
@@ -52,37 +53,12 @@ export default {
...
@@ -52,37 +53,12 @@ export default {
height
:
@
PlaceholderHeight
;
height
:
@
PlaceholderHeight
;
width
:
100%
;
width
:
100%
;
}
}
.
news
-tabs
{
.
data
-tabs
{
flex
:
1
;
flex
:
1
;
z-index
:
10
;
z-index
:
10
;
margin-top
:
calc
(
-
@
PlaceholderHeight
)
;
margin-top
:
-
@
PlaceholderHeight
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
/deep/.van-tabs__wrap
{
height
:
@
PlaceholderHeight
;
.van-tabs__nav
{
background
:
transparent
;
.van-tab
{
font-size
:
15px
;
color
:
white
;
}
.van-tab--active
{
color
:
white
;
font-size
:
19px
;
}
.van-tabs__line
{
background
:
white
;
bottom
:
5px
;
}
}
}
/
deep
/
.van-tabs__content
{
flex
:
1
;
.van-tab__pane
{
height
:
100%
;
}
}
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/selfregulating/index.vue
View file @
3d3125d
...
@@ -51,7 +51,7 @@ export default {
...
@@ -51,7 +51,7 @@ export default {
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
@import
'~@/assets/css/tabsmixin.less'
;
@import
'~@/assets/css/tabsmixin.less'
;
@PlaceholderHeight
:
4
3
px
;
@PlaceholderHeight
:
4
2
px
;
.self-regulating
{
.self-regulating
{
height
:
100%
;
height
:
100%
;
display
:
flex
;
display
:
flex
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment