index-legacy.e9ff1c6b.js 927 B

1
  1. ;(function(){System.register(['./vendor-legacy.eeb61cf8.js'],function(exports){'use strict';var defineComponent,useRect,createVNode;return{setters:[function(module){defineComponent=module.d;useRect=module.v;createVNode=module.a;}],execute:function execute(){var ColSticky=exports('C',defineComponent({name:'col-sticky',props:{position:{type:String,default:'top'}},data:function data(){return{divStyle:{},sectionStyle:{width:'100%',height:'auto'}};},mounted:function mounted(){if(this.position==='top'){this.divStyle.top='0px';}else{this.divStyle.bottom='0px';}var _useRect=useRect(this.$refs.div),height=_useRect.height;this.sectionStyle.height="".concat(height,"px");},render:function render(){return createVNode("div",{"style":this.sectionStyle},[createVNode("div",{"ref":"div","class":"van-sticky van-sticky--fixed","style":[this.divStyle,this.sectionStyle]},[this.$slots.default&&this.$slots.default()])]);}}));}};});})();