0.1.2 • Published 4 years ago

vue-open v0.1.2

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

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.
0.1.2

4 years ago

0.1.1

4 years ago

0.0.1

4 years ago