Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
imac-vue
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Elements-SY
2023-09-21 18:15:09 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0af9a4f11f57d69282c7660f3ed6e701833ddd82
0af9a4f1
1 parent
1e35f2f8
modify
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/utils/index.js
src/utils/index.js
View file @
0af9a4f
...
...
@@ -401,7 +401,7 @@ export function sortList(arr, key) {
});
}
// 获取计算元素的属性的margin
+ padding + clientHeight
// 获取计算元素的属性的margin
Top + marginBottom + paddingTop + paddingBottom值
function
getPropertyValue
(
el
)
{
let
style
,
marginTop
,
marginBottom
,
paddingTop
,
paddingBottom
;
style
=
window
.
getComputedStyle
(
el
,
null
);
...
...
Please
register
or
login
to post a comment