Ant design tree control, how to add icons to nodes for trees generated by asynchronously loading data components

clipboard.png
api
clipboard.png

Dec.09,2021

I was just in the same situation as you. I took a closer look at API, and found that I didn't write this. Just add it!


did you not introduce Icon ?

import { Tree, Icon } from 'antd'
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3ec6b-2b7a3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3ec6b-2b7a3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?