使用  iview的  <Table>  组件,报了个错 

ivue 的报错 TypeError: ctx.injections.tableRoot.$scopedSlots[ctx.props.column.slot] is not a function

 

原因是 我给Table组件的columns中定义了4个含有slot的列,但是实际在<Table>中只使用了其中3个,导致的报错。

也就是,在 Table组件的columns中定义了多少个含有slot的列,那么在<Table>内部必须输出多少个,否则会报错。

相关文章:

  • 2021-08-26
  • 2021-06-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-28
  • 2021-05-15
猜你喜欢
  • 2021-08-20
  • 2021-10-25
  • 2021-12-23
  • 2021-09-11
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案