import{d as i,t as s,a as t}from"./vendor.cd162bf7.js";var d=i({name:"col-sticky",props:{position:{type:String,default:"top"}},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",style:[this.divStyle,this.sectionStyle]},[this.$slots.default&&this.$slots.default()])])}});export{d as C};
