自定义列-插槽
在element中的表单组件中往往会在其中插入一些按钮或者文字而我们通常会使用
<template>
//按钮/文字
</template>
自定义列-作用域插槽
当我们要在插槽中要拿到数据,就用到了作用于插槽
<template slot-scope="scope">
{{ transGender(scope.row.gender) }}
</template>
自定义列-插槽
在element中的表单组件中往往会在其中插入一些按钮或者文字而我们通常会使用
<template>
//按钮/文字
</template>
自定义列-作用域插槽
当我们要在插槽中要拿到数据,就用到了作用于插槽
<template slot-scope="scope">
{{ transGender(scope.row.gender) }}
</template>