Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions dist/vuera.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,10 @@ var slicedToArray = function () {
}();

var VUE_COMPONENT_NAME = 'vuera-internal-component-name';
var VUE_CHILDREN_COMPONENT_NAME = 'vuera-internal-react-wrapper';

var wrapReactChildren = function wrapReactChildren(createElement, children) {
return createElement('vuera-internal-react-wrapper', {
return createElement(VUE_CHILDREN_COMPONENT_NAME, {
props: {
component: function component() {
return React.createElement(
Expand Down Expand Up @@ -266,7 +267,7 @@ var VueContainer = function (_React$Component) {
}, [wrapReactChildren(createElement, this.children)]);
},

components: (_components = {}, defineProperty(_components, VUE_COMPONENT_NAME, component), defineProperty(_components, 'vuera-internal-react-wrapper', ReactWrapper), _components)
components: (_components = {}, defineProperty(_components, VUE_COMPONENT_NAME, component), defineProperty(_components, VUE_CHILDREN_COMPONENT_NAME, ReactWrapper), _components)
}));
}
}, {
Expand Down
5 changes: 3 additions & 2 deletions dist/vuera.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,10 @@ var slicedToArray = function () {
}();

var VUE_COMPONENT_NAME = 'vuera-internal-component-name';
var VUE_CHILDREN_COMPONENT_NAME = 'vuera-internal-react-wrapper';

var wrapReactChildren = function wrapReactChildren(createElement, children) {
return createElement('vuera-internal-react-wrapper', {
return createElement(VUE_CHILDREN_COMPONENT_NAME, {
props: {
component: function component() {
return React.createElement(
Expand Down Expand Up @@ -260,7 +261,7 @@ var VueContainer = function (_React$Component) {
}, [wrapReactChildren(createElement, this.children)]);
},

components: (_components = {}, defineProperty(_components, VUE_COMPONENT_NAME, component), defineProperty(_components, 'vuera-internal-react-wrapper', ReactWrapper), _components)
components: (_components = {}, defineProperty(_components, VUE_COMPONENT_NAME, component), defineProperty(_components, VUE_CHILDREN_COMPONENT_NAME, ReactWrapper), _components)
}));
}
}, {
Expand Down
5 changes: 3 additions & 2 deletions dist/vuera.iife.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,10 @@ var slicedToArray = function () {
}();

var VUE_COMPONENT_NAME = 'vuera-internal-component-name';
var VUE_CHILDREN_COMPONENT_NAME = 'vuera-internal-react-wrapper';

var wrapReactChildren = function wrapReactChildren(createElement, children) {
return createElement('vuera-internal-react-wrapper', {
return createElement(VUE_CHILDREN_COMPONENT_NAME, {
props: {
component: function component() {
return React.createElement(
Expand Down Expand Up @@ -263,7 +264,7 @@ var VueContainer = function (_React$Component) {
}, [wrapReactChildren(createElement, this.children)]);
},

components: (_components = {}, defineProperty(_components, VUE_COMPONENT_NAME, component), defineProperty(_components, 'vuera-internal-react-wrapper', ReactWrapper), _components)
components: (_components = {}, defineProperty(_components, VUE_COMPONENT_NAME, component), defineProperty(_components, VUE_CHILDREN_COMPONENT_NAME, ReactWrapper), _components)
}));
}
}, {
Expand Down
5 changes: 3 additions & 2 deletions src/wrappers/Vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import ReactWrapper from './React'
import { config } from '../../src'

const VUE_COMPONENT_NAME = 'vuera-internal-component-name'
const VUE_CHILDREN_COMPONENT_NAME = 'vuera-internal-react-wrapper'

const wrapReactChildren = (createElement, children) =>
createElement('vuera-internal-react-wrapper', {
createElement(VUE_CHILDREN_COMPONENT_NAME, {
props: {
component: () => <div>{children}</div>,
},
Expand Down Expand Up @@ -79,7 +80,7 @@ export default class VueContainer extends React.Component {
},
components: {
[VUE_COMPONENT_NAME]: component,
'vuera-internal-react-wrapper': ReactWrapper,
[VUE_CHILDREN_COMPONENT_NAME]: ReactWrapper,
},
})
}
Expand Down