Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
E
ec-report-refactor
Project
Project
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
lihuizhen
ec-report-refactor
Commits
c7f97eaa
Commit
c7f97eaa
authored
Jun 29, 2023
by
Jenny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 横屏页面 tab样式修改
parent
343187e7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
NormalTabs.vue
components/NormalTabs/NormalTabs.vue
+2
-2
fullscreen.vue
pages/fullscreen/fullscreen.vue
+10
-3
No files found.
components/NormalTabs/NormalTabs.vue
View file @
c7f97eaa
...
...
@@ -17,7 +17,7 @@
:indicator-dots=
"tabsGroup.length > 1"
:style=
"[tabsStyle]"
:indicator-color=
"'#ccc'"
:indicator-active-color=
"elementInfo.option.tabs.backgroundColor"
>
<swiper-item
:class=
"[styleType === 'vertical' ? 'tab-vertical' : 'tab-group']"
v-for=
"(item, index) in tabsGroup"
:key=
"index"
>
<view
class=
"tab-item"
:class=
"
[tabsValue == tab.value ? 'active' : '']
"
v-for=
"tab in item"
<view
class=
"tab-item"
:class=
"
{'active': tabsValue == tab.value}
"
v-for=
"tab in item"
:key=
"tab.value"
@
click=
"handleChangeTabValue(tab.value)"
>
{{ tab.name }}
</view>
...
...
@@ -226,7 +226,7 @@
display
:
flex
!
important
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
space-evenly
;
}
.tab-item
{
...
...
pages/fullscreen/fullscreen.vue
View file @
c7f97eaa
<
template
>
<view
class=
"wrapper"
:class=
"
{'tabs-layout': showTabs}">
<!-- 普通选项卡 -->
<NormalTabs
v-if=
"showTabs"
:elementInfo=
"tabsElement"
styleType=
"vertical"
style=
"width: 15%;"
></NormalTabs>
<view
:style=
"
{height: `${theStyle.height}px`, width: `${theStyle.width}px`}">
<NormalTabs
v-if=
"showTabs"
:elementInfo=
"tabsElement"
styleType=
"vertical"
style=
"width: 80px;"
:style=
"
{paddingLeft: `${theStyle.left}px`}"
>
</NormalTabs>
<view
:style=
"
{height: `${theStyle.height}px`, width: `${theStyle.width - theStyle.left}px`}">
<!-- 普通柱状图 -->
<NormalBar
v-if=
"element.type == 'NormalBar'"
:elementInfo=
"element"
></NormalBar>
<!-- 普通折线图 -->
...
...
@@ -34,7 +40,8 @@
const
reduceBottom
=
screenHeight
-
safeArea
.
bottom
return
{
height
:
windowHeight
-
reduceBottom
,
width
:
this
.
showTabs
?
windowWidth
*
0.85
:
windowWidth
width
:
this
.
showTabs
?
windowWidth
-
80
:
windowWidth
,
left
:
safeArea
.
left
}
},
},
...
...
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