Newer
Older
DH_Apicture / src / components / IconSelect / requireIcons.js
@zhangqy zhangqy on 29 Nov 218 bytes first commit
  1. let icons = []
  2. const modules = import.meta.glob('./../../assets/icons/svg/*.svg');
  3. for (const path in modules) {
  4. const p = path.split('assets/icons/svg/')[1].split('.svg')[0];
  5. icons.push(p);
  6. }
  7.  
  8. export default icons