Skip to content

Wrong type definition for Pagination #510

@cyyyu

Description

@cyyyu

Description

Just encountered the issue.

wx20170724-173704 2x

Using layout="total, prev, pager, next" as recomended(docs) is wrong and will be fail to pass typescript type checking.

I would say this api is designed too concise. Something like

interface paginationLayout: {
  prev?: boolean
  next?: boolean
  total?: boolean
}

could be better. Just my opinion.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions