zova-core 5.1.76 → 5.1.77
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/dist/bean/beanBase.d.ts +1 -4
- package/dist/bean/beanBase.d.ts.map +1 -1
- package/dist/index.js +10 -8
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/bean/beanBase.ts +9 -13
package/package.json
CHANGED
package/src/bean/beanBase.ts
CHANGED
|
@@ -28,22 +28,18 @@ import type { AppEvent } from '../core/component/event.ts';
|
|
|
28
28
|
import type { ILoggerChildRecord, ILoggerClientRecord } from '../core/logger/types.ts';
|
|
29
29
|
import type { FunctionAsync } from '../decorator/type/functionable.ts';
|
|
30
30
|
import type { MapSources, MaybeUndefined } from '../vueExtra/watch.ts';
|
|
31
|
-
import type {
|
|
32
|
-
IErrorHandlerEventResult,
|
|
33
|
-
IModuleLocaleText,
|
|
34
|
-
IZovaComponentRecord,
|
|
35
|
-
} from './resource/index.ts';
|
|
31
|
+
import type { IErrorHandlerEventResult, IZovaComponentRecord } from './resource/index.ts';
|
|
36
32
|
|
|
37
33
|
import { cast } from '../types/utils/cast.ts';
|
|
38
34
|
import { BeanBaseSimple, SymbolModuleBelong } from './beanBaseSimple.ts';
|
|
39
35
|
import { SymbolErrorInstanceInfo } from './resource/index.ts';
|
|
40
36
|
|
|
41
|
-
const SymbolText = Symbol('SymbolText');
|
|
37
|
+
// const SymbolText = Symbol('SymbolText');
|
|
42
38
|
const SymbolLogger = Symbol('SymbolLogger');
|
|
43
39
|
const SymbolLoggerChildren = Symbol('SymbolLoggerChildren');
|
|
44
40
|
|
|
45
41
|
export class BeanBase extends BeanBaseSimple {
|
|
46
|
-
private [SymbolText]: IModuleLocaleText;
|
|
42
|
+
// private [SymbolText]: IModuleLocaleText;
|
|
47
43
|
private [SymbolLogger]: Record<keyof ILoggerClientRecord, Logger> = {} as any;
|
|
48
44
|
private [SymbolLoggerChildren]: Record<keyof ILoggerClientRecord, Record<string, Logger>> =
|
|
49
45
|
{} as any;
|
|
@@ -55,12 +51,12 @@ export class BeanBase extends BeanBaseSimple {
|
|
|
55
51
|
return this.ctx.meta.el;
|
|
56
52
|
}
|
|
57
53
|
|
|
58
|
-
protected get $text(): IModuleLocaleText {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
54
|
+
// protected get $text(): IModuleLocaleText {
|
|
55
|
+
// if (!this[SymbolText]) {
|
|
56
|
+
// this[SymbolText] = this.app.meta.locale.createLocaleText(this[SymbolModuleBelong]);
|
|
57
|
+
// }
|
|
58
|
+
// return this[SymbolText];
|
|
59
|
+
// }
|
|
64
60
|
|
|
65
61
|
protected get $logger() {
|
|
66
62
|
return this.$loggerClient('default');
|