Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
f1913d99
Commit
f1913d99
authored
Feb 23, 2017
by
Cyril Su
Committed by
cinwell.li
Feb 23, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Table: Fix wrong height when switch prop height. (#2979)
parent
f1c44858
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
packages/table/src/table.vue
packages/table/src/table.vue
+20
-1
No files found.
packages/table/src/table.vue
View file @
f1913d99
...
...
@@ -8,7 +8,8 @@
'el-table--enable-row-hover': !store.states.isComplex,
'el-table--enable-row-transition': true || (store.states.data || []).length !== 0
&&
(store.states.data || []).length
<
100
}"
@
mouseleave=
"handleMouseLeave($event)"
>
@
mouseleave=
"handleMouseLeave($event)"
:style=
"[tableHeight]"
>
<div
class=
"hidden-columns"
ref=
"hiddenColumns"
><slot></slot></div>
<div
class=
"el-table__header-wrapper"
ref=
"headerWrapper"
v-if=
"showHeader"
>
<table-header
...
...
@@ -294,6 +295,24 @@
return
style
;
},
tableHeight
()
{
let
style
=
{};
const
height
=
this
.
layout
.
tableHeight
?
this
.
layout
.
tableHeight
+
'
px
'
:
''
;
if
(
this
.
height
)
{
style
=
{
height
};
}
else
if
(
this
.
maxHeight
)
{
style
=
{
'
max-height
'
:
height
};
}
return
style
;
},
bodyWidth
()
{
const
{
bodyWidth
,
scrollY
,
gutterWidth
}
=
this
.
layout
;
return
bodyWidth
?
bodyWidth
-
(
scrollY
?
gutterWidth
:
0
)
+
'
px
'
:
''
;
...
...
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