mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 09:38:19 +08:00
core: add provideModule and injectUI API
This commit is contained in:
1 parent
672c553f4c
commit
28f03dbcbd
18 files changed
+211
-97
No files matched your search
@@ -19,6 +19,12 @@ if (!global.Hydro) {
|
||||
script: {},
|
||||
// @ts-ignore
|
||||
lib: {},
|
||||
module: new Proxy({} as any, {
|
||||
get(self, key) {
|
||||
if (!self[key]) self[key] = {};
|
||||
return self[key];
|
||||
},
|
||||
}),
|
||||
// @ts-ignore
|
||||
ui: {
|
||||
template: {},
|
||||
|
||||
Reference in new issue
Block a user