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


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>

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。