原文:slot-scope="scope"重复使用出错

如上图,如下代码 lt el table column label 状态 gt lt template slot scope scope gt lt el switch v model scope.row.mg state change userStateChanged scope.row gt lt el switch gt lt template gt lt el table column ...

2020-11-25 14:17 1 464 推荐指数:

查看详情

关于slot-scope="scope"

是什么:作用域插槽 做什么:解决父组件模板的所有东西都会在父级作用域内编译;子组件模板的所有东西都会在子级作用域内编译------父组件的模板是无法使用到子组件模板中的数据 slot-scope的出现却实现了父组件调用子组件内部的数据,子组件的数据通过slot-scope属性传递到了父组件 ...

Fri Jul 26 23:51:00 CST 2019 0 2068