import{m as e,o as t,c as n,r as i,a as s,t as o,n as r,b as a,d as l,w as d,i as u,e as f,f as h,g as p}from"./index-52f0fde8.js";import{_ as c}from"./_plugin-vue_export-helper.1b428a4d.js";import{r as m}from"./uni-app.es.add45db9.js";const w=c({name:"uniLink",props:{href:{type:String,default:""},text:{type:String,default:""},download:{type:String,default:""},showUnderLine:{type:[Boolean,String],default:!0},copyTips:{type:String,default:"已自动复制网址，请在手机浏览器里粘贴该网址"},color:{type:String,default:"#999999"},fontSize:{type:[Number,String],default:14}},computed:{isShowA(){return this._isH5=!0,!(!this.isMail()&&!this.isTel()||!0!==this._isH5)}},created(){this._isH5=null},methods:{isMail(){return this.href.startsWith("mailto:")},isTel(){return this.href.startsWith("tel:")},openURL(){window.open(this.href)},makePhoneCall(t){e({phoneNumber:t})}}},[["render",function(e,f,h,p,c,m){const w=u;return m.isShowA?(t(),n("a",{key:0,class:r(["uni-link",{"uni-link--withline":!0===h.showUnderLine||"true"===h.showUnderLine}]),href:h.href,style:a({color:h.color,fontSize:h.fontSize+"px"}),download:h.download},[i(e.$slots,"default",{},(()=>[s(o(h.text),1)]),!0)],14,["href","download"])):(t(),l(w,{key:1,class:r(["uni-link",{"uni-link--withline":!0===h.showUnderLine||"true"===h.showUnderLine}]),style:a({color:h.color,fontSize:h.fontSize+"px"}),onClick:m.openURL},{default:d((()=>[i(e.$slots,"default",{},(()=>[s(o(h.text),1)]),!0)])),_:3},8,["class","style","onClick"]))}],["__scopeId","data-v-45d57582"]]);const S=c({data:()=>({href:"https://uniapp.dcloud.io/component/README?id=uniui"}),methods:{}},[["render",function(e,n,i,o,r,a){const c=f,S=u,_=m(p("uni-link"),w);return t(),l(c,{class:"container"},{default:d((()=>[h(c,{class:"intro"},{default:d((()=>[s("本项目已包含uni ui组件，无需import和注册，可直接使用。在代码区键入字母u，即可通过代码助手列出所有可用组件。光标置于组件名称处按F1，即可查看组件文档。")])),_:1}),h(S,{class:"intro"},{default:d((()=>[s("详见：")])),_:1}),h(_,{href:r.href,text:r.href},null,8,["href","text"])])),_:1})}],["__scopeId","data-v-a60c8e9c"]]);export{S as default};
