【发布时间】:2020-01-17 18:25:46
【问题描述】:
是否可以通过这样的模板传递自定义配置属性?:
<template v-slot:name="{data}" config="myConfig">{{data.field}}</template>
如果可能,我如何在渲染方法中访问它?
let a = this.$scopedSlots.name[0]['config']; //something like this
【问题讨论】:
标签: vue.js vue-component