表格循环icon
<a-table :columns="columns" :data-source="data" :rowKey="record=>record.title">
<template slot="tags" slot-scope="tags">
<a-icon :type="tags"/>
</template>
</a-table>
const columns = [{
title: ‘title‘,
dataIndex: ‘title‘,
key: ‘title‘,
},
{
title: ‘tags‘,
key: ‘tags‘,
dataIndex: ‘tags‘,
scopedSlots: { customRender: ‘tags‘ },
}];
const data = [{
tags: "home",
title: "fall",
}];
//获取半选中状态
onCheck(checkedKeys, info) {
console.log(‘onCheck‘, checkedKeys, info);
let checkedKey = checkedKeys.concat(info.halfCheckedKeys);
console.log( JSON.stringify(checkedKey))
},
info.halfCheckedKeys
原文:https://www.cnblogs.com/qkstart/p/13940737.html