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
98af80fd
Commit
98af80fd
authored
Jan 20, 2022
by
root
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature:add table component
parent
a6492a84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
0 deletions
+51
-0
NormalTable.vue
components/NormalTable/NormalTable.vue
+51
-0
No files found.
components/NormalTable/NormalTable.vue
0 → 100644
View file @
98af80fd
<
template
>
<view
>
<scroll-view
scroll-x=
"true"
>
<view
class=
"scroll-view_H"
>
<u-table
>
<u-tr>
<u-th
style=
"width: 150px;"
v-for=
"(item, index) in elementInfo.table.column"
:key=
"index"
>
{{
item
.
title
}}
</u-th>
</u-tr>
<u-tr
v-for=
"(cell, cellIndex) in elementData.dataList.chartTables"
:key=
"cellIndex"
>
<u-td
style=
"width: 150px;"
v-for=
"(item, index) in elementInfo.table.column"
:key=
"index"
>
{{
cell
[
item
.
dataIndex
]
}}
</u-td>
</u-tr>
</u-table>
</view>
</scroll-view>
</view>
</
template
>
<
script
>
import
echartElementData
from
'@/mixins/echartElementData.js'
export
default
{
name
:
"NormalTable"
,
mixins
:
[
echartElementData
],
data
()
{
return
{
};
},
methods
:
{
initChart
()
{
this
.
$nextTick
(()
=>
{
this
.
endVal
=
this
.
elementData
.
dataList
.
endVal
})
},
}
}
</
script
>
<
style
>
.scroll-view_H
{
width
:
100%
;
display
:
flex
;
flex-wrap
:
nowrap
;
}
</
style
>
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