html
<a-directory-tree :selectedKeys="selectedKeys" @select="onSelect" :icon="getIcon">
</a-directory-tree>
修改目录树icon js
getIcon(props) {
const { isLeaf, expanded } = props;
if (isLeaf) {
return <i-table theme="outline" size="18" strokeLinecap="butt" />; //父
} else {
return <i-application-one theme="filled" size="18" />; //子
}
},