chore: vue instance

pull/1794/head^2
tangjinzhou 2019-12-04 22:12:38 +08:00
parent b2717bccda
commit 6362bf9edb
1 changed files with 1 additions and 4 deletions

View File

@ -1,6 +1,4 @@
import Vue from 'vue';
import PropTypes from './vue-types';
import Base from '../base';
export default {
props: {
@ -53,8 +51,7 @@ export default {
this.container.appendChild(el);
}
if (!this._component) {
const V = Base.Vue || Vue;
this._component = new V({
this._component = new this.$root.constructor({
el: el,
parent: self.parent,
data: {