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
cf709651
Commit
cf709651
authored
May 17, 2022
by
Jenny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: table height
parent
df80d2f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
16 deletions
+3
-16
NormalTable.vue
components/NormalTable/NormalTable.vue
+3
-16
No files found.
components/NormalTable/NormalTable.vue
View file @
cf709651
<
template
>
<view
class=
"normal-table"
:style=
"
{ transform: `scaleY(${scale}) translate(0px, ${elementInfo.height * (scale - 1) /2}px)`}"
>
<view
class=
"normal-table"
>
<NormalTitle
:elementInfo=
"elementInfo"
></NormalTitle>
<scroll-view
scroll-x
scroll-y
class=
"scroll-view_H"
:style=
"[tableConfigStyle]"
>
<view
class=
"table"
>
...
...
@@ -62,8 +62,7 @@
left
:
'start'
,
center
:
'center'
,
right
:
'flex-end'
}
,
scale
:
1
}
}
;
}
,
computed
:
{
...
...
@@ -96,7 +95,6 @@
initChart
()
{
const
that
=
this
that
.
$nextTick
(()
=>
{
that
.
calculateScale
()
that
.
chartTables
=
that
.
elementData
.
dataList
.
chartTables
}
)
}
,
...
...
@@ -107,17 +105,6 @@
uni
.
$emit
(
'handleLinkParams'
,
{
index
,
paramName
,
value
:
value
}
)
}
,
calculateScale
()
{
var
query
=
wx
.
createSelectorQuery
().
in
(
this
);
query
.
select
(
".normal-table"
).
boundingClientRect
(
res
=>
{
const
w
=
res
.
width
const
{
width
,
height
}
=
this
.
elementInfo
const
scale
=
w
/
width
this
.
scale
=
scale
}
).
exec
();
}
,
// 图片增加点击事件,查看全部图片
imageClick
(
index
,
key
)
{
const
images
=
[]
...
...
@@ -167,7 +154,7 @@
<
style
scoped
lang
=
"scss"
>
.
normal
-
table
{
width
:
100
%
;
height
:
100
%
;
height
:
calc
(
100
%
-
20
px
)
;
margin
-
top
:
20
px
;
}
.
scroll
-
view_H
{
...
...
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