Neanderthal Pudding Mix

    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')

    Install

    npm i vue-fixed-block

    DownloadsWeekly Downloads

    0

    Version

    1.0.0

    License

    none

    Unpacked Size

    68.6 kB

    Total Files

    31

    Last publish

    Collaborators

    • domatskiy