1.3.1 • Published 3 years ago

hm-web-components v1.3.1

Weekly downloads
83
License
ISC
Repository
-
Last release
3 years ago

web-components

基于antd封装的通用组件。

development

目前组件库中的less文件会合并为统一的style.less,具体项目中需要在global.less中统一引入,如:

...
@import '~hm-web-components/lib/style.less';
...

因此,组件库中只能写className具体名:

<div className="hm-query-container">

本地开发时,可以使用npm link链接到local node_modules,然后在引用的项目中执行npm link hm-web-components

$ cd [hm-web-components path]
$ npm link
$ cd [project path]
$ npm link hm-web-components

打包脚本:

$ yarn build