Files
YG_FT/frontend/dist/assets/scroll-BkzZKETR.js
wuyongtao 9798b34717 feat: 重构前端 dist 构建产物,更新 Docker 配置及文档
- 重新构建 frontend/dist(新版 hash 替换旧版)
- 更新 docker 前端 Dockerfile 及 docker-compose 配置
- 新增 docs/team-development-plan.md 团队开发计划文档
- 更新 README、系统开发计划等文档
- 更新 LoginView 组件

Co-Authored-By: Claude <noreply@anthropic.com>
2026-07-21 12:36:33 +08:00

2 lines
919 B
JavaScript

import{bA as c,c$ as w,bL as a,d0 as m,bd as h}from"./index-BKKvzUDD.js";import{r as v,c as y}from"./raf-C-x62Pcl.js";let n;const S=o=>{var s;if(!c)return 0;if(n!==void 0)return n;const e=document.createElement("div");e.className=`${o}-scrollbar__wrap`,e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);const r=e.offsetWidth;e.style.overflow="scroll";const t=document.createElement("div");t.style.width="100%",e.appendChild(t);const l=t.offsetWidth;return(s=e.parentNode)==null||s.removeChild(e),n=r-l,n};function g(o,e){if(!c)return;if(!e){o.scrollTop=0;return}const r=[];let t=e.offsetParent;for(;t!==null&&o!==t&&o.contains(t);)r.push(t),t=t.offsetParent;const l=e.offsetTop+r.reduce((u,d)=>u+d.offsetTop,0),s=l+e.offsetHeight,i=o.scrollTop,f=i+o.clientHeight;l<i?o.scrollTop=l:s>f&&(o.scrollTop=s-o.clientHeight)}export{S as g,g as s};