mirror of
https://gitee.com/ssssssss-team/magic-boot.git
synced 2025-04-05 04:41:51 +08:00
15 lines
332 B
JavaScript
15 lines
332 B
JavaScript
import * as vue from "vue";
|
|
import ElementPlus from "element-plus";
|
|
|
|
const libs = {
|
|
vue,
|
|
'element-plus': ElementPlus
|
|
}
|
|
|
|
window.___magic__import__ = function(lib, name){
|
|
if(Object.prototype.toString.call(libs[lib]) != '[object Module]' && name == '*'){
|
|
return libs[lib]
|
|
}
|
|
return (libs[lib] || {})[name]
|
|
}
|