Skip to content

将paganation封装为组件,用prop传值给current赋值,值没赋上 #1989

@jymcareu

Description

@jymcareu
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.5.0

Environment

vue版本 2.6.10

Reproduction link

https://www.antdv.com/components/pagination-cn/

Steps to reproduce

1、先将pagination封装成组件;

2、将pageIndex传进来,default:1;

3、设置 :current="pageIndex";

What is expected?

当前页为1

What is actually happening?

无当前页,下一页按钮也失效。

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions