vue-open

0.1.2 • Public • Published

vue-open

Open Vue at anywhere.Append Vue to any dom.

Install

npm install vue-open

Reference

import vueOpen from 'vue-open'

API

vueOpen.open({ appendTo, toOpen })

  • appendTo <Element> An element that Vue append to.It is options,default is document.body.
  • toOpen <Vue|typeof Vue|Object> It could be three possibilities:
    • A Vue instance.
    • A Vue component(function).
    • Vue options(object).
  • return <Object> {el, instance, close}
    • el: The element of the Vue instance.
    • instance: The Vue instance.
    • close: A function call to remove the element from dom. If "toOpen" in params is not a Vue instance, the Vue instance auto created will be destroyed.

Versions

Current Tags

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

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    1
  • 0.1.1
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i vue-open

Weekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

22.2 kB

Total Files

17

Last publish

Collaborators

  • wangpengfeido