1.0.0 • Published 5 years ago

vue-fixed-block v1.0.0

Weekly downloads
28
License
-
Repository
github
Last release
5 years ago

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

NameTypeRequiredDefaultDescription
fix-delayNumberfalse2the offset of the scroll actuation attachment

fixed-block events

NameparamsTypeDescription
change-fixfixedBooleancalled when the block is attached or detached

Event Bus

events

NameparamsTypeDescription
change-fixfixedBooleancalled 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')
1.0.0

5 years ago

0.5.1

5 years ago

0.5.0

5 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago