"use strict";const e=require("../../../../common/vendor.js"),o=require("./props.js"),u=require("../../libs/mixin/mpMixin.js"),c=require("../../libs/mixin/mixin.js"),i=require("../../libs/function/index.js"),d={name:"u-link",mixins:[u.mpMixin,c.mixin,o.props],computed:{linkStyle(){return{color:this.color,fontSize:i.addUnit(this.fontSize),lineHeight:i.addUnit(i.getPx(this.fontSize)+2),textDecoration:this.underLine?"underline":"none"}}},emits:["click"],methods:{addStyle:i.addStyle,openLink(){e.index.setClipboardData({data:this.href,success:()=>{e.index.hideToast(),this.$nextTick(()=>{i.toast(this.mpTips)})}}),this.$emit("click")}}};function r(t,_,m,a,p,n){return{a:e.t(t.text),b:e.o((...s)=>n.openLink&&n.openLink(...s)),c:e.s(n.linkStyle),d:e.s(n.addStyle(t.customStyle))}}const l=e._export_sfc(d,[["render",r],["__scopeId","data-v-12f6646d"]]);wx.createComponent(l);
