When vue customizes the header to add a button

The

code looks like this, prompting TypeError: Cannot add property isRootInsert, object is not extensible
how to solve

Aug.27,2021

the error should not be here, but somewhere else


render:

renderHeader(h,params) {
  return (
    h('span',[
      h('el-checkbox',{
        props: {
          
        }
      }),
      h('span',params.column.label)
    ])
  )
}

params is an object, including column, $index and other attributes. Take a look at debug or console.log .

Menu