zova-ui-empty 5.0.307 → 5.0.309
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zova-ui-empty",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.309",
|
|
4
4
|
"description": "A vue3 empty framework with ioc",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"zova-vite": "^1.0.175"
|
|
76
76
|
},
|
|
77
77
|
"license": "MIT",
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "77ef4ca0142da6237f07cb425c12829293ace083"
|
|
79
79
|
}
|
|
@@ -3,6 +3,7 @@ import axios from 'axios';
|
|
|
3
3
|
import { BeanApi } from './bean/bean.api.js';
|
|
4
4
|
import { LocalRouter } from './bean/local.router.js';
|
|
5
5
|
import { LocalSSR } from './bean/local.ssr.js';
|
|
6
|
+
import { __ThisModule__ } from './.metadata/this.js';
|
|
6
7
|
|
|
7
8
|
export class Monkey extends BeanSimple implements IMonkeyAppInitialize, IMonkeyBeanInit {
|
|
8
9
|
localRouter: LocalRouter;
|
|
@@ -20,6 +21,7 @@ export class Monkey extends BeanSimple implements IMonkeyAppInitialize, IMonkeyB
|
|
|
20
21
|
}
|
|
21
22
|
async beanInit(bean: BeanContainer, beanInstance: BeanBase) {
|
|
22
23
|
const self = this;
|
|
24
|
+
// $api
|
|
23
25
|
bean.defineProperty(beanInstance, '$api', {
|
|
24
26
|
enumerable: false,
|
|
25
27
|
configurable: true,
|
|
@@ -27,5 +29,13 @@ export class Monkey extends BeanSimple implements IMonkeyAppInitialize, IMonkeyB
|
|
|
27
29
|
return self.app.meta.$api;
|
|
28
30
|
},
|
|
29
31
|
});
|
|
32
|
+
// $scopeBase
|
|
33
|
+
bean.defineProperty(beanInstance, '$scopeBase', {
|
|
34
|
+
enumerable: false,
|
|
35
|
+
configurable: true,
|
|
36
|
+
get() {
|
|
37
|
+
return self.app.bean.scope(__ThisModule__);
|
|
38
|
+
},
|
|
39
|
+
});
|
|
30
40
|
}
|
|
31
41
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
2
|
import { BeanApi } from './bean/bean.api.js';
|
|
3
3
|
import { StyleDefault } from './bean/style.default.js';
|
|
4
|
+
import { ScopeModule } from './.metadata/this.js';
|
|
4
5
|
import 'zova';
|
|
5
6
|
|
|
6
7
|
declare module 'zova' {
|
|
@@ -10,6 +11,7 @@ declare module 'zova' {
|
|
|
10
11
|
}
|
|
11
12
|
export interface BeanBase {
|
|
12
13
|
$api: BeanApi;
|
|
14
|
+
$scopeBase: ScopeModule;
|
|
13
15
|
$class: StyleDefault;
|
|
14
16
|
}
|
|
15
17
|
}
|