How to set 0 by default in iview table when the value of a message is empty

the data I passed into the table component data is
tableDatasTotal: [

]
{
  NickName: "1",
  ID: "123123",
  yyDayScore: "-1223",
  yyScore: ""
}

]
but the yyScore line in the table is directly empty. I want 0 to be displayed by default when the table data is empty, as I did in the render function:

render: (h, params) = > {

        return h("td", {
          innerHTML: "0"
        })
      }

but not at all. May I ask how to solve it

Sep.30,2021

if (params.row. Corresponding field = = ") {
return h ('div', {}, 0)
} else {
other operations
}


The second argument to the

render function is an option object options,innerHTML should be placed in the domProps option, but you can't just put it in options.

{
    domProps: {
        innerHTML: '0'
    }
}
Menu