"use strict";const e=require("../../../../common/vendor.js"),o=require("../common/util.js"),s=require("./types.js"),t=e.defineComponent({name:"wd-icon",options:{virtualHost:!0,addGlobalClass:!0,styleIsolation:"shared"},props:s.iconProps,emits:["click","touch"],setup(s,{emit:t}){const c=s,n=t,a=e.computed((()=>o.isDef(c.name)&&c.name.includes("/"))),i=e.computed((()=>{const e=c.classPrefix;return`${e} ${c.customClass} ${a.value?"wd-icon--image":e+"-"+c.name}`})),r=e.computed((()=>{const e={};return c.color&&(e.color=c.color),c.size&&(e["font-size"]=o.addUnit(c.size)),`${o.objToStyle(e)} ${c.customStyle}`}));function u(e){n("click",e)}return(o,s)=>e.e({a:a.value},a.value?{b:o.name}:{},{c:e.o(u),d:e.n(i.value),e:e.s(r.value)})}}),c=e._export_sfc(t,[["__scopeId","data-v-8d8eac46"]]);wx.createComponent(c);
