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