iconfont-tools icon indicating copy to clipboard operation
iconfont-tools copied to clipboard

用第二种组建的方式,显示不出来啊

Open anda88 opened this issue 5 years ago • 3 comments

用第二种组建的方式,显示不出来啊

anda88 avatar Jan 07 '20 16:01 anda88

找到组件 icon.wxml 中将 image 将 t-icon-{{icon}} 改成{{name}} image

ArriveAstral avatar Jan 14 '20 10:01 ArriveAstral

icon.js 里面的 properties 下面也得改成 name

ghostcode avatar Mar 28 '20 14:03 ghostcode

用组件的方式生成后部分有错,需要到组件里去改,属性可以传 icon=你的图标名 在icon.wxml 里 样式 需要改 改成 height:size width: size,打开看看就明白了。还有 icon.wxss里 需要把图标的background属性改成 background-image ,不然的话公共样式就被覆盖了。

TheSunset avatar Jun 23 '20 15:06 TheSunset