Skip to content

Commit

Permalink
docs: loadmore FAQ (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
TinaPeach authored May 11, 2024
1 parent c01ebf1 commit f081b14
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/arcodesign/components/load-more/FAQ.en-US.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# FAQ

## The scrolling container monitoring does not take effect. Why the component always triggers "getData" or does not trigger "getData"?

Please check whether `getScrollContainer` (specifies the scroll listening container) is used correctly. When this attribute value is not passed in, the scroll listening container is Window. If getData is always triggered at this time, please check whether the height: 100% style is set for the body. If so, remove it. When specifying a scroll listening container by yourself, the container should meet two conditions: the total height of the internal sub-elements > its own height, and the container itself is set to the "overflow: auto/scroll" style.
5 changes: 5 additions & 0 deletions packages/arcodesign/components/load-more/FAQ.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# FAQ

## 滚动容器监听不生效,组件一直触发 getData 或不触发 getData?

请检查`getScrollContainer`(指定滚动监听容器)是否正确使用。未传入该属性值时,滚动监听容器为 Window,如果此时出现一直触发 getData 的情况,请检查是否为 body 设置了 height: 100% 的样式,如有应去掉。自行指定滚动监听容器时,容器应满足2个条件:内部子元素总高 > 自身高度,且容器本身设置了 overflow: auto/scroll 的样式。

0 comments on commit f081b14

Please sign in to comment.