智慧教务系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
610 B

import{r as t,ai as l,a_ as a}from"./index-ed377420.js";function e(){const e=t({title:"",topStatusBar:{style:"style-1",bgColor:"transparent",rollBgColor:"#fff",textColor:"#fff",rollTextColor:"#333"}}),o=t(1),r=t(-1);l((t=>{t.scrollTop<=0?r.value=-1:t.scrollTop>o.value?r.value=1:r.value=2}));return{getScrollBool:()=>r.value,setTopTabbarParam:(t={})=>{if(t&&"object"!=typeof t)return e;for(let l in t)if("title"==l)e.value.title=t.title||"";else if("topStatusBar"==l&&t.topStatusBar)for(let a in t.topStatusBar)e.value.topStatusBar[a]=t.topStatusBar[a];else e.value[l]=t[l];return a(e.value)}}}export{e as t};