have you tried it yourself? There is no $createElement in import Vue from "vue"
.import Vue from "vue"
console.log(Vue.$createElement)
undefined
console.log(Vue.prototype.$createElement)
undefined
for example, I want to use the this.$createdElement method, but I only introduce vue. There is no attribute of $createdElement on the prototype of vue, but only the vue instance. What should I do?
and elegant, officially recommended
my solution now is to add this attribute to the vue object when vue created in main.js