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'
    }
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b391e8-2c175.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b391e8-2c175.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?