在 当前节点信息面板 前面加icon ,要怎么实现
通过给卡片里面元素身上加slot属性,并且值等于title,就可以自定义卡片主题内容了,注意需要取消组件a-card的title属性,不然无效,实现代码如下:
<a-card> <div slot="title"><a-icon type="edit" />我是标题</div> <p>卡片内容</p> </a-card>
title卡片标题string|slot 可以用slot实现啊