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
1 lines
610 B
import{r as t,ad as a,aa as l}from"./index-7c3a221b.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);a((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 a in t)if("title"==a)e.value.title=t.title||"";else if("topStatusBar"==a&&t.topStatusBar)for(let l in t.topStatusBar)e.value.topStatusBar[l]=t.topStatusBar[l];else e.value[a]=t[a];return l(e.value)}}}export{e as t};
|
|
|