加载中......

ant-design-vue a-table在scope-slot中获取column中的key

通过{{column.key}}获取key

<template slot="dwAction" slot-scope="text, record, index, column" style="text-align: center">
	{{column.key}}
</template>

column

title: "title",
key:  "key",
scopedSlots: { customRender: 'dwAction' },
posted @ 2023-02-04 14:23  MarchXD  阅读(249)  评论(0编辑  收藏  举报