Nocturnal Pajama Mutants

    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.

    Install

    npm i vue-open

    DownloadsWeekly Downloads

    9

    Version

    0.1.2

    License

    MIT

    Unpacked Size

    22.2 kB

    Total Files

    17

    Last publish

    Collaborators

    • wangpengfeido