2 lines
2.2 KiB
JavaScript
2 lines
2.2 KiB
JavaScript
import{m as t,o as e,c as n,r as s,n as i,a as o,b as r,w as a,d as l,t as d,i as u,e as f,f as h,g as c}from"./index-lwf-acfi.js";const p=(t,e)=>{const n=t.__vccOpts||t;for(const[s,i]of e)n[s]=i;return n};const w=p({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(e){t({phoneNumber:e})}}},[["render",function(t,f,h,c,p,w){const y=u;return w.isShowA?(e(),n("a",{key:0,class:i(["uni-link",{"uni-link--withline":!0===h.showUnderLine||"true"===h.showUnderLine}]),href:h.href,style:o({color:h.color,fontSize:h.fontSize+"px"}),download:h.download},[s(t.$slots,"default",{},(()=>[l(d(h.text),1)]),!0)],14,["href","download"])):(e(),r(y,{key:1,class:i(["uni-link",{"uni-link--withline":!0===h.showUnderLine||"true"===h.showUnderLine}]),style:o({color:h.color,fontSize:h.fontSize+"px"}),onClick:w.openURL},{default:a((()=>[s(t.$slots,"default",{},(()=>[l(d(h.text),1)]),!0)])),_:3},8,["class","style","onClick"]))}],["__scopeId","data-v-44511933"]]);const y=p({data:()=>({href:"https://uniapp.dcloud.io/component/README?id=uniui"}),methods:{}},[["render",function(t,n,s,i,o,d){const p=h,y=u,S=(m=f("uni-link"),_=w,"string"==typeof m?_:m);var m,_;return e(),r(p,{class:"container"},{default:a((()=>[c(p,{class:"intro"},{default:a((()=>[l("本项目已包含uni ui组件,无需import和注册,可直接使用。在代码区键入字母u,即可通过代码助手列出所有可用组件。光标置于组件名称处按F1,即可查看组件文档。")])),_:1}),c(y,{class:"intro"},{default:a((()=>[l("详见:")])),_:1}),c(S,{href:o.href,text:o.href},null,8,["href","text"])])),_:1})}],["__scopeId","data-v-a60c8e9c"]]);export{y as default};
|