神岛 API 文档 - ArenaPro版
    Preparing search index...

    数据查询列表类,用于处理分页查询结果。

    Data query list class, used for handling paginated query results.

    列表中数据的类型。

    The type of data in the list.

    Type Parameters

    • T

    Implements

    • QueryList
    Index

    Properties

    getCurrentPage: () => ReturnValue<T>[]

    Type declaration

      • (): ReturnValue<T>[]
      • Returns ReturnValue<T>[]

    获取当前页的键值对数组。

    Gets the array of key-value pairs for the current page.

    返回当前页的键值对内容。

    Returns the content of the key-value pairs for the current page.

    isLastPage: boolean

    是否为最后一页。如果已经翻到末尾之后,此值也为 true

    Indicates if this is the last page. This will also be true if navigated past the end.

    nextPage: () => Promise<void>

    Type declaration

    翻到下一页。执行后,QueryList.getCurrentPage 将返回下一页的键值对内容。

    Moves to the next page. After execution, QueryList.getCurrentPage will return the key-value pairs for the next page.

    返回一个 Promise,在翻页操作完成后解析。

    Returns a Promise that resolves when the page navigation is complete.