iview-theme icon indicating copy to clipboard operation
iview-theme copied to clipboard

fonts 文件打包问题

Open youyou12344 opened this issue 4 years ago • 2 comments

image

请问右侧这个 fonts 文件夹中的文件是否正确,修改 custom.less 后打包一直不成功。 而且,我看了一下,iview-theme 中最新版本的 fonts 文件和 iview 的 fonts 似乎不一样呢,为啥呢?希望耐心教一下。

(在使用自定义主题时,有的字体图标不显示,正在排查原因。)

谢谢~

youyou12344 avatar Nov 26 '20 05:11 youyou12344

最后还是直接修改 iview 的 style 中的 custome.less 吧~

youyou12344 avatar Nov 26 '20 06:11 youyou12344

原本使用了 iview-theme 这个官网工具,但是因为更新不及时有各种问题(字体,动画等)。 研究了一下发现了更加简便的方法,就是直接修改 iview 源码中的 custome.less 文件,然后 build:style。 具体步骤如下:

1、拉取 iview 源码 2、修改 src/styles/custom.less 3、执行 npm run build:style 4、复制 dist/styles 这个文件夹中的所有内容,就等同于使用 iview-theme 生成的。

youyou12344 avatar Nov 26 '20 06:11 youyou12344