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
1d287822
Commit
1d287822
authored
Jun 30, 2023
by
leon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:new tabs type
parent
9cdf8a62
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
NormalTabs.vue
components/NormalTabs/NormalTabs.vue
+9
-2
No files found.
components/NormalTabs/NormalTabs.vue
View file @
1d287822
<
template
>
<view
class=
"normal-tabs"
>
<u-tabs
v-if=
"elementInfo.option.tabs.type === '
radio'"
:list=
"elementData.dataList.series"
:is-scroll=
"fals
e"
<u-tabs
v-if=
"elementInfo.option.tabs.type === '
tabs'"
:list=
"elementData.dataList.series"
:is-scroll=
"tru
e"
:current=
"currentTabs"
:active-color=
"elementInfo.option.tabs.activeColor"
:inactive-color=
"elementInfo.option.tabs.color"
:bg-color=
"elementInfo.option.tabs.backgroundColor"
@
change=
"handleTabsChange"
></u-tabs>
:font-size=
"getFontSize()"
@
change=
"handleTabsChange"
>
{{
elementInfo
.
option
.
tabs
.
fontSize
}}
</u-tabs>
<u-subsection
v-if=
"elementInfo.option.tabs.type === 'radio'"
:list=
"elementData.dataList.series"
:current=
"currentTabs"
:active-color=
"elementInfo.option.tabs.activeColor"
:inactive-color=
"elementInfo.option.tabs.color"
:font-size=
"getFontSize()"
@
change=
"handleTabsChange"
></u-subsection>
<template
v-if=
"elementInfo.option.tabs.type === 'select'"
>
<view
class=
"input-group"
>
<u-input
v-model=
"selectValue"
type=
"select"
border=
"true"
...
...
@@ -202,6 +206,9 @@
}
})
return
label
},
getFontSize
()
{
return
this
.
$u
.
common
.
pxToRpx
(
this
.
elementInfo
.
option
.
tabs
.
fontSize
)
}
},
watch
:
{
...
...
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