@whale-you/vue-core

2.5.0 • Public • Published

vue-core

Vue platform-independent core code, build from vue/src/core. Easy to use vue's responsive features.

Usage

installation

npm i vue-core --save

bind __patch__ and $mount

// runtime.js
import Vue from 'vue-core'

Vue.prototype.$mount = function () {
  // do some thing before mount
  // and then mount vue
  Vue.prototype._mountComponent(this)
}
Vue.prototype.__patch__ = function (prevVnode, vnode) {
  // update view as you want when data changed
}

and then use vue as normal

import Vue from 'runtime.js'

const app = new Vue(vueOptions)
app.$mount()

/@whale-you/vue-core/

    Package Sidebar

    Install

    npm i @whale-you/vue-core

    Weekly Downloads

    1

    Version

    2.5.0

    License

    MIT

    Unpacked Size

    103 kB

    Total Files

    3

    Last publish

    Collaborators

    • whale-you