didi / didi/cube-ui

[New Feature] scroll组件的forceUpdate方法,期望增加参数,用于区别本次操作是针对上拉还是下拉

Open
#607 1 comment 0 reactions 1 assignee Claimed by @tank0317 View on GitHub
enhancement
Dominant language
JavaScript
Stars
9.1k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

### What problem does this feature solve?
当上拉和下拉都处于loading状态时,如果调用forceUpdate,会只处理下拉的情况而忽略上拉,因为该方法使用的是if..else if...来判断。
希望增加参数,来让使用者区分。

### What does the proposed API look like?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.