import{d as i,X as s,j as e}from"./index.3bfa6a0e.js";const o="_white_12gjh_1";var h={white:o},d=i({name:"col-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",this.$nextTick(()=>{setTimeout(()=>{const{height:t}=s(this.$refs.div);this.sectionStyle.height=`${t}px`,this.$emit("getHeight",t)},100)})},render(){return e("div",{style:this.sectionStyle},[e("div",{ref:"div",class:["van-sticky van-sticky--fixed",h[this.background]],style:[this.divStyle,this.sectionStyle]},[this.$slots.default&&this.$slots.default()])])}});export{d as C};
