美文网首页
理解vue之element-ui中的 slot-scope

理解vue之element-ui中的 slot-scope

作者: 丁先生_b64b | 来源:发表于2019-11-19 12:11 被阅读0次

https://blog.csdn.net/weixin_43208813/article/details/100599447

如果有用过element-ui中的table组件,可能会发现有这么一个写法:

<template slot-scope="scope">

在实际的使用过程中,这种用法当然不仅仅局限于此,其他的地方也会用到。到底这里有什么特别之处呢?

我们看看普通的table用法:

相关文章

网友评论

      本文标题:理解vue之element-ui中的 slot-scope

      本文链接:https://www.haomeiwen.com/subject/sbewictx.html