0.3.8 • Published 10 years ago

vue-popper v0.3.8

Weekly downloads
22
License
MIT
Repository
github
Last release
10 years ago

vue-popper

A popper mixin for Vue.js using popper.js.

Demo

https://element-component.github.io/vue-popper/

Usage

import Popper from 'vue-popper'

export default {
  mixins: [Popper],

  props: {
    content: String,
    visibleArrow: {
      default: true
    }
  },

  template: `
    <span>
      <div class="popper" v-el:popper v-show="visible">
        <span v-text="content"></span>
      </div>
      <div class="rel" v-el:reference>
        <slot></slot>
      </div>
    </span>
  `
}

API

OptionDescriptionValueDefault
referenceThe reference element used to position the popper.HTMLElementthis.$els.reference
popperThe HTML element used as popper, or a configuration used to generate the popper.HTMLElementthis.$els.popper
placementPlacement of the popper.top, top-start, top-end, bottom, bottom-start, bottom-end, left, left-start, left-end, right, right-start, right-end'bottom'
offsetAmount of pixels the popper will be shifted (can be negative).Number0
visibleVisibility of the popup element.Booleanfalse
visible-arrowVisibility arrow, no style.Booleanfalse
autoCreateauto init popperBooleantrue
createdcreate popper after callbackFunction(vm)

Methods

  • createPopper

Development

make dev

Production

make dist

License

MIT

0.3.8

10 years ago

0.3.7

10 years ago

0.3.6

10 years ago

0.3.5

10 years ago

0.3.4

10 years ago

0.3.3

10 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago