组件slot信息的调用

vue里有两种调用组件的slot信息的方法

第一种

<template slot-scope="scope">

第二种

<template v-slot="scope">

而第二种可以解构

 <template v-slot="{ row, $index }">

 

posted @ 2021-11-18 17:46  Pavetr  阅读(108)  评论(0)    收藏  举报