Ant-design-vue table expandIcon属性,自定义ICON,及异步加载
【代码】Ant-design-vue table expandIcon属性,自定义ICON,及异步加载。
·
expandIcon: function (props) {
let icon = 'ant-design:plus-square-outlined';
if (props.expanded) {
icon = 'ant-design:minus-square-outlined';
} else {
icon = 'ant-design:plus-square-outlined';
}
return h(Icon, {
icon: icon,
onClick: function (e) {
props.onExpand(props.record, e);
},
style: {
fontSize: '22px',
verticalAlign: 'middle',
cursor: 'pointer',
margin: '0 10px 3px 0',
},
});
},
更多推荐
已为社区贡献2条内容
所有评论(0)