Skip to content

ElPagination 分页器当页数较多时,点击>>进行跨度分页时会使点击的target为svg,但svg中使用target.className.includes("more")时会报错,因为svg获取到的是SVGAnimatedString 对象 #178

@AdmireYang

Description

@AdmireYang

"@element-plus/nuxt": "^1.1.4"

target.className.includes is not a function

if (target.className.includes("more")) {
if (target.className.includes("quickprev")) {
newPage = currentPage - pagerCountOffset;
} else if (target.className.includes("quicknext")) {
newPage = currentPage + pagerCountOffset;
}
}

这段代码当target为svg时,target.className并不是字符串

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions