mirror of
https://gitee.com/ssssssss-team/magic-boot.git
synced 2026-05-15 00:00:02 +08:00
magic-api中的component 可以用于mb-form,单独magic-import.js
This commit is contained in:
@@ -10,5 +10,6 @@ export default {
|
||||
},
|
||||
baseApi: import.meta.env.VITE_APP_BASE_API,
|
||||
visitedViews: reactive([]),
|
||||
tabValue: ref('')
|
||||
tabValue: ref(''),
|
||||
dynamicComponentNames: []
|
||||
}
|
||||
|
||||
@@ -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]
|
||||
}
|
||||
Reference in New Issue
Block a user