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
cd255f33
Commit
cd255f33
authored
May 19, 2022
by
Jenny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: tabs select default-value
parent
8028086b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
NormalTabs.vue
components/NormalTabs/NormalTabs.vue
+5
-2
No files found.
components/NormalTabs/NormalTabs.vue
View file @
cd255f33
...
...
@@ -19,6 +19,7 @@
/>
<u-select
v-model=
"show"
:default-value=
"defaultValue"
:list=
"elementData.dataList.series"
:safe-area-inset-bottom=
"true"
label-name=
"name"
...
...
@@ -56,7 +57,8 @@
return
{
currentTabs
:
0
,
show
:
false
,
tabsValue
:
''
tabsValue
:
''
,
defaultValue
:
[
0
]
};
},
mounted
()
{
...
...
@@ -87,12 +89,12 @@
'--border-style'
:
`
${
frameWidth
}
px
${
frameStyle
}
${
frameColor
}
`
,
'--item-background-color'
:
itemBackgroundColor
}
}
},
methods
:
{
initChart
(
index
=
0
)
{
this
.
currentTabs
=
index
this
.
defaultValue
=
[
0
]
this
.
tabsValue
=
this
.
elementData
.
dataList
.
series
[
this
.
currentTabs
].
value
},
handleTabsChange
(
index
)
{
...
...
@@ -101,6 +103,7 @@
},
handleSelectChange
(
e
)
{
this
.
tabsValue
=
e
[
0
].
value
this
.
defaultValue
[
0
]
=
[
this
.
elementData
.
dataList
.
series
.
findIndex
(
item
=>
item
.
value
===
e
[
0
].
value
)]
this
.
tabsValueChange
()
},
handleChangeTabValue
(
value
)
{
...
...
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