在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問(wèn)答/HTML/ 初擁element-ui,出現(xiàn)$refs報(bào)錯(cuò)

初擁element-ui,出現(xiàn)$refs報(bào)錯(cuò)

<div class="tab_box">
<el-table :data="oderList" border style="width: 100%" max-height="250">
<el-table-column fixed prop="orderStatusName" label="訂單狀態(tài)" width="150"></el-table-column>
<el-table-column fixed="right" label="操作" width="100">
<template slot-scope="scope">
<el-button @click="handleClick(scope.row)" type="text" size="small">查看</el-button>
<el-button type="text" size="small">編輯</el-button>
</template>
</el-table-column>
</el-table>
</div>

clipboard.png

請(qǐng)教一下大牛,該怎么解決,謝謝

回答
編輯回答
祉小皓

在<el-table>上設(shè)置一個(gè)ref="multipleTable"屬性,相當(dāng)于給表格一個(gè)名字,然后通過(guò)this.$refs.multipleTable就可以拿到表格

2017年2月6日 16:45