Home  >  Q&A  >  body text

javascript - Problems with dynamically loading data in element ui tables

Write a timer that requests background data every 5 seconds, and then passes the data to element ui for table rendering. The data can come out, but the table will jitter when the data is re-rendered, and the user experience is not good. , how to solve it?
When the table is empty, no data is displayed, and the height is as high as one row of tr. When there is data, the height is larger, so jitter occurs when dynamically rendering data.
When there is data:

When there is no data:

天蓬老师天蓬老师2641 days ago891

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2017-06-28 09:28:25

    Set the height of the table to death

    reply
    0
  • Cancelreply