组件slot信息的调用
vue里有两种调用组件的slot信息的方法
第一种
<template slot-scope="scope">
第二种
<template v-slot="scope">
而第二种可以解构
<template v-slot="{ row, $index }">
vue里有两种调用组件的slot信息的方法
第一种
<template slot-scope="scope">
第二种
<template v-slot="scope">
而第二种可以解构
<template v-slot="{ row, $index }">