1.0.0 • Published 2 years ago

@tangbin/icon v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

@tangbin/icon

图标库

Install

# npm
npm install --save @tangbin/icon

# yarn
yarn add @tangbin/icon

Usage

  • 项目中优先使用 ant design 自带的图标库
  • 其次使用通用图标库,位于 /dist/common
  • 最后可以使用各自业务模块的图标库,位于 /dist/xxx

目前已经存在的图标库:

<!-- 通用图标库CND -->
<link rel="stylesheet" href="http://1.12.48.139:18081/css/common/iconfont.css" />

<!-- 业务图标库CND -->
<link rel="stylesheet" href="http://1.12.48.139:18081/css/user/iconfont.css" />
<link rel="stylesheet" href="http://1.12.48.139:18081/css/tag/iconfont.css" />
// 如果不使用CDN,则在项目中直接引入
import '@tangbin/theme/dist/common/iconfont.css';
import '@tangbin/theme/dist/user/iconfont.css';
import '@tangbin/theme/dist/tag/iconfont.css';