Skip to content

类型: InfiniteListOptions

Hierarchy

  • UseInfiniteQueryOptions

    InfiniteListOptions

属性

enableLoading

enableLoading: boolean | Ref<boolean> | ComputedRef<boolean>

是否在加载数据时调用 showLoading

packages/uni-mp/use-infinite-list/index.d.ts:26


loadingOptions

loadingOptions: ShowLoadingOptions

packages/uni-mp/use-infinite-list/index.d.ts:27


shouldFetchNextOnReachBottom

shouldFetchNextOnReachBottom: boolean | Ref<boolean> | ComputedRef<boolean>

是否在小程序触底时自动拉取下一页列表,默认 true

packages/uni-mp/use-infinite-list/index.d.ts:22


shouldRefreshOnPullDown

shouldRefreshOnPullDown: boolean | Ref<boolean> | ComputedRef<boolean>

是否在小程序触发下拉刷新时重新拉取列表,默认 false

packages/uni-mp/use-infinite-list/index.d.ts:24


table

table: Object

Type declaration

NameType
count(options: Pick<TableOperationQueryOptions, "query">) => BaseTableOperationResponse<number>
create<TPlain>(data: object, options: Pick<TableOperationQueryOptions, "plain"> & { plain?: TPlain }) => BaseTableOperationResponse<TPlain extends true ? object : Response<object>>
createMany(dataList: object[], options: Pick<TableOperationQueryOptions, "enableTrigger">) => BaseTableOperationResponse<CreateManyRecordResponse>
delete(options: Pick<TableOperationQueryOptions, "id" | "enableTrigger" | "offset" | "limit" | "withCount">) => BaseTableOperationResponse<any>
deleteMany(options: Pick<TableOperationQueryOptions, "query" | "enableTrigger" | "offset" | "limit" | "withCount">) => BaseTableOperationResponse<DeleteManyRecordResponse>
find<TPlain>(options: Pick<TableOperationQueryOptions, "query" | "offset" | "limit" | "orderBy" | "expand" | "select" | "withCount" | "plain"> & { plain: TPlain }) => BaseTableOperationResponse<TPlain extends true ? object[] : Response<FindRecordResponse>>
first<TPlain>(options: Pick<TableOperationQueryOptions, "query" | "offset" | "orderBy" | "expand" | "select" | "withCount" | "plain"> & { plain: TPlain }) => BaseTableOperationResponse<TPlain extends true ? object : Response<object>>
get<TPlain>(options: Pick<TableOperationQueryOptions, "id" | "expand" | "select" | "plain"> & { plain: TPlain }) => BaseTableOperationResponse<TPlain extends true ? object : Response<object>>
update<TPlain>(options: Pick<TableOperationQueryOptions, "data" | "id" | "enableTrigger" | "remove" | "offset" | "limit" | "withCount" | "plain" | "unset" | "incrementBy" | "append" | "uAppend" | "patchObject"> & { plain?: TPlain }) => BaseTableOperationResponse<TPlain extends true ? object : Response<object>>
updateMany<TPlain>(options: Pick<TableOperationQueryOptions, "query" | "data" | "enableTrigger" | "remove" | "offset" | "limit" | "withCount" | "plain" | "unset" | "incrementBy" | "append" | "uAppend" | "patchObject"> & { plain?: TPlain }) => BaseTableOperationResponse<TPlain extends true ? UpdateManyRecordResponse : Response<UpdateManyRecordResponse>>

count: (options: Pick<TableOperationQueryOptions, "query">) => BaseTableOperationResponse<number>

-


create: <TPlain>(data: object, options: Pick<TableOperationQueryOptions, "plain"> & { plain?: TPlain }) => BaseTableOperationResponse<TPlain extends true ? object : Response<object>>

-


createMany: (dataList: object[], options: Pick<TableOperationQueryOptions, "enableTrigger">) => BaseTableOperationResponse<CreateManyRecordResponse>

-


delete: (options: Pick<TableOperationQueryOptions, "id" | "enableTrigger" | "offset" | "limit" | "withCount">) => BaseTableOperationResponse<any>

-


deleteMany: (options: Pick<TableOperationQueryOptions, "query" | "enableTrigger" | "offset" | "limit" | "withCount">) => BaseTableOperationResponse<DeleteManyRecordResponse>

-


find: <TPlain>(options: Pick<TableOperationQueryOptions, "query" | "offset" | "limit" | "orderBy" | "expand" | "select" | "withCount" | "plain"> & { plain: TPlain }) => BaseTableOperationResponse<TPlain extends true ? object[] : Response<FindRecordResponse>>

-


first: <TPlain>(options: Pick<TableOperationQueryOptions, "query" | "offset" | "orderBy" | "expand" | "select" | "withCount" | "plain"> & { plain: TPlain }) => BaseTableOperationResponse<TPlain extends true ? object : Response<object>>

-


get: <TPlain>(options: Pick<TableOperationQueryOptions, "id" | "expand" | "select" | "plain"> & { plain: TPlain }) => BaseTableOperationResponse<TPlain extends true ? object : Response<object>>

-


update: <TPlain>(options: Pick<TableOperationQueryOptions, "data" | "id" | "enableTrigger" | "remove" | "offset" | "limit" | "withCount" | "plain" | "unset" | "incrementBy" | "append" | "uAppend" | "patchObject"> & { plain?: TPlain }) => BaseTableOperationResponse<TPlain extends true ? object : Response<object>>

-


updateMany: <TPlain>(options: Pick<TableOperationQueryOptions, "query" | "data" | "enableTrigger" | "remove" | "offset" | "limit" | "withCount" | "plain" | "unset" | "incrementBy" | "append" | "uAppend" | "patchObject"> & { plain?: TPlain }) => BaseTableOperationResponse<TPlain extends true ? UpdateManyRecordResponse : Response<UpdateManyRecordResponse>>

-


packages/uni-mp/use-infinite-list/index.d.ts:20