From 87c343e461a3c9b9dcba94dd23ef95b69f75d002 Mon Sep 17 00:00:00 2001 From: 崔琼雪 Date: Fri, 15 Dec 2017 15:40:41 +0800 Subject: [PATCH] 增加逻辑: 1.当吸顶的时候增加一个div标签占位,可让过度更加顺滑(原有逻辑当到达顶部的时候会会变成绝对定位,后面的标签就会立即顶上去,会有跳动的过程,体验不佳) --- examples/routers/affix.vue | 16 ++++++++++++++-- src/components/affix/affix.vue | 14 ++++++++++++-- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/examples/routers/affix.vue b/examples/routers/affix.vue index fe38a9c..ca6f8de 100644 --- a/examples/routers/affix.vue +++ b/examples/routers/affix.vue @@ -10,12 +10,24 @@ } diff --git a/src/components/affix/affix.vue b/src/components/affix/affix.vue index 44ac12a..8b9cb5e 100644 --- a/src/components/affix/affix.vue +++ b/src/components/affix/affix.vue @@ -1,8 +1,9 @@