elementPlus使用el-icon


按着文档来撒
yarn add @element-plus/icons-vue

main.ts

  import * as ElementIcons from '@element-plus/icons-vue'

  for (const key in ElementIcons) {
  	app.component(key, (ElementIcons as any)[key])
  }

单独用的时候

传入变量名用


新框架边搭边玩搞了几天,今天和设计沟通的时候,建议我用TDesign,说比elementUI要好看,他也会按着TD的来设计
至此,我去踩TD的坑了,趁着换插件前写点东西记录一下 、、
拜拜了