2017-10-27 13:16:28 -04:00
|
|
|
export const createComponentWithStore = (Component, store, propsData = {}) => new Component({
|
|
|
|
store,
|
|
|
|
propsData,
|
|
|
|
});
|
|
|
|
|
2017-10-19 03:58:06 -04:00
|
|
|
export default (Component, props = {}, el = null) => new Component({
|
2017-08-29 08:20:58 -04:00
|
|
|
propsData: props,
|
2017-10-19 03:58:06 -04:00
|
|
|
}).$mount(el);
|