UNPKG

vue

Version:

Reactive, component-oriented view layer for modern web interfaces.

28 lines (21 loc) 745 B
/* @flow */ import Vue from 'core/index' import { patch } from 'weex/runtime/patch' import platformDirectives from 'weex/runtime/directives/index' import { query, isUnknownElement, isReservedTag, mustUseProp } from 'weex/util/index' // install platform specific utils Vue.config.isUnknownElement = isUnknownElement Vue.config.isReservedTag = isReservedTag Vue.config.mustUseProp = mustUseProp // install platform runtime directives Vue.options.directives = platformDirectives // install platform patch function Vue.prototype.__patch__ = patch // wrap mount Vue.prototype.$mount = function ( el?: string | Element, hydrating?: boolean ): Component { return this._mount(el && query(el, this.$document), hydrating) } export default Vue