element-plus [bug report] El pagination activation effect display error

3gtaxfhh  于 2022-10-21  发布在  其他
关注(0)|答案(6)|浏览(285)

Element Plus version

1.0.2-beta.53

OS/Browsers version

chrome/83.0.4103.61

Vue version

3.1.2

https://codepen.io/xiaohai/pen/vYmEeGw

Steps to reproduce

点击 change 按钮, 激活页应该是第 5 页
总页数发生变化后, 没有重新计算分页的值

What is Expected?

https://codepen.io/xiaohai/pen/RwVNLoX

What is actually happening?

https://codepen.io/xiaohai/pen/vYmEeGw

x3naxklr

x3naxklr1#

Translation of this issue:

Element Plus version

1.0.2-beta.53

OS/Browsers version

chrome/83.0.4103.61

Vue version

3.1.2

https://codepen.io/xiaohai/pen/vYmEeGw

Steps to reproduce

Click the change button and the activation page should be page 5

After the total number of pages changes, the pagination value is not recalculated

What is Expected?

https://codepen.io/xiaohai/pen/RwVNLoX

What is actually happening?

https://codepen.io/xiaohai/pen/vYmEeGw

qoefvg9y

qoefvg9y3#

We are working on a breaking change on ElPagination (which will be released ASAP), for now you can use Vue.nextTick(() => { currentPage.value = 5 /* defer setter of currentPage */ }) as a temporary solution. Sorry for the inconvenience.

mitkmikd

mitkmikd4#

We are working on a breaking change on ElPagination (which will be released ASAP), for now you can use Vue.nextTick(() => { currentPage.value = 5 /* defer setter of currentPage */ }) as a temporary solution. Sorry for the inconvenience.

i want to help , but i found a trouble

:aria-current="currentPage === 1"

this aria-current want to do something in currentPage?

ymdaylpp

ymdaylpp5#

aria-current want to do something in currentPage

That's an a11y feature. What's wrong with it?

cbeh67ev

cbeh67ev6#

aria-current want to do something in currentPage

That's an a11y feature. What's wrong with it?

thank you , just wondering

相关问题