fix scroll list shaking

This commit is contained in:
dengyuqing 2020-10-14 20:24:03 +08:00
parent 356e91be4b
commit 0285837c09
2 changed files with 21 additions and 1 deletions

View file

@ -86,7 +86,12 @@
return `${prefixCls}-wrapper`;
},
scrollContainerClasses() {
return `${prefixCls}-container`;
return [
`${prefixCls}-container`,
{
[`${prefixCls}-container-loading`]: this.showBodyLoader
}
];
},
slotContainerClasses() {
return [

View file

@ -12,6 +12,21 @@
overflow-y: scroll;
}
@keyframes ani-stop-slide {
from {
overflow-y: hidden;
tansform:translateZ(0);
}
to {
overflow-y: scroll;
tansform:translateZ(0);
}
}
&-container-loading {
animation: ani-stop-slide 1.5s;
}
&-content {
opacity: 1;
transition: opacity 0.5s;