0.1.7 • Published 4 years ago

bravo-affix v0.1.7

Weekly downloads
14
License
ISC
Repository
github
Last release
4 years ago

vue-affix

install

npm i bravo-affix

//main.js
import bravoAffix from "bravo-affix"
Vue.install(bravoAffix)

Attributes

Attributesillustratetypeoptionsdefault
bottomreact when reach the offset to bottom of scroll containernumber0
topreact when reach the offset to top of scroll containernumber0
leftreact when reach the offset to left of scroll containernumber0
rightreact when reach the offset to right of scroll containernumber0
targetscroll container of affix,it's a function() => HTMLElement() => document.body

tips

u can use vertical and horizonal attributes at a same time
for example
<bravo-affix :target="() => this.$refs.container" :top="20" :left="20">
    <button>
      Fixed at the top of container
    </button>
</bravo-affix>

--from dongjiayun

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.2

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago