Skip to content

Commit

Permalink
chore: vue instance
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Dec 4, 2019
1 parent b2717bc commit 6362bf9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions components/_util/ContainerRender.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import Vue from 'vue';
import PropTypes from './vue-types';
import Base from '../base';

export default {
props: {
Expand Down Expand Up @@ -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: {
Expand Down

0 comments on commit 6362bf9

Please sign in to comment.