honey-theme

修改Readme

Usage no npm install needed!

<script type="module">
  import honeyTheme from 'https://cdn.skypack.dev/honey-theme';
</script>

README

目录

honey-theme

honey-theme 是 “Honeycomb系统” 的通用样式库,在各项目、产品线之间,共享使用;

使用库:

yarn add honey-theme

页面中:

import {Button} frome 'antd';

import {buttonStyle} from 'honey-theme/common/button/style/index.less';

更新库:

yarn add honey-theme@latest

发布库: 在样式库目录 /honeyTheme 下执行:

npm link;

在项目目录下执行:

npm link honey-theme;

在项目中修改测试样式; 测试通过后修改版本号、加入更新说明后,执行:

npm publish

样式库代码地址,请从前端组长处获取

版本更新信息

v1.0.4

功能: icon样式支持扩展

icon扩展方法: 1.在public/icons/目录下增加扩展图标文件 (.ttf, .eot, .woff,.svg )

2.在添加文件src/iconfonts/index.less,在其中写入图标样式

注:webpack.config.js下的config.resolve.modules配置有误,应改为['node_modules', '../src']

v1.0.5

功能:mes样式,menu和button的样式

使用 honey-theme/mes/.../style/index.less引用

v1.0.6

功能:mes样式,form, grid, input, pagination, table, tab的样式

使用 honey-theme/mes/.../style/index.less引用

v1.0.7

功能:mes样式中复制所有原有样式,图标改为本地部署

使用 antd图标路径icons/iconfont, 扩展图标路径icons/e-iconfont

v1.0.8

修复:扩展图标在 firefox 下不显示问题