@shijiu/jsview-vue 2.1.482-test.0 → 2.2.128
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 +2 -1
- package/bin/browser/BrowserApic2.vue.mjs +2 -1
- package/bin/browser/BrowserApicLib.mjs +2 -1
- package/bin/browser/BrowserQrcode.vue.mjs +3 -1
- package/bin/browser/BrowserTextureAnim.vue.mjs +15 -7
- package/bin/jsview-vue.mjs +1734 -916
- package/bin/types/JsViewEngineWidget/CheckType.d.ts +3 -0
- package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusBlock.vue.d.ts +102 -0
- package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusHub.d.ts +88 -0
- package/bin/types/JsViewEngineWidget/JsvFocus/JsvFocusManager.d.ts +10 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/Const.d.ts +16 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/Dispatcher.d.ts +14 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/ListWidget.vue.d.ts +158 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidget.vue.d.ts +158 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.d.ts +46 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/PageUpdater.d.ts +21 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/RenderItem.d.ts +46 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/Slide.d.ts +21 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/SlotComponent.vue.d.ts +48 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/VisibleInfo.d.ts +16 -0
- package/bin/types/JsViewEngineWidget/MetroWidget/WidgetRectInfo.d.ts +17 -0
- package/bin/types/JsViewEngineWidget/RangeModel.d.ts +162 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.d.ts +37 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/Fence.d.ts +58 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/ListMetroTemplate.d.ts +15 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/MetroTemplate.d.ts +91 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/TemplateItemAdder.d.ts +22 -0
- package/bin/types/JsViewEngineWidget/TemplateParser/index.d.ts +4 -0
- package/bin/types/JsViewEngineWidget/WidgetCommon.d.ts +143 -0
- package/bin/types/JsViewEngineWidget/index.d.ts +6 -0
- package/bin/types/JsViewPlugin/JsvAccount/JsvAccount.d.ts +42 -0
- package/bin/types/JsViewPlugin/JsvAudio/AudioProxy.d.ts +2 -0
- package/bin/types/JsViewPlugin/JsvAudio/BrowserAudio/BrowserAudio.vue.d.ts +18 -0
- package/bin/types/JsViewPlugin/JsvAudio/BrowserAudio/JsvSystemAudio.vue.d.ts +208 -0
- package/bin/types/JsViewPlugin/JsvAudio/CheckType.d.ts +2 -0
- package/bin/types/JsViewPlugin/JsvAudio/Events.d.ts +13 -0
- package/bin/types/JsViewPlugin/JsvAudio/JsvAudio.vue.d.ts +18 -0
- package/bin/types/JsViewPlugin/JsvAudio/JsvAudioBridgeProxy.d.ts +8 -0
- package/bin/types/JsViewPlugin/JsvAudio/JsvAudioProxy.vue.d.ts +2 -0
- package/bin/types/JsViewPlugin/JsvAudio/PluginLoader.d.ts +1 -0
- package/bin/types/JsViewPlugin/JsvAudio/ScreenLockManager.d.ts +5 -0
- package/bin/types/JsViewPlugin/JsvAudio/index.d.ts +3 -0
- package/bin/types/JsViewPlugin/JsvAudio/version.d.ts +10 -0
- package/bin/types/JsViewPlugin/JsvLatex/BrowserDomBuilder.d.ts +1 -0
- package/bin/types/JsViewPlugin/JsvLatex/BrowserJsvLatex.vue.d.ts +13 -0
- package/bin/types/JsViewPlugin/JsvLatex/Color.d.ts +1 -0
- package/bin/types/JsViewPlugin/JsvLatex/JsvLatex.vue.d.ts +17 -0
- package/bin/types/JsViewPlugin/JsvLatex/JsvLatexBridgeProxy.d.ts +3 -0
- package/bin/types/JsViewPlugin/JsvLatex/JsvLatexProxy.vue.d.ts +2 -0
- package/bin/types/JsViewPlugin/JsvLatex/PluginLoader.d.ts +1 -0
- package/bin/types/JsViewPlugin/JsvLatex/index.d.ts +3 -0
- package/bin/types/JsViewPlugin/JsvLatex/version.d.ts +10 -0
- package/bin/types/JsViewPlugin/index.d.ts +3 -0
- package/bin/types/JsViewVueTools/ConstSymbol.d.ts +2 -0
- package/bin/types/JsViewVueTools/DebugContentShellJBridge.d.ts +6 -0
- package/bin/types/JsViewVueTools/DebugTool.d.ts +8 -0
- package/bin/types/JsViewVueTools/DefaultKeyMap.d.ts +10 -0
- package/bin/types/JsViewVueTools/ForgeConstDefine.d.ts +11 -0
- package/bin/types/JsViewVueTools/ForgeHandles.d.ts +6 -0
- package/bin/types/JsViewVueTools/JsvDemoTester.d.ts +2 -0
- package/bin/types/JsViewVueTools/JsvDynamicCssStyle.d.ts +14 -0
- package/bin/types/JsViewVueTools/JsvDynamicKeyFrames.d.ts +21 -0
- package/bin/types/JsViewVueTools/JsvHashHistory.d.ts +16 -0
- package/bin/types/JsViewVueTools/JsvImpactTracer.d.ts +40 -0
- package/bin/types/JsViewVueTools/JsvRefTaker.d.ts +27 -0
- package/bin/types/JsViewVueTools/JsvRuntimeBridge.d.ts +279 -0
- package/bin/types/JsViewVueTools/JsvStyleClass.d.ts +31 -0
- package/bin/types/JsViewVueTools/JsvStyleSheetsDeclarer.d.ts +15 -0
- package/bin/types/JsViewVueTools/JsvTextTools.d.ts +37 -0
- package/bin/types/JsViewVueTools/JsvTextureDefines.d.ts +6 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/CanvasTexture/CanvasTexture.d.ts +95 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/CanvasTexture/CommandList.d.ts +15 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/CanvasTexture/Path.d.ts +75 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.d.ts +11 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/JsvTextureStore.d.ts +24 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/Store.d.ts +10 -0
- package/bin/types/JsViewVueTools/JsvTextureStore/Texture.d.ts +23 -0
- package/bin/types/JsViewVueTools/NinePatchHelper.d.ts +21 -0
- package/bin/types/JsViewVueTools/TypeCheckAndSet.d.ts +2 -0
- package/bin/types/JsViewVueTools/index.d.ts +14 -0
- package/bin/types/JsViewVueWidget/JsvActorMove/ActorControlBase.d.ts +31 -0
- package/bin/types/JsViewVueWidget/JsvActorMove/JsvActorMove.vue.d.ts +64 -0
- package/bin/types/JsViewVueWidget/JsvActorMove/JsvActorMoveControl.d.ts +33 -0
- package/bin/types/JsViewVueWidget/JsvActorMove/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic/BrowserApic.vue.d.ts +15 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic/JsvApic.vue.d.ts +50 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/BrowserApic2.vue.d.ts +13 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/JsvApic2.vue.d.ts +23 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvApic2/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/ApicDataBase.d.ts +13 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/BrowserApicLib.d.ts +3 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/GifData.d.ts +5 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/NormalLoopTool.d.ts +7 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/PartLoopTool.d.ts +12 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/SingleLoopTool.d.ts +5 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/Viewer.d.ts +19 -0
- package/bin/types/JsViewVueWidget/JsvApic/JsvBrowserApicLib/WebpData.d.ts +5 -0
- package/bin/types/{jsview-vue-common.d.mts → JsViewVueWidget/JsvApic/JsvCommonLoopToolBase.d.ts} +12 -13
- package/bin/types/JsViewVueWidget/JsvConnectLine/ArcLineManager.d.ts +1 -0
- package/bin/types/JsViewVueWidget/JsvConnectLine/JsvConnectLine.vue.d.ts +13 -0
- package/bin/types/JsViewVueWidget/JsvConnectLine/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvEnableRenderBreak.vue.d.ts +51 -0
- package/bin/types/JsViewVueWidget/JsvFilterView.vue.d.ts +72 -0
- package/bin/types/JsViewVueWidget/JsvFlexCell/JsvFlexDiv.vue.d.ts +72 -0
- package/bin/types/JsViewVueWidget/JsvFlexCell/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/ActionRefObject.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/ActorControl.d.ts +65 -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 +78 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/JsvEnvBlocker.vue.d.ts +84 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/NexusNode.d.ts +6 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/SetAction.d.ts +71 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/SetCondition.d.ts +95 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/SetState.d.ts +62 -0
- package/bin/types/JsViewVueWidget/JsvFreeMoveActor/index.d.ts +12 -0
- package/bin/types/JsViewVueWidget/JsvGrid.vue.d.ts +168 -0
- package/bin/types/JsViewVueWidget/JsvHole.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvInput/Cursor.vue.d.ts +36 -0
- package/bin/types/JsViewVueWidget/JsvInput/JsvInput.vue.d.ts +210 -0
- package/bin/types/JsViewVueWidget/JsvInput/index.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvLine/JsvLine.vue.d.ts +12 -0
- package/bin/types/JsViewVueWidget/JsvLine/LineManager.d.ts +1 -0
- package/bin/types/JsViewVueWidget/JsvLine/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvMarquee.vue.d.ts +12 -0
- package/bin/types/JsViewVueWidget/JsvMaskClipDiv.vue.d.ts +83 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/CommonType.d.ts +1 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/Constant.d.ts +9 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/DataTree.d.ts +69 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/Geometry.d.ts +68 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/JsvMindMap.vue.d.ts +145 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/index.d.ts +1 -0
- package/bin/types/JsViewVueWidget/JsvMindMap/rtree.d.ts +40 -0
- package/bin/types/JsViewVueWidget/JsvNativeSharedDiv.vue.d.ts +69 -0
- package/bin/types/JsViewVueWidget/JsvNinePatch.vue.d.ts +19 -0
- package/bin/types/JsViewVueWidget/JsvPieChart.vue.d.ts +9 -0
- package/bin/types/JsViewVueWidget/JsvPosterDiv.vue.d.ts +60 -0
- package/bin/types/JsViewVueWidget/JsvPosterImage.vue.d.ts +75 -0
- package/bin/types/JsViewVueWidget/JsvPreload/BrowserPreload.vue.d.ts +10 -0
- package/bin/types/JsViewVueWidget/JsvPreload/JsvPreload.vue.d.ts +25 -0
- package/bin/types/JsViewVueWidget/JsvPreload/index.d.ts +17 -0
- package/bin/types/JsViewVueWidget/JsvProgressBar.vue.d.ts +12 -0
- package/bin/types/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue.d.ts +11 -0
- package/bin/types/JsViewVueWidget/JsvQrcode/JsvQrcode.vue.d.ts +60 -0
- package/bin/types/JsViewVueWidget/JsvQrcode/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvRadarChart.vue.d.ts +13 -0
- package/bin/types/JsViewVueWidget/JsvRipple/Constant.d.ts +4 -0
- package/bin/types/JsViewVueWidget/JsvRipple/JsvRipple.vue.d.ts +84 -0
- package/bin/types/JsViewVueWidget/JsvRipple/index.d.ts +3 -0
- package/bin/types/JsViewVueWidget/JsvScaleTextBox.vue.d.ts +10 -0
- package/bin/types/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue.d.ts +176 -0
- package/bin/types/JsViewVueWidget/JsvScrollBox/ScrollSymbol.d.ts +7 -0
- package/bin/types/JsViewVueWidget/JsvScrollBox/index.d.ts +1 -0
- package/bin/types/JsViewVueWidget/JsvSector.vue.d.ts +10 -0
- package/bin/types/JsViewVueWidget/JsvSoundPool.d.ts +84 -0
- package/bin/types/JsViewVueWidget/JsvSpray/BrowserSpray.vue.d.ts +25 -0
- package/bin/types/JsViewVueWidget/JsvSpray/JsvSpray.vue.d.ts +38 -0
- package/bin/types/JsViewVueWidget/JsvSpray/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/FrameBuidler.d.ts +14 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue.d.ts +18 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteLoader.vue.d.ts +69 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/JsvSpriteTools.d.ts +11 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/SpriteController.d.ts +17 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/index.d.ts +5 -0
- package/bin/types/JsViewVueWidget/JsvSpriteAnim/sAnimationToken.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvSwiper/JsvSwiper.vue.d.ts +209 -0
- package/bin/types/JsViewVueWidget/JsvSwiper/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue.d.ts +97 -0
- package/bin/types/JsViewVueWidget/JsvSwiper3D/index.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvTextBox.vue.d.ts +75 -0
- package/bin/types/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue.d.ts +151 -0
- package/bin/types/JsViewVueWidget/JsvTextureAnim/CommonType.d.ts +2 -0
- package/bin/types/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue.d.ts +107 -0
- package/bin/types/JsViewVueWidget/JsvTextureAnim/index.d.ts +14 -0
- package/bin/types/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue.d.ts +84 -0
- package/bin/types/JsViewVueWidget/JsvVisibleSensor/index.d.ts +84 -0
- package/bin/types/JsViewVueWidget/index.d.ts +38 -0
- package/bin/types/index.d.ts +4 -0
- package/index.d.ts +1 -1
- package/package.json +1 -1
- package/tools/config/tsconfig.json +6 -6
- package/tools/jsview-vue-build.mjs +13 -4
- package/utils/JsViewEngineWidget/MetroWidget/ListWidget.vue +7 -4
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidget.vue +28 -6
- package/utils/JsViewEngineWidget/MetroWidget/MetroWidgetSetup.js +568 -369
- package/utils/JsViewEngineWidget/MetroWidget/RenderItem.ts +4 -3
- package/utils/JsViewEngineWidget/MetroWidget/Slide.ts +56 -0
- package/utils/JsViewEngineWidget/MetroWidget/TaskManager.ts +51 -10
- package/utils/JsViewEngineWidget/MetroWidget/TokenGenerator.ts +10 -0
- package/utils/JsViewEngineWidget/MetroWidget/VisibleInfo.ts +1 -1
- package/utils/JsViewEngineWidget/TemplateParser/CommonMetroTemplate.ts +21 -21
- package/utils/JsViewEngineWidget/TemplateParser/ListMetroTemplate.ts +13 -7
- package/utils/JsViewEngineWidget/TemplateParser/MetroTemplate.ts +35 -45
- package/utils/JsViewEngineWidget/TemplateParser/TemplateItemAdder.ts +6 -6
- package/utils/JsViewEngineWidget/WidgetCommon.ts +34 -5
- 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/JsvRuntimeBridge.js +166 -48
- package/utils/JsViewVueTools/JsvTextureStore/CapturedTexture/CapturedTexture.ts +62 -0
- package/utils/JsViewVueTools/JsvTextureStore/JsvTextureStore.ts +41 -7
- package/utils/JsViewVueTools/JsvTextureStore/Texture.ts +15 -1
- package/utils/JsViewVueTools/index.js +2 -0
- package/utils/JsViewVueWidget/JsvApic/JsvApic/BrowserApic.vue +6 -6
- package/utils/JsViewVueWidget/JsvApic/JsvApic2/BrowserApic2.vue +5 -6
- package/utils/JsViewVueWidget/JsvApic/JsvBrowserApicLib/ApicDataBase.js +5 -1
- package/utils/JsViewVueWidget/JsvFreeMoveActor/ActionRefObject.ts +1 -1
- package/utils/JsViewVueWidget/JsvFreeMoveActor/ActorControl.ts +23 -1
- 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 +24 -0
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetCondition.ts +58 -1
- package/utils/JsViewVueWidget/JsvFreeMoveActor/SetState.ts +56 -0
- package/utils/JsViewVueWidget/JsvFreeMoveActor/index.js +3 -0
- package/utils/JsViewVueWidget/JsvMaskClipDiv.vue +6 -1
- package/utils/JsViewVueWidget/JsvMindMap/JsvMindMap.vue +1 -1
- package/utils/JsViewVueWidget/JsvMindMap/rtree.js +1 -1
- package/utils/JsViewVueWidget/JsvNativeSharedDiv.vue +121 -68
- package/utils/JsViewVueWidget/JsvNinePatch.vue +4 -1
- package/utils/JsViewVueWidget/JsvPosterImage.vue +22 -9
- package/utils/JsViewVueWidget/JsvQrcode/BrowserQrcode.vue +6 -2
- package/utils/JsViewVueWidget/JsvScrollBox/JsvScrollBox.vue +309 -0
- package/utils/JsViewVueWidget/JsvScrollBox/ScrollSymbol.ts +15 -0
- package/utils/JsViewVueWidget/JsvScrollBox/index.js +2 -0
- package/utils/JsViewVueWidget/JsvTextBox.vue +24 -4
- package/utils/JsViewVueWidget/JsvTextureAnim/BrowserTextureAnim.vue +27 -9
- package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +2 -0
- package/utils/JsViewVueWidget/index.js +1 -0
- package/bin/types/browser/BrowserApic.vue.d.mts +0 -33
- package/bin/types/browser/BrowserApic2.vue.d.mts +0 -16
- package/bin/types/browser/BrowserApicLib.d.mts +0 -56
- package/bin/types/browser/BrowserAudio.vue.d.mts +0 -2
- package/bin/types/browser/BrowserJsvLatex.vue.d.mts +0 -55
- package/bin/types/browser/BrowserPreload.vue.d.mts +0 -14
- package/bin/types/browser/BrowserQrcode.vue.d.mts +0 -29
- package/bin/types/browser/BrowserSpray.vue.d.mts +0 -2
- package/bin/types/browser/BrowserTextureAnim.vue.d.mts +0 -2
- package/bin/types/export-sfc.d.mts +0 -2
- package/bin/types/jsview-vue.d.mts +0 -2511
|
@@ -0,0 +1,84 @@
|
|
|
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 left?: number | undefined;
|
|
22
|
+
readonly top?: number | undefined;
|
|
23
|
+
readonly enable?: boolean | undefined;
|
|
24
|
+
readonly height?: number | undefined;
|
|
25
|
+
readonly width?: number | undefined;
|
|
26
|
+
readonly container?: Record<string, any> | undefined;
|
|
27
|
+
readonly horizonShown?: number | undefined;
|
|
28
|
+
readonly verticalShown?: number | undefined;
|
|
29
|
+
readonly callback?: Function | undefined;
|
|
30
|
+
};
|
|
31
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
|
|
32
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
33
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
34
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
35
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
36
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
37
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
38
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
39
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
40
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
41
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
42
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
43
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
44
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
45
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
46
|
+
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;
|
|
47
|
+
};
|
|
48
|
+
$forceUpdate: () => void;
|
|
49
|
+
$nextTick: typeof import("vue").nextTick;
|
|
50
|
+
$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;
|
|
51
|
+
} & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{
|
|
52
|
+
$props: {
|
|
53
|
+
readonly left?: number | undefined;
|
|
54
|
+
readonly top?: number | undefined;
|
|
55
|
+
readonly enable?: boolean | undefined;
|
|
56
|
+
readonly height?: number | undefined;
|
|
57
|
+
readonly width?: number | undefined;
|
|
58
|
+
readonly container?: Record<string, any> | undefined;
|
|
59
|
+
readonly horizonShown?: number | undefined;
|
|
60
|
+
readonly verticalShown?: number | undefined;
|
|
61
|
+
readonly callback?: Function | undefined;
|
|
62
|
+
};
|
|
63
|
+
}> & {} & import("vue").ComponentCustomProperties & {};
|
|
64
|
+
__isFragment?: undefined;
|
|
65
|
+
__isTeleport?: undefined;
|
|
66
|
+
__isSuspense?: undefined;
|
|
67
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
|
|
68
|
+
$props: {
|
|
69
|
+
readonly left?: number | undefined;
|
|
70
|
+
readonly top?: number | undefined;
|
|
71
|
+
readonly enable?: boolean | undefined;
|
|
72
|
+
readonly height?: number | undefined;
|
|
73
|
+
readonly width?: number | undefined;
|
|
74
|
+
readonly container?: Record<string, any> | undefined;
|
|
75
|
+
readonly horizonShown?: number | undefined;
|
|
76
|
+
readonly verticalShown?: number | undefined;
|
|
77
|
+
readonly callback?: Function | undefined;
|
|
78
|
+
};
|
|
79
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
80
|
+
$slots: {
|
|
81
|
+
default: (_: {}) => any;
|
|
82
|
+
};
|
|
83
|
+
});
|
|
84
|
+
export default _default;
|
|
@@ -0,0 +1,84 @@
|
|
|
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 left?: number | undefined;
|
|
22
|
+
readonly top?: number | undefined;
|
|
23
|
+
readonly enable?: boolean | undefined;
|
|
24
|
+
readonly height?: number | undefined;
|
|
25
|
+
readonly width?: number | undefined;
|
|
26
|
+
readonly container?: Record<string, any> | undefined;
|
|
27
|
+
readonly horizonShown?: number | undefined;
|
|
28
|
+
readonly verticalShown?: number | undefined;
|
|
29
|
+
readonly callback?: Function | undefined;
|
|
30
|
+
};
|
|
31
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & {
|
|
32
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
33
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
34
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
35
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
36
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
37
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
38
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
39
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
40
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
41
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
42
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
43
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
44
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
45
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
46
|
+
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;
|
|
47
|
+
};
|
|
48
|
+
$forceUpdate: () => void;
|
|
49
|
+
$nextTick: typeof import("vue").nextTick;
|
|
50
|
+
$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;
|
|
51
|
+
} & Readonly<import("vue").ExtractPropTypes<{}>> & import("vue").ShallowUnwrapRef<{
|
|
52
|
+
$props: {
|
|
53
|
+
readonly left?: number | undefined;
|
|
54
|
+
readonly top?: number | undefined;
|
|
55
|
+
readonly enable?: boolean | undefined;
|
|
56
|
+
readonly height?: number | undefined;
|
|
57
|
+
readonly width?: number | undefined;
|
|
58
|
+
readonly container?: Record<string, any> | undefined;
|
|
59
|
+
readonly horizonShown?: number | undefined;
|
|
60
|
+
readonly verticalShown?: number | undefined;
|
|
61
|
+
readonly callback?: Function | undefined;
|
|
62
|
+
};
|
|
63
|
+
}> & {} & import("vue").ComponentCustomProperties & {};
|
|
64
|
+
__isFragment?: undefined;
|
|
65
|
+
__isTeleport?: undefined;
|
|
66
|
+
__isSuspense?: undefined;
|
|
67
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
|
|
68
|
+
$props: {
|
|
69
|
+
readonly left?: number | undefined;
|
|
70
|
+
readonly top?: number | undefined;
|
|
71
|
+
readonly enable?: boolean | undefined;
|
|
72
|
+
readonly height?: number | undefined;
|
|
73
|
+
readonly width?: number | undefined;
|
|
74
|
+
readonly container?: Record<string, any> | undefined;
|
|
75
|
+
readonly horizonShown?: number | undefined;
|
|
76
|
+
readonly verticalShown?: number | undefined;
|
|
77
|
+
readonly callback?: Function | undefined;
|
|
78
|
+
};
|
|
79
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
80
|
+
$slots: {
|
|
81
|
+
default: (_: {}) => any;
|
|
82
|
+
};
|
|
83
|
+
});
|
|
84
|
+
export default _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export * from "./JsvFreeMoveActor";
|
|
2
|
+
export * from "./JsvFlexCell";
|
|
3
|
+
export * from "./JsvSpriteAnim";
|
|
4
|
+
export * from "./JsvScrollBox";
|
|
5
|
+
export { default as JsvApic } from "./JsvApic/JsvApic";
|
|
6
|
+
export { default as JsvApic2 } from "./JsvApic/JsvApic2";
|
|
7
|
+
export { default as JsvQrcode } from "./JsvQrcode";
|
|
8
|
+
export { default as JsvSpray } from "./JsvSpray";
|
|
9
|
+
export { default as JsvSwiper } from "./JsvSwiper";
|
|
10
|
+
export { default as JsvSwiper3D } from "./JsvSwiper3D";
|
|
11
|
+
export { default as JsvVisibleSensor } from "./JsvVisibleSensor";
|
|
12
|
+
export { default as JsvFilterView } from "./JsvFilterView.vue";
|
|
13
|
+
export { default as JsvHole } from "./JsvHole.js";
|
|
14
|
+
export { default as JsvMarquee } from "./JsvMarquee.vue";
|
|
15
|
+
export { default as JsvMaskClipDiv } from "./JsvMaskClipDiv.vue";
|
|
16
|
+
export { default as JsvNinePatch } from "./JsvNinePatch.vue";
|
|
17
|
+
export { default as JsvPosterDiv } from "./JsvPosterDiv.vue";
|
|
18
|
+
export { default as JsvPosterImage } from "./JsvPosterImage.vue";
|
|
19
|
+
export { default as JsvScaleTextBox } from "./JsvScaleTextBox.vue";
|
|
20
|
+
export { JsvSoundPool } from "./JsvSoundPool.js";
|
|
21
|
+
export { default as JsvTextBox } from "./JsvTextBox.vue";
|
|
22
|
+
export { default as JsvRadarChart } from "./JsvRadarChart.vue";
|
|
23
|
+
export { default as JsvLine } from "./JsvLine";
|
|
24
|
+
export { default as JsvPieChart } from "./JsvPieChart.vue";
|
|
25
|
+
export { default as JsvSector } from "./JsvSector.vue";
|
|
26
|
+
export { default as JsvConnectLine } from "./JsvConnectLine";
|
|
27
|
+
export { default as JsvProgressBar } from "./JsvProgressBar.vue";
|
|
28
|
+
export { default as JsvEnableRenderBreak } from "./JsvEnableRenderBreak.vue";
|
|
29
|
+
export { JsvMindMap } from "./JsvMindMap";
|
|
30
|
+
import JsvNativeSharedDiv from "./JsvNativeSharedDiv.vue";
|
|
31
|
+
export { JsvNativeSharedDiv as JsvTransparentDiv, JsvNativeSharedDiv };
|
|
32
|
+
export { default as JsvActorMove, JsvActorMoveControl } from "./JsvActorMove";
|
|
33
|
+
export { LoopType, ApicEndState } from "./JsvApic/JsvCommonLoopToolBase.js";
|
|
34
|
+
export { default as JsvInput, InputType } from "./JsvInput";
|
|
35
|
+
export { default as JsvPreload, buildPreloadInfo, buildDownloadInfo } from "./JsvPreload";
|
|
36
|
+
export { default as JsvTextureAnim, TexAlignAnchor, DECORATE_NINEPATCH_ALPHA_MIX, DECORATE_BORDER_RADIUS } from "./JsvTextureAnim";
|
|
37
|
+
export { default as JsvGrid, PageType, LineType, FocusMoveType } from "./JsvGrid.vue";
|
|
38
|
+
export { default as JsvRipple, JsvRippleShape } from "./JsvRipple";
|
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"target": "es2022",
|
|
4
|
-
"module": "es2022",
|
|
5
|
-
"moduleResolution": "node",
|
|
6
|
-
"strict": true,
|
|
7
3
|
"allowJs": true,
|
|
8
4
|
"declaration": true,
|
|
5
|
+
"declarationDir": "../../bin/types",
|
|
9
6
|
"emitDeclarationOnly": true,
|
|
10
|
-
"
|
|
7
|
+
"module": "es2022",
|
|
8
|
+
"moduleResolution": "node",
|
|
9
|
+
"strict": true,
|
|
10
|
+
"target": "es2022",
|
|
11
11
|
},
|
|
12
12
|
"include": [
|
|
13
|
-
"../../
|
|
13
|
+
"../../utils/index.js"
|
|
14
14
|
],
|
|
15
15
|
}
|
|
@@ -58,11 +58,10 @@ async function main(argv)
|
|
|
58
58
|
const noSavePackages = noSavePkgList.toString().replaceAll(',', ' ');
|
|
59
59
|
const version = process.env['JSVIEW_VUE_VERSION'];
|
|
60
60
|
|
|
61
|
+
const npmInstalledFlag = path.resolve(jsviewVueDir, 'node_modules', '.cache', '.npm-installed');
|
|
61
62
|
let batchCommand = []
|
|
62
63
|
|
|
63
|
-
fs.
|
|
64
|
-
if(!argv.withoutNpmInstall
|
|
65
|
-
|| fs.existsSync(`${jsviewVueDir}/node_modules`) == false) {
|
|
64
|
+
if(!argv.withoutNpmInstall || fs.existsSync(npmInstalledFlag) == false) {
|
|
66
65
|
const registry = getNpmRegistry();
|
|
67
66
|
fs.rmSync(`${jsviewVueDir}/node_modules`, { recursive: true, force: true });
|
|
68
67
|
batchCommand = [
|
|
@@ -75,14 +74,23 @@ async function main(argv)
|
|
|
75
74
|
...batchCommand,
|
|
76
75
|
`JSVIEW_DISABLE_MANUALCHUNKS=true ${jsviewVueDir}/node_modules/.bin/vite build --config ${jsviewVueDir}/tools/config/vite.config.ts`,
|
|
77
76
|
`${version ? 'JSVIEW_VUE_VERSION='+version : ''} ${jsviewVueDir}/node_modules/.bin/rollup --config ${jsviewVueDir}/tools/config/rollup.config.mjs`,
|
|
78
|
-
`${jsviewVueDir}/node_modules/.bin/vue-tsc --project ${jsviewVueDir}/tools/config/tsconfig.json`,
|
|
79
77
|
];
|
|
78
|
+
if(!argv.withoutTsDeclare) {
|
|
79
|
+
fs.rmSync(jsviewVueBinDir, { recursive: true, force: true });
|
|
80
|
+
|
|
81
|
+
batchCommand = [
|
|
82
|
+
...batchCommand,
|
|
83
|
+
`${jsviewVueDir}/node_modules/.bin/vue-tsc --project ${jsviewVueDir}/tools/config/tsconfig.json`,
|
|
84
|
+
];
|
|
85
|
+
}
|
|
80
86
|
for(const command of batchCommand) {
|
|
81
87
|
execCommand(`cd ${jsviewVueDir} && ${command}`);
|
|
82
88
|
}
|
|
83
89
|
|
|
84
90
|
formatBannerRecursive(jsviewVueBinDir);
|
|
85
91
|
|
|
92
|
+
fs.mkdirSync(path.dirname(npmInstalledFlag), {recursive: true});
|
|
93
|
+
fs.writeFileSync(npmInstalledFlag, '');
|
|
86
94
|
if(!argv.withoutNpmInstall) {
|
|
87
95
|
fs.rmSync(`${jsviewVueDir}/node_modules`, { recursive: true, force: true });
|
|
88
96
|
fs.rmSync(`${jsviewVueDir}/package-lock.json`, { recursive: true, force: true });
|
|
@@ -94,6 +102,7 @@ async function main(argv)
|
|
|
94
102
|
const requiredUsages = {
|
|
95
103
|
};
|
|
96
104
|
const optionalUsages = {
|
|
105
|
+
'-t | --without-ts-declare': 'Ignore to generate typescript declaration.',
|
|
97
106
|
'-n | --without-npm-install': 'Ignore to run npm install.',
|
|
98
107
|
};
|
|
99
108
|
const argv = parseArguments(requiredUsages, optionalUsages, false);
|
|
@@ -123,7 +123,7 @@ const props = defineProps({
|
|
|
123
123
|
},
|
|
124
124
|
keepTraceRange: {
|
|
125
125
|
type: Number,
|
|
126
|
-
default:
|
|
126
|
+
default: -1,
|
|
127
127
|
},
|
|
128
128
|
onScroll: {
|
|
129
129
|
type: Function,
|
|
@@ -144,7 +144,7 @@ const props = defineProps({
|
|
|
144
144
|
},
|
|
145
145
|
touchFlag: {
|
|
146
146
|
type: Number,
|
|
147
|
-
default: 0
|
|
147
|
+
default: 0,
|
|
148
148
|
},
|
|
149
149
|
});
|
|
150
150
|
|
|
@@ -200,7 +200,10 @@ const {
|
|
|
200
200
|
touchDivSize,
|
|
201
201
|
"list"
|
|
202
202
|
);
|
|
203
|
-
|
|
203
|
+
let touchDivVOn = {};
|
|
204
|
+
if (onTouchRelease) {
|
|
205
|
+
touchDivVOn["jsv-touchend"] = onTouchRelease;
|
|
206
|
+
}
|
|
204
207
|
defineExpose(exportObject);
|
|
205
208
|
</script>
|
|
206
209
|
|
|
@@ -235,7 +238,7 @@ defineExpose(exportObject);
|
|
|
235
238
|
width: touchDivSize.width,
|
|
236
239
|
height: touchDivSize.height,
|
|
237
240
|
}"
|
|
238
|
-
|
|
241
|
+
v-on="touchDivVOn"
|
|
239
242
|
>
|
|
240
243
|
<div>
|
|
241
244
|
<slot name="background"></slot>
|
|
@@ -35,7 +35,16 @@
|
|
|
35
35
|
@constructor {Object} {speed, easing, boundProtect}
|
|
36
36
|
SeamlessSlide
|
|
37
37
|
@description 无缝滚动的设置类
|
|
38
|
-
@constructor {Object} {
|
|
38
|
+
@constructor {Object} {
|
|
39
|
+
* startPercent: 左/上侧触发滚动的比例 0-1
|
|
40
|
+
* endPercennt: 右/下侧触发滚动的比例 0-1
|
|
41
|
+
* headRange: 左/上按键触发滚动的区域比例 0-1
|
|
42
|
+
* tailRange: 右/下按键触发滚动的区域比例 0-1
|
|
43
|
+
* speed: 滚动速度, 像素/毫秒
|
|
44
|
+
* easing: 滚动动画的easing
|
|
45
|
+
* boundaryProtect: 确定滚动位置能否小于0或者大于最大长度
|
|
46
|
+
* fixFirstPage: 首页不滚动
|
|
47
|
+
* }
|
|
39
48
|
FixPositionSlide
|
|
40
49
|
@description 固定位置滚动的设置类
|
|
41
50
|
@constructor {Object} {fixPercent, speed, easing, boundProtect}
|
|
@@ -72,6 +81,7 @@
|
|
|
72
81
|
zIndex {int | object}: item的zIndex, 为object时可以分别设置{focus: 0, normal: 0}, 为number时则同时设置获焦和不获焦的zIndex,
|
|
73
82
|
uid {string}: item的uid, 可以通过uid来设置焦点
|
|
74
83
|
permanent {boolean}: 出去与是否保留
|
|
84
|
+
enableTap {boolean}: 是否接受触控tap
|
|
75
85
|
}
|
|
76
86
|
*
|
|
77
87
|
* onFocus {function} 控件获取焦点的回调
|
|
@@ -82,6 +92,10 @@
|
|
|
82
92
|
"rect": 到达边缘时的区域{x: 0, y: 0, width: 0,height: 0}
|
|
83
93
|
}
|
|
84
94
|
onScroll {function} 滚动时的回调 (visibleStart, visibleRange, totalSize) => {}
|
|
95
|
+
(TBD:
|
|
96
|
+
当前版本暂时不支持触控过程的实时回调,
|
|
97
|
+
由于回调js会严重拖慢性能,所以也不会设计实时回调,
|
|
98
|
+
关于边缘的拖动进度展示,将来会有额外组件支撑)
|
|
85
99
|
visibleStart: 可视区域的起点
|
|
86
100
|
visibleRange: 可视区域大小(不含padding)
|
|
87
101
|
totalSize: 所有item的总长
|
|
@@ -91,6 +105,7 @@
|
|
|
91
105
|
* flingPageWidth {}
|
|
92
106
|
* flingPageEdge {}
|
|
93
107
|
* disableClip {boolean} 取消显示范围的clipView
|
|
108
|
+
* touchFlag {int} 触控的开关, 0:关闭, 1:打开. 打开后支持drag, fling; item的tap则由measuresObject的enableTap控制
|
|
94
109
|
|
|
95
110
|
* methods:
|
|
96
111
|
getFocusBlockRef 获取此MetroWidget的 jsv-focus-block句柄,可以使用requestFocus完成获焦
|
|
@@ -177,6 +192,9 @@
|
|
|
177
192
|
@description 锁定滚动
|
|
178
193
|
unlockSlide
|
|
179
194
|
@description 取消锁定
|
|
195
|
+
setSlideSetting
|
|
196
|
+
@description 设置slideSetting
|
|
197
|
+
@params { SlideSetting | null } setting 滚动设置, 为null时使用props.slideSetting
|
|
180
198
|
|
|
181
199
|
slots:
|
|
182
200
|
renderItem: 该slot用于描画每个单元格
|
|
@@ -358,7 +376,7 @@ const props = defineProps({
|
|
|
358
376
|
},
|
|
359
377
|
keepTraceRange: {
|
|
360
378
|
type: Number,
|
|
361
|
-
default:
|
|
379
|
+
default: -1,
|
|
362
380
|
},
|
|
363
381
|
onScroll: {
|
|
364
382
|
type: Function,
|
|
@@ -379,7 +397,7 @@ const props = defineProps({
|
|
|
379
397
|
},
|
|
380
398
|
touchFlag: {
|
|
381
399
|
type: Number,
|
|
382
|
-
default: 0
|
|
400
|
+
default: 0,
|
|
383
401
|
},
|
|
384
402
|
});
|
|
385
403
|
|
|
@@ -436,6 +454,11 @@ const {
|
|
|
436
454
|
touchDivSize,
|
|
437
455
|
"common"
|
|
438
456
|
);
|
|
457
|
+
let touchDivVOn = {};
|
|
458
|
+
if (onTouchRelease) {
|
|
459
|
+
touchDivVOn["jsv-touchend"] = onTouchRelease;
|
|
460
|
+
}
|
|
461
|
+
|
|
439
462
|
defineExpose(exportObject);
|
|
440
463
|
</script>
|
|
441
464
|
|
|
@@ -470,7 +493,7 @@ defineExpose(exportObject);
|
|
|
470
493
|
width: touchDivSize.width,
|
|
471
494
|
height: touchDivSize.height,
|
|
472
495
|
}"
|
|
473
|
-
|
|
496
|
+
v-on="touchDivVOn"
|
|
474
497
|
>
|
|
475
498
|
<div>
|
|
476
499
|
<slot name="background"></slot>
|
|
@@ -529,8 +552,7 @@ defineExpose(exportObject);
|
|
|
529
552
|
width: item.renderStyle.width - normalizedPlaceHolder.gap,
|
|
530
553
|
height: item.renderStyle.height - normalizedPlaceHolder.gap,
|
|
531
554
|
backgroundColor:
|
|
532
|
-
currentFocusIndex == item.index
|
|
533
|
-
&& modeForExport == 2
|
|
555
|
+
currentFocusIndex == item.index && modeForExport == 2
|
|
534
556
|
? normalizedPlaceHolder.focusBackgroundColor
|
|
535
557
|
: normalizedPlaceHolder.backgroundColor,
|
|
536
558
|
borderRadius: normalizedPlaceHolder.borderRadius,
|