Iview render repeatedly calls functions

problem description

iview render repeatedly calls the
iview table, and the backend outputs a timestamp. When I formatted it with the function, I formatted it correctly, but printed out six results (there are actually only three pieces of data)

.

formatted successfully

6?

the environmental background of the problems and what methods you have tried

"iview": "^ 2.14.3",
chrome: 68.03
vue: 2.9.6

related codes

/ / Please paste the code text below

    {
      title: "",
      key: "lastTime",
      width: 180,
      align: "center",
      render: (h, params) => {
        let text = $formatTime(params.row.lastTime)
        return h("div", text)
      },
    },

what result do you expect? What is the error message actually seen?

expect to call only once (print out 3 results)

May.12,2021
Whether

uses fixed headers, fixed columns and so on. The previous solution for looking at EelementUI fixed columns is to generate an identical table to cover it

Menu