作用域插槽

121 阅读1分钟

作用: 作用域插槽实际上是带有数据的插槽,可以获取到父组件传递的参数,将这些参数使用到子组件插槽里

  <template slot-scope="scope">
  
  </template>