Skip to content

✨ [Feature]: base-select remote support load more #3761

@ichynul

Description

@ichynul

What problem does this feature solve

需求:加载远程数据时,支持加载更多。

目前只能加载一次,不太灵活。
比如一个数据可能总的有30条数据,接口默认返回20条。后面10条本来再加载一下就全部出来了。不支持加载更多的话,只能输入关键字缩小结果集。
那如果我想全部加载出来,只能把默认返回数量放大一些,比如一次返回100条,也能解决上面问题。
但这样有些繁琐,需要为不同的数据接口设置不同的返回数量。

What does the proposed API look like

两种方法,
1、调整远程搜索方法增加一个参数:remote-method: (query:string, more:bool)
2、或者暴露下拉选项到底事件,用户自己实现

What is your project name

none

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request (功能增强)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions