ivue 的报错 TypeError: ctx.injections.tableRoot.$scopedSlots[ctx.props.column.slot] is not a function
使用 iview的 <Table> 组件,报了个错
原因是 我给Table组件的columns中定义了4个含有slot的列,但是实际在<Table>中只使用了其中3个,导致的报错。
也就是,在 Table组件的columns中定义了多少个含有slot的列,那么在<Table>内部必须输出多少个,否则会报错。