import{d as i,at as s,k as t}from"./index.879f7421.js";const o="_white_12gjh_1";var d={white:o},n=i({name:"o-sticky",props:{position:{type:String,default:"top"},background:{type:String,default:""}},data(){return{divStyle:{},sectionStyle:{width:"100%",height:"auto"}}},mounted(){this.position==="top"?this.divStyle.top="0px":this.divStyle.bottom="0px";const{height:e}=s(this.$refs.div);this.sectionStyle.height=`${e}px`},render(){return t("div",{style:this.sectionStyle},[t("div",{ref:"div",class:["van-sticky van-sticky--fixed",d[this.background]],style:[this.divStyle,this.sectionStyle]},[this.$slots.default&&this.$slots.default()])])}});export{n as O};
