1 |
- ;(function(){var __vite_style__=document.createElement('style');__vite_style__.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(__vite_style__);System.register(['./vendor-legacy.09f20d09.js'],function(exports){'use strict';var defineComponent,useRect,createVNode;return{setters:[function(module){defineComponent=module.d;useRect=module.t;createVNode=module.a;}],execute:function execute(){var white="_white_12gjh_1";var styles={white:white};var ColSticky=exports('C',defineComponent({name:'col-sticky',props:{position:{type:String,default:'top'},background:{type:String,default:''}},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',styles[this.background]],"style":[this.divStyle,this.sectionStyle]},[this.$slots.default&&this.$slots.default()])]);}}));}};});})();
|