mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-04-06 14:30:46 +08:00
Co-authored-by: 07akioni <07akioni2@gmail.com>
This commit is contained in:
parent
5cba49c9ad
commit
95f466cf6f
@ -23,6 +23,7 @@
|
||||
- Fix `n-form-item` validation state is not correctly updated [#6068](https://github.com/tusen-ai/naive-ui/issues/6068).
|
||||
- Fix `n-select`'s header make inner input unavailable, closes [#6030](https://github.com/tusen-ai/naive-ui/issues/6030).
|
||||
- Fix `n-tree` may have incorrect node selection status when `show-irrelevant-nodes` is disabled, close [#6115](https://github.com/tusen-ai/naive-ui/issues/6115).
|
||||
- Fix `n-infinite-scroll` bottoming out judgment error, closes [#6133](https://github.com/tusen-ai/naive-ui/issues/6133).
|
||||
|
||||
### Features
|
||||
|
||||
|
@ -23,6 +23,7 @@
|
||||
- 修复 `n-form-item` 状态更新不正常 [#6068](https://github.com/tusen-ai/naive-ui/issues/6068)
|
||||
- 修复 `n-select` 组件的 header 插槽里 input 无法输入,关闭 [#6030](https://github.com/tusen-ai/naive-ui/issues/6030)
|
||||
- 修复 `n-tree` 组件在禁用 `show-irrelevant-nodes` 时,节点的选中状态可能不正确,关闭 [#6115](https://github.com/tusen-ai/naive-ui/issues/6115)
|
||||
- 修复 `n-infinite-scroll` 组件触底判断错误,关闭 [#6133](https://github.com/tusen-ai/naive-ui/issues/6133)
|
||||
|
||||
### Features
|
||||
|
||||
|
@ -28,17 +28,20 @@ export default defineComponent({
|
||||
const handleCheckBottom = async (): Promise<void> => {
|
||||
const { value: scrollbarInst } = scrollbarInstRef
|
||||
if (scrollbarInst) {
|
||||
const { containerRef, containerScrollTop } = scrollbarInst
|
||||
const { containerRef } = scrollbarInst
|
||||
const scrollHeight = containerRef?.scrollHeight
|
||||
const clientHeight = containerRef?.clientHeight
|
||||
const scrollTop = containerRef?.scrollTop
|
||||
|
||||
if (
|
||||
containerRef
|
||||
&& scrollHeight !== undefined
|
||||
&& clientHeight !== undefined
|
||||
containerRef &&
|
||||
scrollHeight !== undefined &&
|
||||
clientHeight !== undefined &&
|
||||
scrollTop !== undefined
|
||||
) {
|
||||
if (
|
||||
containerScrollTop + clientHeight
|
||||
>= scrollHeight - props.distance
|
||||
scrollTop + clientHeight >=
|
||||
scrollHeight - props.distance
|
||||
) {
|
||||
loading = true
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user