index-legacy.6b8d5fc3.js 1.1 KB

1
  1. !function(){var t=document.createElement("style");t.innerHTML="._white_12gjh_1{background-color:#fff}._white_12gjh_1>div{padding:.4rem;box-shadow:0 0 .26667rem rgba(216,216,216,.5)}\n",document.head.appendChild(t),System.register(["./index-legacy.b903c881.js"],(function(t){"use strict";var e,i,n;return{setters:[function(t){e=t.d,i=t.X,n=t.j}],execute:function(){var s={white:"_white_12gjh_1"};t("C",e({name:"col-sticky",props:{position:{type:String,default:"top"},background:{type:String,default:""}},data:function(){return{divStyle:{},sectionStyle:{width:"100%",height:"auto"}}},mounted:function(){var t=this;"top"===this.position?this.divStyle.top="0px":this.divStyle.bottom="0px",this.$nextTick((function(){setTimeout((function(){var e=i(t.$refs.div).height;t.sectionStyle.height="".concat(e,"px"),t.$emit("getHeight",e)}),100)}))},render:function(){return n("div",{style:this.sectionStyle},[n("div",{ref:"div",class:["van-sticky van-sticky--fixed",s[this.background]],style:[this.divStyle,this.sectionStyle]},[this.$slots.default&&this.$slots.default()])])}}))}}}))}();