"use strict";const e=require("./icons.js"),t=require("../../../../common/vendor.js"),i={name:"UniIcons",emits:["click"],props:{type:{type:String,default:""},color:{type:String,default:"#333333"},size:{type:[Number,String],default:16},customPrefix:{type:String,default:""}},data:()=>({icons:e.icons.glyphs}),computed:{unicode(){let e=this.icons.find((e=>e.font_class===this.type));return e?unescape(`%u${e.unicode}`):""},iconSize(){return"number"==typeof(e=this.size)||/^[0-9]*$/g.test(e)?e+"px":e;var e}},methods:{_onClick(){this.$emit("click")}}};const n=t._export_sfc(i,[["render",function(e,i,n,o,c,r){return{a:n.color,b:r.iconSize,c:t.n("uniui-"+n.type),d:t.n(n.customPrefix),e:t.n(n.customPrefix?n.type:""),f:t.o(((...e)=>r._onClick&&r._onClick(...e)))}}]]);wx.createComponent(n);
