Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

看起来要优化的细节挺多的 #190

Open
ShenYj opened this issue Nov 18, 2020 · 0 comments
Open

看起来要优化的细节挺多的 #190

ShenYj opened this issue Nov 18, 2020 · 0 comments

Comments

@ShenYj
Copy link

ShenYj commented Nov 18, 2020

var filterGoodsList: [Goods] = [] {
        didSet {
            tableView.es.stopPullToRefresh()
            tableView.es.stopLoadingMore()
            
            guard requiredSuccess else { return }
            if pullDownFlag && filterGoodsList.isEmpty {
                tableView.es.noticeNoMoreData()
                return
            }
            if !pullDownFlag && filterGoodsList.count == oldValue.count {
                tableView.es.noticeNoMoreData()
                return
            }
        }
    }

在数据源设置时来控制刷新状态, 我也尝试过机型判断, 在空数据前不调用tableView.es.stopLoadingMore 而是直接调用tableView.es.noticeNoMoreData , 我的需求是想要在下拉刷新的时候实现空数据的效果

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant