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>內部必須輸出多少個,否則會報錯。
相關文章
相關標籤/搜索