fix[Sticky]: fixed bug when set stickyTop

pull/1743/head
Mrli2016 6 years ago committed by 花裤衩
parent d1f32a05a8
commit abb1d91a9e

@ -1,6 +1,9 @@
<template>
<div :style="{height:height+'px',zIndex:zIndex}">
<div :class="className" :style="{top:stickyTop+'px',zIndex:zIndex,position:position,width:width,height:height+'px'}">
<div
:class="className"
:style="{top:(isSticky ? stickyTop +'px' : ''),zIndex:zIndex,position:position,width:width,height:height+'px'}"
>
<slot>
<div>sticky</div>
</slot>

Loading…
Cancel
Save