vue-fixed-block

1.0.0 • Public • Published

install

npm i vue-fixed-block --save-dev

use

<fixed-block
  @changeFix="changeFix"
  :fix-delay="100">
  content
</fixed-block>

example app

import FixedBlock from 'vue-fixed-block'
Vue.use(FixedBlock)

screenshot

fix screen

fixed-block properties

Name Type Required Default Description
fix-delay Number false 2 the offset of the scroll actuation attachment

fixed-block events

Name params Type Description
change-fix fixed Boolean called when the block is attached or detached

Event Bus

events

Name params Type Description
change-fix fixed Boolean called when the block is attached or detached

example events

import {Event} from 'vue-fixed-block'
Event.$on('change-fix', function (fixed) {
  // check 'fixed' param
})
Call up position recalculation
Event.$emit('recalc')

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1
    • latest

Version History

Package Sidebar

Install

npm i vue-fixed-block

Weekly Downloads

1

Version

1.0.0

License

none

Unpacked Size

68.6 kB

Total Files

31

Last publish

Collaborators

  • domatskiy