sticky.js 一个vue组件,实现sticky的效果 用法: import Sticky from './Sticky'; <sticky top="0"> <shop-head :shopId="shop.shop_id" :shopName="shop.shop_name" :logo="shop.logo_url" :isStore="shop.is_store" :index="index" :manTip="manTip"></shop-head> </sticky>