
/**
 * 由 Fantastic-admin 提供技术支持
 * Powered by Fantastic-admin
 * https://fantastic-admin.hurui.me
 */
  
import{_ as e}from"./src-CLMBPGj1.js";import{C as t,Tt as n}from"./reactivity.esm-bundler-D9OPVc9J.js";import{D as r,_ as i,b as a,bt as o,k as s,mt as c,nt as l,o as u,qt as d,tt as f}from"./runtime-core.esm-bundler-D-xeQwTN.js";import{t as p}from"./page-header-CflkT4MF.js";import{y as m}from"./devtools-Bpr7ZAVB-R4s68mQv.js";var h=s({name:`FeatureExampleScroll`,__name:`scroll`,setup(s){let h=t(0);return l(()=>{f(()=>{document.documentElement.scrollTop=h.value})}),m((e,t,n)=>{h.value=document.documentElement.scrollTop,n()}),(t,s)=>{let l=p,f=e;return c(),a(`div`,null,[r(l,{title:`记录滚动位置`,description:`当前路由需开启页面保活。你可以滚动当前页，然后跳转到其它页面，再回来时会自动定位到离开时的滚动位置`}),r(f,{"main-class":`space-y-2`},{default:d(()=>[(c(),a(u,null,o(100,e=>i(`div`,{key:e,class:`p-4 border flex-center`},n(e),1)),64))]),_:1})])}}});export{h as default};