首页 > 其他 > 详细

slot-scope="scope" 插槽获取当前对象

时间:2020-06-14 15:05:51      阅读:207      评论:0      收藏:0      [点我收藏+]

slot-scope="scope" 插槽获取当前对象  

 

<el-table :data="tableData" :key="10000" @selection-change="selectChange" style="width: 100%;">
    <el-table-column label="详细" style="color: red;" width="150">
        <template class="fei" slot-scope="scope">
            <el-button size="mini" type="text" :bookId="bookId" @click="bookDetailMethod(scope.row.id)">详情-详情-详情</el-button>
        </template>
    </el-table-column>
</el-table>

技术分享图片

 

slot-scope="scope" 插槽获取当前对象

原文:https://www.cnblogs.com/dafei4/p/13124615.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!