UNPKG

@tarojs/components

Version:
1 lines 541 B
import{r as registerInstance,h,H as Host}from"./index-980f930f.js";import{c as classnames}from"./index-c3e4004b.js";var Icon=function(){function e(e){registerInstance(this,e);this.type=undefined;this.size="23";this.color=undefined}e.prototype.render=function(){var e;var r=this,n=r.type,o=r.size,s=r.color;var t=n===null||n===void 0?void 0:n.replace(/_/g,"-");var i=classnames((e={},e["weui-icon-".concat(t)]=true,e));var c={"font-size":"".concat(o,"px"),color:s};return h(Host,{class:i,style:c})};return e}();export{Icon as taro_icon_core};