"use strict";const e=require("../../../common/vendor.js");require("../../adapter-vue.js");const i=require("../../utils/env.js"),t=e.defineComponent({__name:"Icon",props:{file:{default:""},size:{},width:{default:"20px"},height:{default:"20px"},hotAreaSize:{}},emits:["onClick"],setup(t,{emit:r}){const n=r,o=t,u=e.computed((()=>{if(o.hotAreaSize)return isNaN(Number(o.hotAreaSize))?String(o.hotAreaSize):`${o.hotAreaSize}px`})),s=e.computed((()=>o.size?o.size:o.width)),f=e.computed((()=>o.size?o.size:o.height)),a=e=>{n("onClick",e)};return(t,r)=>e.e({a:e.unref(i.isApp)},e.unref(i.isApp)?{b:o.file,c:e.unref(s),d:e.unref(f)}:{e:o.file,f:e.unref(s),g:e.unref(f)},{h:e.n(!e.unref(i.isPC)&&"common-icon-container-mobile"),i:e.unref(u),j:e.o$1(a)})}}),r=e._export_sfc(t,[["__scopeId","data-v-fea828e0"]]);wx.createComponent(r);
