@shijiu/jsview-vue 2.2.35 → 2.2.201
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/bin/browser/BrowserApic.vue.mjs +4 -3
- package/bin/browser/BrowserApic2.vue.mjs +4 -3
- package/bin/browser/BrowserApicLib.mjs +10 -3
- package/bin/browser/BrowserJsvFragShaderView.vue.mjs +63 -0
- package/bin/browser/BrowserQrcode.vue.mjs +3 -1
- package/bin/browser/BrowserTextureAnim.vue.mjs +7 -6
- package/bin/jsview-vue.mjs +2990 -1146
- package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusManager.d.ts +8 -6
- package/bin/types/JsViewEngineWidget/MetroWidget/Dispatcher.d.ts +10 -12
- package/bin/types/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +3 -3
- package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +3 -3
- package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +2 -2
- package/bin/types/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +3 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/Slide.d.ts +21 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +1 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +2 -8
- package/bin/types/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +1 -1
- package/bin/types/JsViewEngineWidget/WidgetCommon.d.ts +9 -3
- package/bin/types/JsViewEngineWidget/index.d.ts +10 -1
- package/bin/types/JsViewVueTools/ConstSymbol.d.ts +2 -0
- package/bin/types/JsViewVueTools/ForgeConstDefine.d.ts +11 -0
- package/bin/types/JsViewVueTools/JsvFederationTools.d.ts +16 -0
- package/bin/types/JsViewVueTools/JsvPerformance.d.ts +5 -0
- package/bin/types/JsViewVueTools/JsvPreDownloader.d.ts +33 -0
- package/bin/types/JsViewVueTools/JsvRuntimeBridge.d.ts +113 -57
- package/bin/types/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +11 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +45 -1
- package/bin/types/JsViewVueTools/JsvTextureStore/Texture.d.ts +8 -0
- package/bin/types/JsViewVueTools/index.d.ts +19 -11
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic/BrowserApic.vue.d.ts +1 -1
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue.d.ts +1 -1
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +1 -1
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +1 -1
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/Viewer.d.ts +2 -1
- package/bin/types/JsViewVueWidget/JsvClipDiv/JsvClipDiv.vue.d.ts +70 -0
- package/bin/types/JsViewVueWidget/JsvClipDiv/index.d.ts +1 -0
- package/bin/types/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +1 -1
- package/bin/types/JsViewVueWidget/JsvDriftScope/JsvDriftScope.vue.d.ts +104 -0
- package/bin/types/JsViewVueWidget/JsvDriftScope/index.d.ts +1 -0
- package/bin/types/JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue.d.ts +13 -0
- package/bin/types/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue.d.ts +13 -0
- package/bin/types/JsViewVueWidget/JsvFragShaderView/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/ActionRefObject.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/ActorControl.d.ts +91 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/ActorState.d.ts +6 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.d.ts +11 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.d.ts +15 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/FreeMoveActor.vue.d.ts +6 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/SetAction.d.ts +71 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/SetCondition.d.ts +97 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/SetState.d.ts +62 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/SyncLinkManager.d.ts +18 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +4 -1
- package/bin/types/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +1 -1
- package/bin/types/JsViewVueWidget/JsvNativeSharedDiv.vue.d.ts +66 -28
- package/bin/types/JsViewVueWidget/JsvNinePatch.vue.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue.d.ts +236 -0
- package/bin/types/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue.d.ts +153 -0
- package/bin/types/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvScrollBox/ScrollSymbol.d.ts +12 -0
- package/bin/types/JsViewVueWidget/JsvScrollBox/index.d.ts +3 -0
- package/bin/types/JsViewVueWidget/JsvTextBox.vue.d.ts +3 -3
- package/bin/types/JsViewVueWidget/index.d.ts +4 -0
- package/package.json +1 -1
- package/tools/config/rollup.config.mjs +1 -0
- package/utils/JsViewEngineWidget/JsvFocus/{JsvFocusManager.js → JsvFocusManager.ts} +12 -12
- package/utils/JsViewEngineWidget/MetroWidget/Dispatcher.ts +20 -0
- package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +27 -10
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +52 -11
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +686 -480
- package/utils/JsViewEngineWidget/MetroWidget/RenderItem.ts +13 -1
- package/utils/JsViewEngineWidget/MetroWidget/Slide.ts +56 -0
- package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +59 -10
- package/utils/JsViewEngineWidget/MetroWidget/TokenGenerator.ts +10 -0
- package/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.ts +20 -10
- package/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.ts +27 -3
- package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +25 -35
- package/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.ts +7 -0
- package/utils/JsViewEngineWidget/WidgetCommon.ts +20 -7
- package/utils/JsViewEngineWidget/{index.js → index.ts} +1 -1
- package/utils/JsViewPlugin/JsvAudio/AudioProxy.js +21 -2
- package/utils/JsViewPlugin/JsvPlayer/BrowserJsvPlayer.vue +13 -1
- package/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue +470 -338
- package/utils/JsViewVueTools/ConstSymbol.ts +3 -0
- package/utils/JsViewVueTools/ForgeConstDefine.ts +11 -0
- package/utils/JsViewVueTools/JsvPreDownloader.ts +3 -3
- package/utils/JsViewVueTools/JsvRuntimeBridge.js +172 -50
- package/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.ts +62 -0
- package/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts +42 -8
- package/utils/JsViewVueTools/JsvTextureStore/Texture.ts +15 -1
- package/utils/JsViewVueTools/index.js +19 -17
- package/utils/JsViewVueWidget/JsvApic/JsvApic/BrowserApic.vue +8 -8
- package/utils/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue +3 -3
- package/utils/JsViewVueWidget/JsvApic/JsvApic2/BrowserApic2.vue +7 -8
- package/utils/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue +3 -3
- package/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/ApicDataBase.js +5 -1
- package/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/Viewer.js +8 -3
- package/utils/JsViewVueWidget/JsvClipDiv/JsvClipDiv.vue +42 -0
- package/utils/JsViewVueWidget/JsvClipDiv/index.ts +1 -0
- package/utils/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue +5 -1
- package/utils/JsViewVueWidget/JsvDriftScope/JsvDriftScope.vue +82 -0
- package/utils/JsViewVueWidget/JsvDriftScope/index.ts +1 -0
- package/utils/JsViewVueWidget/JsvFragShaderView/BrowserJsvFragShaderView.vue +48 -0
- package/utils/JsViewVueWidget/JsvFragShaderView/JsvFragShaderView.vue +145 -0
- package/utils/JsViewVueWidget/JsvFragShaderView/index.js +18 -0
- package/utils/JsViewVueWidget/JsvFreeMoveActor/ActionRefObject.ts +1 -1
- package/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.ts +156 -55
- package/utils/JsViewVueWidget/JsvFreeMoveActor/ActorState.ts +4 -4
- package/utils/JsViewVueWidget/JsvFreeMoveActor/CallbackManager.ts +6 -6
- package/utils/JsViewVueWidget/JsvFreeMoveActor/ForgeTypeDefine.ts +1 -1
- package/utils/JsViewVueWidget/JsvFreeMoveActor/FreeMoveActor.vue +43 -9
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetAction.ts +33 -0
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.ts +69 -8
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.ts +60 -0
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SyncLinkManager.ts +120 -0
- package/utils/JsViewVueWidget/JsvFreeMoveActor/index.js +7 -0
- package/utils/JsViewVueWidget/JsvMaskClipDiv.vue +6 -1
- package/utils/JsViewVueWidget/JsvNativeSharedDiv.vue +121 -68
- package/utils/JsViewVueWidget/JsvNinePatch.vue +17 -2
- package/utils/JsViewVueWidget/JsvPosterImage.vue +22 -9
- package/utils/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue +6 -2
- package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue +518 -0
- package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollFollow.vue +468 -0
- package/utils/JsViewVueWidget/JsvScrollBox/ScrollInnerSymbol.ts +9 -0
- package/utils/JsViewVueWidget/JsvScrollBox/ScrollSymbol.ts +24 -0
- package/utils/JsViewVueWidget/JsvScrollBox/index.ts +3 -0
- package/utils/JsViewVueWidget/JsvTextBox.vue +12 -4
- package/utils/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue +9 -6
- package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +2 -0
- package/utils/JsViewVueWidget/index.js +4 -0
- package/utils/JsViewEngineWidget/MetroWidget/Dispatcher.js +0 -19
|
@@ -1,31 +1,69 @@
|
|
|
1
|
-
declare const _default:
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
declare const _default: {
|
|
2
|
+
new (...args: any[]): {
|
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
|
4
|
+
$data: {};
|
|
5
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
6
|
+
$attrs: {
|
|
7
|
+
[x: string]: unknown;
|
|
8
|
+
};
|
|
9
|
+
$refs: {
|
|
10
|
+
[x: string]: unknown;
|
|
11
|
+
};
|
|
12
|
+
$slots: Readonly<{
|
|
13
|
+
[name: string]: import("vue").Slot | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
16
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
17
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
18
|
+
$el: any;
|
|
19
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
|
|
20
|
+
$props: {
|
|
21
|
+
readonly style?: Record<string, any> | undefined;
|
|
22
|
+
readonly corner?: number | undefined;
|
|
23
|
+
readonly getId?: Function | undefined;
|
|
24
|
+
readonly setId?: string | undefined;
|
|
25
|
+
};
|
|
26
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
|
|
27
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
28
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
29
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
30
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
31
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
32
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
33
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
34
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
35
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
36
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
37
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
38
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
39
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
40
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
41
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
42
|
+
};
|
|
43
|
+
$forceUpdate: () => void;
|
|
44
|
+
$nextTick: typeof import("vue").nextTick;
|
|
45
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
46
|
+
} & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{
|
|
47
|
+
$props: {
|
|
48
|
+
readonly style?: Record<string, any> | undefined;
|
|
49
|
+
readonly corner?: number | undefined;
|
|
50
|
+
readonly getId?: Function | undefined;
|
|
51
|
+
readonly setId?: string | undefined;
|
|
52
|
+
};
|
|
53
|
+
}> & {} & import("vue").ComponentCustomProperties & {};
|
|
54
|
+
__isFragment?: undefined;
|
|
55
|
+
__isTeleport?: undefined;
|
|
56
|
+
__isSuspense?: undefined;
|
|
57
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
|
|
58
|
+
$props: {
|
|
59
|
+
readonly style?: Record<string, any> | undefined;
|
|
60
|
+
readonly corner?: number | undefined;
|
|
61
|
+
readonly getId?: Function | undefined;
|
|
62
|
+
readonly setId?: string | undefined;
|
|
5
63
|
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
type: BooleanConstructor;
|
|
10
|
-
default: boolean;
|
|
64
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
65
|
+
$slots: {
|
|
66
|
+
default: (_: {}) => any;
|
|
11
67
|
};
|
|
12
|
-
}
|
|
13
|
-
isBrowserDebug: any;
|
|
14
|
-
jsvMainView: undefined;
|
|
15
|
-
innerViewId: undefined;
|
|
16
|
-
}, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
-
style: {
|
|
18
|
-
type: ObjectConstructor;
|
|
19
|
-
default: () => {};
|
|
20
|
-
};
|
|
21
|
-
getId: FunctionConstructor;
|
|
22
|
-
setId: StringConstructor;
|
|
23
|
-
seeThrough: {
|
|
24
|
-
type: BooleanConstructor;
|
|
25
|
-
default: boolean;
|
|
26
|
-
};
|
|
27
|
-
}>>, {
|
|
28
|
-
style: Record<string, any>;
|
|
29
|
-
seeThrough: boolean;
|
|
30
|
-
}>;
|
|
68
|
+
});
|
|
31
69
|
export default _default;
|
|
@@ -11,6 +11,8 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
11
11
|
readonly centerWidth?: number | undefined;
|
|
12
12
|
readonly borderOutset?: number | undefined;
|
|
13
13
|
readonly animTime?: number | undefined;
|
|
14
|
+
readonly imageBlendType?: string | undefined;
|
|
15
|
+
readonly onDivRef?: Function | undefined;
|
|
14
16
|
readonly animation?: string | undefined;
|
|
15
17
|
readonly onTransitionEnd?: Function | undefined;
|
|
16
18
|
};
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
new (...args: any[]): {
|
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
|
4
|
+
$data: {};
|
|
5
|
+
$props: Partial<{
|
|
6
|
+
mode: symbol;
|
|
7
|
+
initPercent: number;
|
|
8
|
+
enableFling: boolean;
|
|
9
|
+
linkName: string;
|
|
10
|
+
syncWith: string;
|
|
11
|
+
syncType: symbol;
|
|
12
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
+
style: {
|
|
14
|
+
type: ObjectConstructor;
|
|
15
|
+
require: boolean;
|
|
16
|
+
};
|
|
17
|
+
direction: {
|
|
18
|
+
type: SymbolConstructor;
|
|
19
|
+
require: boolean;
|
|
20
|
+
};
|
|
21
|
+
sliderSize: {
|
|
22
|
+
type: ObjectConstructor;
|
|
23
|
+
require: boolean;
|
|
24
|
+
};
|
|
25
|
+
mode: {
|
|
26
|
+
type: SymbolConstructor;
|
|
27
|
+
default: symbol;
|
|
28
|
+
};
|
|
29
|
+
initPercent: {
|
|
30
|
+
type: NumberConstructor;
|
|
31
|
+
default: number;
|
|
32
|
+
};
|
|
33
|
+
enableFling: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
linkName: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: null;
|
|
40
|
+
};
|
|
41
|
+
syncWith: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: null;
|
|
44
|
+
};
|
|
45
|
+
syncType: {
|
|
46
|
+
type: SymbolConstructor;
|
|
47
|
+
default: symbol;
|
|
48
|
+
};
|
|
49
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "mode" | "initPercent" | "enableFling" | "linkName" | "syncWith" | "syncType">;
|
|
50
|
+
$attrs: {
|
|
51
|
+
[x: string]: unknown;
|
|
52
|
+
};
|
|
53
|
+
$refs: {
|
|
54
|
+
[x: string]: unknown;
|
|
55
|
+
};
|
|
56
|
+
$slots: Readonly<{
|
|
57
|
+
[name: string]: import("vue").Slot | undefined;
|
|
58
|
+
}>;
|
|
59
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
60
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
61
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
62
|
+
$el: any;
|
|
63
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
64
|
+
style: {
|
|
65
|
+
type: ObjectConstructor;
|
|
66
|
+
require: boolean;
|
|
67
|
+
};
|
|
68
|
+
direction: {
|
|
69
|
+
type: SymbolConstructor;
|
|
70
|
+
require: boolean;
|
|
71
|
+
};
|
|
72
|
+
sliderSize: {
|
|
73
|
+
type: ObjectConstructor;
|
|
74
|
+
require: boolean;
|
|
75
|
+
};
|
|
76
|
+
mode: {
|
|
77
|
+
type: SymbolConstructor;
|
|
78
|
+
default: symbol;
|
|
79
|
+
};
|
|
80
|
+
initPercent: {
|
|
81
|
+
type: NumberConstructor;
|
|
82
|
+
default: number;
|
|
83
|
+
};
|
|
84
|
+
enableFling: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
88
|
+
linkName: {
|
|
89
|
+
type: StringConstructor;
|
|
90
|
+
default: null;
|
|
91
|
+
};
|
|
92
|
+
syncWith: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
default: null;
|
|
95
|
+
};
|
|
96
|
+
syncType: {
|
|
97
|
+
type: SymbolConstructor;
|
|
98
|
+
default: symbol;
|
|
99
|
+
};
|
|
100
|
+
}>>, {
|
|
101
|
+
setSensor: (callback: Function, sensitivity: number) => void;
|
|
102
|
+
updatePercent: (percent: number) => void;
|
|
103
|
+
currentPercent: () => number;
|
|
104
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
105
|
+
mode: symbol;
|
|
106
|
+
initPercent: number;
|
|
107
|
+
enableFling: boolean;
|
|
108
|
+
linkName: string;
|
|
109
|
+
syncWith: string;
|
|
110
|
+
syncType: symbol;
|
|
111
|
+
}, {}, string> & {
|
|
112
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
113
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
114
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
115
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
116
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
117
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
118
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
119
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
120
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
121
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
122
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
123
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
124
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
125
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
126
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
127
|
+
};
|
|
128
|
+
$forceUpdate: () => void;
|
|
129
|
+
$nextTick: typeof import("vue").nextTick;
|
|
130
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
131
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
132
|
+
style: {
|
|
133
|
+
type: ObjectConstructor;
|
|
134
|
+
require: boolean;
|
|
135
|
+
};
|
|
136
|
+
direction: {
|
|
137
|
+
type: SymbolConstructor;
|
|
138
|
+
require: boolean;
|
|
139
|
+
};
|
|
140
|
+
sliderSize: {
|
|
141
|
+
type: ObjectConstructor;
|
|
142
|
+
require: boolean;
|
|
143
|
+
};
|
|
144
|
+
mode: {
|
|
145
|
+
type: SymbolConstructor;
|
|
146
|
+
default: symbol;
|
|
147
|
+
};
|
|
148
|
+
initPercent: {
|
|
149
|
+
type: NumberConstructor;
|
|
150
|
+
default: number;
|
|
151
|
+
};
|
|
152
|
+
enableFling: {
|
|
153
|
+
type: BooleanConstructor;
|
|
154
|
+
default: boolean;
|
|
155
|
+
};
|
|
156
|
+
linkName: {
|
|
157
|
+
type: StringConstructor;
|
|
158
|
+
default: null;
|
|
159
|
+
};
|
|
160
|
+
syncWith: {
|
|
161
|
+
type: StringConstructor;
|
|
162
|
+
default: null;
|
|
163
|
+
};
|
|
164
|
+
syncType: {
|
|
165
|
+
type: SymbolConstructor;
|
|
166
|
+
default: symbol;
|
|
167
|
+
};
|
|
168
|
+
}>> & import("vue").ShallowUnwrapRef<{
|
|
169
|
+
setSensor: (callback: Function, sensitivity: number) => void;
|
|
170
|
+
updatePercent: (percent: number) => void;
|
|
171
|
+
currentPercent: () => number;
|
|
172
|
+
}> & {} & import("vue").ComponentCustomProperties & {};
|
|
173
|
+
__isFragment?: undefined;
|
|
174
|
+
__isTeleport?: undefined;
|
|
175
|
+
__isSuspense?: undefined;
|
|
176
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
177
|
+
style: {
|
|
178
|
+
type: ObjectConstructor;
|
|
179
|
+
require: boolean;
|
|
180
|
+
};
|
|
181
|
+
direction: {
|
|
182
|
+
type: SymbolConstructor;
|
|
183
|
+
require: boolean;
|
|
184
|
+
};
|
|
185
|
+
sliderSize: {
|
|
186
|
+
type: ObjectConstructor;
|
|
187
|
+
require: boolean;
|
|
188
|
+
};
|
|
189
|
+
mode: {
|
|
190
|
+
type: SymbolConstructor;
|
|
191
|
+
default: symbol;
|
|
192
|
+
};
|
|
193
|
+
initPercent: {
|
|
194
|
+
type: NumberConstructor;
|
|
195
|
+
default: number;
|
|
196
|
+
};
|
|
197
|
+
enableFling: {
|
|
198
|
+
type: BooleanConstructor;
|
|
199
|
+
default: boolean;
|
|
200
|
+
};
|
|
201
|
+
linkName: {
|
|
202
|
+
type: StringConstructor;
|
|
203
|
+
default: null;
|
|
204
|
+
};
|
|
205
|
+
syncWith: {
|
|
206
|
+
type: StringConstructor;
|
|
207
|
+
default: null;
|
|
208
|
+
};
|
|
209
|
+
syncType: {
|
|
210
|
+
type: SymbolConstructor;
|
|
211
|
+
default: symbol;
|
|
212
|
+
};
|
|
213
|
+
}>>, {
|
|
214
|
+
setSensor: (callback: Function, sensitivity: number) => void;
|
|
215
|
+
updatePercent: (percent: number) => void;
|
|
216
|
+
currentPercent: () => number;
|
|
217
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
218
|
+
mode: symbol;
|
|
219
|
+
initPercent: number;
|
|
220
|
+
enableFling: boolean;
|
|
221
|
+
linkName: string;
|
|
222
|
+
syncWith: string;
|
|
223
|
+
syncType: symbol;
|
|
224
|
+
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
225
|
+
$slots: {
|
|
226
|
+
FixedBox: (_: {
|
|
227
|
+
boxWidth: number;
|
|
228
|
+
boxHeight: number;
|
|
229
|
+
}) => any;
|
|
230
|
+
SliderBox: (_: {
|
|
231
|
+
boxWidth: number;
|
|
232
|
+
boxHeight: number;
|
|
233
|
+
}) => any;
|
|
234
|
+
};
|
|
235
|
+
});
|
|
236
|
+
export default _default;
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
new (...args: any[]): {
|
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
|
4
|
+
$data: {};
|
|
5
|
+
$props: Partial<{
|
|
6
|
+
syncType: symbol;
|
|
7
|
+
varLeft: number | object;
|
|
8
|
+
varTop: number | object;
|
|
9
|
+
varWidth: number | object;
|
|
10
|
+
varHeight: number | object;
|
|
11
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
12
|
+
proxyType: symbol;
|
|
13
|
+
proxyProps?: Object | undefined;
|
|
14
|
+
varLeft?: number | object | undefined;
|
|
15
|
+
varTop?: number | object | undefined;
|
|
16
|
+
varWidth?: number | object | undefined;
|
|
17
|
+
varHeight?: number | object | undefined;
|
|
18
|
+
syncWith: string;
|
|
19
|
+
syncType?: symbol | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
varMode: symbol;
|
|
22
|
+
varLeft: number;
|
|
23
|
+
varTop: number;
|
|
24
|
+
varWidth: number;
|
|
25
|
+
varHeight: number;
|
|
26
|
+
syncType: symbol;
|
|
27
|
+
}>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "syncType" | "varLeft" | "varTop" | "varWidth" | "varHeight">;
|
|
28
|
+
$attrs: {
|
|
29
|
+
[x: string]: unknown;
|
|
30
|
+
};
|
|
31
|
+
$refs: {
|
|
32
|
+
[x: string]: unknown;
|
|
33
|
+
};
|
|
34
|
+
$slots: Readonly<{
|
|
35
|
+
[name: string]: import("vue").Slot | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
38
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
39
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
40
|
+
$el: any;
|
|
41
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
42
|
+
proxyType: symbol;
|
|
43
|
+
proxyProps?: Object | undefined;
|
|
44
|
+
varLeft?: number | object | undefined;
|
|
45
|
+
varTop?: number | object | undefined;
|
|
46
|
+
varWidth?: number | object | undefined;
|
|
47
|
+
varHeight?: number | object | undefined;
|
|
48
|
+
syncWith: string;
|
|
49
|
+
syncType?: symbol | undefined;
|
|
50
|
+
}>, {
|
|
51
|
+
varMode: symbol;
|
|
52
|
+
varLeft: number;
|
|
53
|
+
varTop: number;
|
|
54
|
+
varWidth: number;
|
|
55
|
+
varHeight: number;
|
|
56
|
+
syncType: symbol;
|
|
57
|
+
}>>>, {
|
|
58
|
+
setSensor: (callback: Function, sensitivity: number) => void;
|
|
59
|
+
currentPercent: () => number;
|
|
60
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
61
|
+
syncType: symbol;
|
|
62
|
+
varLeft: number | object;
|
|
63
|
+
varTop: number | object;
|
|
64
|
+
varWidth: number | object;
|
|
65
|
+
varHeight: number | object;
|
|
66
|
+
}, {}, string> & {
|
|
67
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
68
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
69
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
70
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
71
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
72
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
73
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
74
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
75
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
76
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
77
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
78
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
79
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
80
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
81
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
82
|
+
};
|
|
83
|
+
$forceUpdate: () => void;
|
|
84
|
+
$nextTick: typeof import("vue").nextTick;
|
|
85
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
86
|
+
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
87
|
+
proxyType: symbol;
|
|
88
|
+
proxyProps?: Object | undefined;
|
|
89
|
+
varLeft?: number | object | undefined;
|
|
90
|
+
varTop?: number | object | undefined;
|
|
91
|
+
varWidth?: number | object | undefined;
|
|
92
|
+
varHeight?: number | object | undefined;
|
|
93
|
+
syncWith: string;
|
|
94
|
+
syncType?: symbol | undefined;
|
|
95
|
+
}>, {
|
|
96
|
+
varMode: symbol;
|
|
97
|
+
varLeft: number;
|
|
98
|
+
varTop: number;
|
|
99
|
+
varWidth: number;
|
|
100
|
+
varHeight: number;
|
|
101
|
+
syncType: symbol;
|
|
102
|
+
}>>> & import("vue").ShallowUnwrapRef<{
|
|
103
|
+
setSensor: (callback: Function, sensitivity: number) => void;
|
|
104
|
+
currentPercent: () => number;
|
|
105
|
+
}> & {} & import("vue").ComponentCustomProperties & {};
|
|
106
|
+
__isFragment?: undefined;
|
|
107
|
+
__isTeleport?: undefined;
|
|
108
|
+
__isSuspense?: undefined;
|
|
109
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
110
|
+
proxyType: symbol;
|
|
111
|
+
proxyProps?: Object | undefined;
|
|
112
|
+
varLeft?: number | object | undefined;
|
|
113
|
+
varTop?: number | object | undefined;
|
|
114
|
+
varWidth?: number | object | undefined;
|
|
115
|
+
varHeight?: number | object | undefined;
|
|
116
|
+
syncWith: string;
|
|
117
|
+
syncType?: symbol | undefined;
|
|
118
|
+
}>, {
|
|
119
|
+
varMode: symbol;
|
|
120
|
+
varLeft: number;
|
|
121
|
+
varTop: number;
|
|
122
|
+
varWidth: number;
|
|
123
|
+
varHeight: number;
|
|
124
|
+
syncType: symbol;
|
|
125
|
+
}>>>, {
|
|
126
|
+
setSensor: (callback: Function, sensitivity: number) => void;
|
|
127
|
+
currentPercent: () => number;
|
|
128
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
129
|
+
syncType: symbol;
|
|
130
|
+
varLeft: number | object;
|
|
131
|
+
varTop: number | object;
|
|
132
|
+
varWidth: number | object;
|
|
133
|
+
varHeight: number | object;
|
|
134
|
+
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
135
|
+
$slots: {
|
|
136
|
+
default: (_: {}) => any;
|
|
137
|
+
};
|
|
138
|
+
});
|
|
139
|
+
export default _default;
|
|
140
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
141
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
142
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
143
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
144
|
+
} : {
|
|
145
|
+
type: import('vue').PropType<T[K]>;
|
|
146
|
+
required: true;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
type __VLS_WithDefaults<P, D> = {
|
|
150
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
151
|
+
default: D[K];
|
|
152
|
+
} : P[K];
|
|
153
|
+
};
|
|
@@ -22,8 +22,8 @@ declare const _default: {
|
|
|
22
22
|
readonly lineAlign?: string | undefined;
|
|
23
23
|
readonly enableLatex?: boolean | undefined;
|
|
24
24
|
readonly textDirection?: string | undefined;
|
|
25
|
+
readonly syncDraw?: string | undefined;
|
|
25
26
|
readonly style?: Record<string, any> | undefined;
|
|
26
|
-
readonly className?: string | undefined;
|
|
27
27
|
};
|
|
28
28
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
|
|
29
29
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -51,8 +51,8 @@ declare const _default: {
|
|
|
51
51
|
readonly lineAlign?: string | undefined;
|
|
52
52
|
readonly enableLatex?: boolean | undefined;
|
|
53
53
|
readonly textDirection?: string | undefined;
|
|
54
|
+
readonly syncDraw?: string | undefined;
|
|
54
55
|
readonly style?: Record<string, any> | undefined;
|
|
55
|
-
readonly className?: string | undefined;
|
|
56
56
|
};
|
|
57
57
|
}> & {} & import("vue").ComponentCustomProperties & {};
|
|
58
58
|
__isFragment?: undefined;
|
|
@@ -64,8 +64,8 @@ declare const _default: {
|
|
|
64
64
|
readonly lineAlign?: string | undefined;
|
|
65
65
|
readonly enableLatex?: boolean | undefined;
|
|
66
66
|
readonly textDirection?: string | undefined;
|
|
67
|
+
readonly syncDraw?: string | undefined;
|
|
67
68
|
readonly style?: Record<string, any> | undefined;
|
|
68
|
-
readonly className?: string | undefined;
|
|
69
69
|
};
|
|
70
70
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
71
71
|
$slots: {
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export * from "./JsvFreeMoveActor";
|
|
2
2
|
export * from "./JsvFlexCell";
|
|
3
3
|
export * from "./JsvSpriteAnim";
|
|
4
|
+
export * from "./JsvScrollBox";
|
|
5
|
+
export * from "./JsvClipDiv";
|
|
6
|
+
export * from "./JsvDriftScope";
|
|
4
7
|
export { default as JsvApic } from "./JsvApic/JsvApic";
|
|
5
8
|
export { default as JsvApic2 } from "./JsvApic/JsvApic2";
|
|
6
9
|
export { default as JsvQrcode } from "./JsvQrcode";
|
|
@@ -26,6 +29,7 @@ export { default as JsvConnectLine } from "./JsvConnectLine";
|
|
|
26
29
|
export { default as JsvProgressBar } from "./JsvProgressBar.vue";
|
|
27
30
|
export { default as JsvEnableRenderBreak } from "./JsvEnableRenderBreak.vue";
|
|
28
31
|
export { JsvMindMap } from "./JsvMindMap";
|
|
32
|
+
export { default as JsvFragShaderView } from "./JsvFragShaderView";
|
|
29
33
|
import JsvNativeSharedDiv from "./JsvNativeSharedDiv.vue";
|
|
30
34
|
export { JsvNativeSharedDiv as JsvTransparentDiv, JsvNativeSharedDiv };
|
|
31
35
|
export { default as JsvActorMove, JsvActorMoveControl } from "./JsvActorMove";
|
package/package.json
CHANGED
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
JsvFocusHubApi,
|
|
6
6
|
ROOT_HUB_PROVIDE_NAME,
|
|
7
7
|
HUB_NS_PROVIDE_NAME
|
|
8
|
-
} from "./JsvFocusHub
|
|
8
|
+
} from "./JsvFocusHub";
|
|
9
9
|
import { inject } from "vue";
|
|
10
10
|
|
|
11
|
-
const useFocusHub = (withNameSpace) => {
|
|
11
|
+
const useFocusHub = (withNameSpace: any) => {
|
|
12
12
|
if (withNameSpace) {
|
|
13
|
-
let nameSpace = inject(HUB_NS_PROVIDE_NAME); // nameSpace变更由JsvFocusBlock设置namespace时变更
|
|
13
|
+
let nameSpace: any = inject(HUB_NS_PROVIDE_NAME); // nameSpace变更由JsvFocusBlock设置namespace时变更
|
|
14
14
|
if (nameSpace && nameSpace.length > 0) {
|
|
15
15
|
// 使用带有namespace的hub
|
|
16
|
-
return new JsvFocusHubApi((inject(ROOT_HUB_PROVIDE_NAME)).getOrigin().wrapWithNameSpace(nameSpace));
|
|
16
|
+
return new JsvFocusHubApi((inject(ROOT_HUB_PROVIDE_NAME) as any).getOrigin().wrapWithNameSpace(nameSpace));
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -22,9 +22,13 @@ const useFocusHub = (withNameSpace) => {
|
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
export class JsvFocusManager {
|
|
25
|
+
// #aliasMap = {}
|
|
26
|
+
private $_appMount: any = undefined;
|
|
27
|
+
private $_topFDiv: any = undefined;
|
|
28
|
+
|
|
25
29
|
constructor() { }
|
|
26
30
|
|
|
27
|
-
install(app, ...options) {
|
|
31
|
+
install(app: any, ...options: any) {
|
|
28
32
|
console.log("JsvFocusManager install");
|
|
29
33
|
if (typeof options[0] !== "string") {
|
|
30
34
|
throw new Error(
|
|
@@ -91,15 +95,15 @@ export class JsvFocusManager {
|
|
|
91
95
|
// focusNode.requestFocus(exact);
|
|
92
96
|
// }
|
|
93
97
|
|
|
94
|
-
$_hookMount(app, rootNodeId) {
|
|
98
|
+
$_hookMount(app: any, rootNodeId: any) {
|
|
95
99
|
rootNodeId = rootNodeId.replace("#", "");
|
|
96
|
-
this.$_topFDiv = document.jsvInitFDivRoot(rootNodeId);
|
|
100
|
+
this.$_topFDiv = (document as any).jsvInitFDivRoot(rootNodeId);
|
|
97
101
|
this.$_appMount = app.mount.bind(app);
|
|
98
102
|
|
|
99
103
|
return this.$_doAppMount.bind(this);
|
|
100
104
|
}
|
|
101
105
|
|
|
102
|
-
$_doAppMount(rootContainer) {
|
|
106
|
+
$_doAppMount(rootContainer: any) {
|
|
103
107
|
// 调用app原有的mount函数
|
|
104
108
|
const rootComponent = this.$_appMount(rootContainer);
|
|
105
109
|
// console.log('FocusManager: do mount')
|
|
@@ -109,10 +113,6 @@ export class JsvFocusManager {
|
|
|
109
113
|
|
|
110
114
|
return rootComponent;
|
|
111
115
|
}
|
|
112
|
-
|
|
113
|
-
// #aliasMap = {}
|
|
114
|
-
$_appMount = undefined;
|
|
115
|
-
$_topFDiv = undefined;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
function jsvCreateFocusManager() {
|