ray-template/assets/index.8edb05c4.js
2023-02-17 14:59:12 +08:00

2 lines
1.5 KiB
JavaScript

import{o as n,Q as i,q as p}from"./naive-ui.7944048f.js";import{e as s,ao as a,d as c}from"./@vue.6f9b3ecc.js";function r(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!c(o)}const m=s({name:"RayLink",setup(){return{handleLinkClick:e=>{window.open(e.src)},avatarOptions:[{key:"yunhome",src:"https://yunkuangao.me/",tooltip:"\u4E91\u4E4B\u5BB6",icon:"https://yunkuangao.me/wp-content/uploads/2022/05/cropped-cropped-QQ%E5%9B%BE%E7%89%8720220511113928.jpg"},{key:"yun-cloud-images",src:"https://yunkuangao.com/",tooltip:"\u4E91\u56FE\u5E8A",icon:"https://yunkuangao.com/images/20170801_005902048_iOS.md.jpg"},{key:"ray-js-note",src:"https://note.youdao.com/s/ObWEe2BB",tooltip:"Ray\u7684\u524D\u7AEF\u5B66\u4E60\u7B14\u8BB0",icon:"https://yunkuangao.com/images/longmao.jpeg"},{key:"ray-js-cover",src:"https://note.youdao.com/s/IC8xKPdB",tooltip:"Ray\u7684\u9762\u8BD5\u9898\u603B\u7ED3",icon:"https://yunkuangao.com/images/longmao.jpeg"},{key:"ray-template-doc",src:"https://xiaodaigua-ray.github.io/ray-template-doc/",tooltip:"Ray Template Doc",icon:"https://yunkuangao.com/images/longmao.jpeg"},{key:"ray-template-doc-out",src:"https://ray-template.yunkuangao.com/",tooltip:"Ray Template Doc (\u56FD\u5185\u5730\u5740)",icon:"https://yunkuangao.com/images/longmao.jpeg"}]}},render(){let o;return a(p,null,r(o=this.avatarOptions.map(t=>a(n,null,{trigger:()=>a(i,{round:!0,src:t.icon,style:["cursor: pointer"],onClick:this.handleLinkClick.bind(this,t),objectFit:"cover"},null),default:()=>t.tooltip})))?o:{default:()=>[o]})}});export{m as R};