import{d as i,Y as s,i as e}from"./index.6b776f4b.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};