点击查看代码
<vxe-table-column title="xx" field="onwayStock" align="center" width="100"/>
<!-- 弹窗 row代表一行数据 -->
<vxe-column title="yy" align="center" width="100">
<template v-slot="{ row }">
<a class="my-link" @click="getInventory(row.nsId)">{{ row.totalInventoryThirdPart }}</a>
</template>
</vxe-column>
<vxe-table-column title="zz" field="totalInventory" align="center" width="100"/>
使得不仅可以展示数据 还可以调用函数并传入当前行相关数据作为参数