element-plus [Bug Report] el-table will be repeat render.

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

Element Plus version

1.1.0-beta.9

OS/Browsers version

macOS 11.3.1, Edge 93.0.961.38

Vue version

3.2.11

https://codesandbox.io/s/element-plus-table-repeat-render-j9zmq?file=/src/Table.vue

Steps to reproduce

NONE

What is Expected?

When the state of the parent component has not changed, the table component should only be rendered once.

What is actually happening?

repeated render.

ujv3wf0j

ujv3wf0j1#

It seems to be dulicapted of #2976

oknwwptz

oknwwptz2#

@sxzz I am not sure this is a duplicate question. Their situation is somewhat different.

I know table component will use an empty data to render column component once at the beginning, which corresponds to mark 1 in the screenshot below.

But you can also see that after that, the table component was rendered 3 times with real data:

p8h8hvxi

p8h8hvxi3#

/cc @element-plus/backers

相关问题