Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
WX_h5
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
godwithdh
WX_h5
Commits
2ab781a5
Commit
2ab781a5
authored
Dec 14, 2019
by
张锡奇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接触表格组建滚动报错问题
parent
2803f6b4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Table.vue
src/components/Table.vue
+4
-2
No files found.
src/components/Table.vue
View file @
2ab781a5
...
@@ -310,9 +310,11 @@ export default {
...
@@ -310,9 +310,11 @@ export default {
if
(
this
.
isLoad
){
if
(
this
.
isLoad
){
let
thead
=
this
.
$refs
[
'thead'
];
let
thead
=
this
.
$refs
[
'thead'
];
let
tbody
=
this
.
$refs
[
'tbody'
];
let
tbody
=
this
.
$refs
[
'tbody'
];
if
(
this
.
LIST
.
length
>
0
){
tbody
.
scrollTo
(
this
.
x
,
this
.
y
);
tbody
.
scrollTo
(
this
.
x
,
this
.
y
);
thead
.
scrollTo
(
this
.
x
,
0
);
thead
.
scrollTo
(
this
.
x
,
0
);
}
}
}
this
.
isLoad
=
true
;
this
.
isLoad
=
true
;
},
},
beforeDestroy
(){
beforeDestroy
(){
...
...
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