Element: [Bug Report] el-table can't show-summary with height when async data

Created on 19 Oct 2019  ·  3Comments  ·  Source: ElemeFE/element

Element UI version

2.12.0

OS/Browsers version

win10 / chrome 77

Vue version

2.6.10

Reproduction Link

https://codepen.io/zsedcbm/pen/VwwmvRx

Steps to reproduce

3 cases

first:

  1. table with height and show-summary and set empty array in start
  2. Set a new array of values to the table
  3. summary not show

second:

  1. table with height and show-summary and set not empty array in start
  2. Set a new array of values to the table
  3. summary show success

third:

  1. table show-summary and without height and set empty array in start
  2. Set a new array of values to the table
  3. summary show success

What is Expected?

  1. table show-summary and without height and set empty array in start
  2. Set a new array of values to the table
  3. summary show success

What is actually happening?

el-table can't show-summary with height when async data

stale

Most helpful comment

  1. 当 el-table 设置了height和show-summary时, 初始化的时候如果是空的数组, 后面设置新的数组, 表尾不会显示
  2. 当 el-table 设置了height和show-summary时, 初始化的时候如果不是空的数组, 后面设置新的数组, 表尾会显示
  3. 当 el-table 设置了show-summary 但是没有设置height时, 初始化的时候如果是空的数组, 后面设置新的数组, 表尾会显示

All 3 comments

  1. 当 el-table 设置了height和show-summary时, 初始化的时候如果是空的数组, 后面设置新的数组, 表尾不会显示
  2. 当 el-table 设置了height和show-summary时, 初始化的时候如果不是空的数组, 后面设置新的数组, 表尾会显示
  3. 当 el-table 设置了show-summary 但是没有设置height时, 初始化的时候如果是空的数组, 后面设置新的数组, 表尾会显示

tableData: [
{

             }
         ],

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chao-hua picture chao-hua  ·  3Comments

yuchonghua picture yuchonghua  ·  3Comments

zhguokai picture zhguokai  ·  3Comments

no5no6 picture no5no6  ·  3Comments

FranzSkuffka picture FranzSkuffka  ·  3Comments