Skip to content

分页组件自定义上下页名称时样式错误 #1985

@imic07

Description

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

Version

1.5.0

Environment

win10/chrome latest/vue 2.6

Reproduction link

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

Steps to reproduce

<a-pagination @change="onChange" :total="queryParam.total" :pageSize="queryParam.pageSize" :itemRender="itemRender" hideOnSinglePage/>

itemRender (current, type, originalElement) {
if (type === 'prev') {
return <a>上一页</a>
} else if (type === 'next') {
return <a>下一页</a>
}
return originalElement
},

What is expected?

当点击到第一页时,上一页按钮灰掉

What is actually happening?

当点击到第一页或者末尾页,上一页按钮或者下一页按钮不自动灰掉

image
调试发现a标签多了个data-v-xxx ,如果把它删除就会正常
image

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