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
4b4f75fa
Commit
4b4f75fa
authored
Mar 12, 2024
by
linhuandong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
table-layout 中的 setHeight异常处理,升级版本
parent
d200ad43
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
10 deletions
+11
-10
examples/versions.json
examples/versions.json
+1
-1
package.json
package.json
+1
-1
packages/table/src/table-layout.js
packages/table/src/table-layout.js
+8
-7
src/index.js
src/index.js
+1
-1
No files found.
examples/versions.json
View file @
4b4f75fa
{
"1.4.13"
:
"1.4"
,
"2.0.11"
:
"2.0"
,
"2.1.0"
:
"2.1"
,
"2.2.2"
:
"2.2"
,
"2.3.9"
:
"2.3"
,
"2.4.11"
:
"2.4"
,
"2.5.4"
:
"2.5"
,
"2.6.3"
:
"2.6"
,
"2.7.2"
:
"2.7"
,
"2.8.2"
:
"2.8"
,
"2.9.2"
:
"2.9"
,
"2.10.1"
:
"2.10"
,
"2.11.1"
:
"2.11"
,
"2.12.0"
:
"2.12"
,
"2.13.2"
:
"2.13"
,
"2.14.1"
:
"2.14"
,
"2.15.7686"
:
"2.15"
}
\ No newline at end of file
{
"1.4.13"
:
"1.4"
,
"2.0.11"
:
"2.0"
,
"2.1.0"
:
"2.1"
,
"2.2.2"
:
"2.2"
,
"2.3.9"
:
"2.3"
,
"2.4.11"
:
"2.4"
,
"2.5.4"
:
"2.5"
,
"2.6.3"
:
"2.6"
,
"2.7.2"
:
"2.7"
,
"2.8.2"
:
"2.8"
,
"2.9.2"
:
"2.9"
,
"2.10.1"
:
"2.10"
,
"2.11.1"
:
"2.11"
,
"2.12.0"
:
"2.12"
,
"2.13.2"
:
"2.13"
,
"2.14.1"
:
"2.14"
,
"2.15.7687"
:
"2.15"
}
\ No newline at end of file
package.json
View file @
4b4f75fa
{
"name"
:
"element-ui"
,
"version"
:
"2.15.768
6
"
,
"version"
:
"2.15.768
7
"
,
"description"
:
"A Component Library for Vue.js."
,
"main"
:
"lib/element-ui.common.js"
,
"files"
:
[
...
...
packages/table/src/table-layout.js
View file @
4b4f75fa
...
...
@@ -62,13 +62,14 @@ class TableLayout {
this
.
height
=
value
;
if
(
!
el
&&
(
value
||
value
===
0
))
return
Vue
.
nextTick
(()
=>
this
.
setHeight
(
value
,
prop
));
if
(
typeof
value
===
'
number
'
)
{
el
.
style
[
prop
]
=
value
+
'
px
'
;
this
.
updateElsHeight
();
}
else
if
(
typeof
value
===
'
string
'
)
{
el
.
style
[
prop
]
=
value
;
this
.
updateElsHeight
();
if
(
el
&&
el
.
style
)
{
if
(
typeof
value
===
'
number
'
)
{
el
.
style
[
prop
]
=
value
+
'
px
'
;
this
.
updateElsHeight
();
}
else
if
(
typeof
value
===
'
string
'
)
{
el
.
style
[
prop
]
=
value
;
this
.
updateElsHeight
();
}
}
}
...
...
src/index.js
View file @
4b4f75fa
...
...
@@ -212,7 +212,7 @@ if (typeof window !== 'undefined' && window.Vue) {
}
export
default
{
version
:
'
2.15.768
6
'
,
version
:
'
2.15.768
7
'
,
locale
:
locale
.
use
,
i18n
:
locale
.
i18n
,
install
,
...
...
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