Fatal error: Uncaught Error: Cannot access private property
let some = Vue.extend(Some);
let content = new some({
props: {items}
});
this.$test({
content: content
});
props: ['items']
import VueTest from './components/VueTest ';
Vue.use(VueTest , {});
Vue.prototype.$test= function(options) {
/*const Some = Vue.extend({
template: `<div>Some</div>`
})*/
const test = new Test({
store,
route,
etc..
})
// получаем Some как аргумент options.content
//const some = new Some()
const some = options.content;
test.$slots['test_slot'] = [ test.$createElement(some.$options) ]
test.$mount(document.createElement('div'))
}
this.$test({
content: new (Vue.extend(Some))({})
});
// к body или куда необходимо
document.querySelector('body').appendChild(this.$el);
const Some = Vue.extend({
template: `<div>Some</div>`
})
const test = new Test()
const some = new Some()
test.$slots['test_slot'] = [ test.$createElement(some.$options) ]
test.$mount('#app')
const test = new Test({
store,
route,
etc..
})
new Vue({
el: '#app',
router,
store,
i18n,
render: h => h(App)
});
Vue.prototype.$test= function (methodOptions) {
// некоторая логика ...
}