magic-api中的component 可以用于mb-form,单独magic-import.js

This commit is contained in:
吕金泽
2022-04-08 21:30:01 +08:00
parent 4400acd4e1
commit d4108c8e49
4 changed files with 15 additions and 10 deletions
+10
View File
@@ -0,0 +1,10 @@
import * as vue from "vue";
import ElementPlus from "element-plus";
const libs = {
vue,
'element-plus': ElementPlus
}
window.___magic__import__ = function(lib, name){
return (libs[lib] || {})[name]
}