ant-anchor.a5a364c2.js 1.8 KB

1
  1. import{K as c,a as h}from"./index.dc919d71.js";import{q as p,B as r,o as f,x,M as t,p as o,A as e,v as n,C as s}from"./index.41f763da.js";const m={class:"card-header"},B={class:"font-medium"},w=s(" \u4EFFantdv\u951A\u70B9\uFF0C\u91C7\u7528 "),D=s(" @pureadmin/components "),k=s(" \uFF0C\u5B8C\u5168\u517C\u5BB9antdv\u7684 "),y=s(" Anchor "),C=s(" \u5199\u6CD5 "),g={class:"w-400px"},v=o("header",{id:"one",class:"w-200px h-600px text-cyan-50 flex justify-center items-center text-4xl",style:{background:"#409eff"}}," \u6D4B\u8BD5one ",-1),b=o("header",{id:"two",class:"w-200px h-600px text-cyan-50 flex justify-center items-center text-4xl",style:{background:"#67c23a"}}," \u6D4B\u8BD5two ",-1),A=o("header",{id:"three",class:"w-200px h-600px text-cyan-50 flex justify-center items-center text-4xl",style:{background:"#f56c6c"}}," \u6D4B\u8BD5three ",-1),F={name:"AntAnchor"},z=p({...F,setup(j){function d(l,u){l.preventDefault(),document.getElementById(u.href).scrollIntoView({block:"start",behavior:"smooth"})}return(l,u)=>{const a=r("el-link"),_=r("el-scrollbar"),i=r("el-card");return f(),x(i,null,{header:t(()=>[o("div",m,[o("span",B,[w,e(a,{href:"https://www.npmjs.com/package/@pureadmin/components",target:"_blank",style:{"font-size":"16px",margin:"0 4px 5px"}},{default:t(()=>[D]),_:1}),k,e(a,{href:"https://next.antdv.com/components/anchor-cn",target:"_blank",style:{"font-size":"16px",margin:"0 4px 5px"}},{default:t(()=>[y]),_:1}),C])])]),default:t(()=>[o("div",g,[e(n(h),{class:"float-left mt-200px",onClick:d},{default:t(()=>[e(n(c),{href:"one",title:"\u6D4B\u8BD5one"}),e(n(c),{href:"two",title:"\u6D4B\u8BD5two"}),e(n(c),{href:"three",title:"\u6D4B\u8BD5three"})]),_:1}),e(_,{class:"float-right overflow-auto",height:"600px"},{default:t(()=>[v,b,A]),_:1})])]),_:1})}}});export{z as default};