@shijiu/jsview-vue-samples 2.3.0 → 2.3.728-alpha.0
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/ABImageAlt/App.vue +114 -0
- package/ABImageAlt/Item.vue +133 -0
- package/{MetroWidgetDemos/SkeletonDiagram/assets/imageList.json → ABImageAlt/assets/imageList.js} +9 -1
- package/ABImageAlt/data.js +17 -0
- package/AI_Check_Rules.txt +5 -0
- package/AnimPicture/App.vue +20 -10
- package/ApicSwitch/App.vue +90 -0
- package/ApicSwitch/TabItem.vue +65 -0
- package/ApicSwitch/WebpShow.vue +24 -0
- package/ApicSwitch/data.js +50 -0
- package/Basic/AI_skills_update.md +1 -0
- package/Basic/components/div/ColorFormatTest.vue +93 -0
- package/Basic/components/div/DivRadius.vue +97 -15
- package/Basic/components/div/DivTag3Group.vue +30 -0
- package/Basic/components/img/ImageType.vue +65 -0
- package/Basic/components/panel/Panel2.vue +13 -1
- package/Basic/components/text/TextAlign.vue +7 -1
- package/BlobLoadTest/App.vue +201 -0
- package/BreakLinesApi/App.vue +82 -0
- package/CanvasDrawChart/App.vue +11 -0
- package/CanvasDrawChart/Graph1.vue +104 -0
- package/CanvasDrawChart/Graph2.vue +115 -0
- package/DashPath/App.vue +17 -16
- package/DashPath/AppForOperator.vue +2 -4
- package/DemoForOperator/AnimPic/AnimPic.vue +24 -2
- package/DemoForOperator/Banger/Banger/Banger.vue +73 -9
- package/DemoForOperator/Blur/Blur.vue +146 -0
- package/DemoForOperator/Blur/BlurInOut/BlurInOut.vue +184 -0
- package/DemoForOperator/Blur/BlurInOut/StaticBgSlide.vue +162 -0
- package/DemoForOperator/Blur/BlurPopup/BlurPopup.vue +249 -0
- package/DemoForOperator/BookFlip/App.vue +115 -0
- package/DemoForOperator/BookFlip/BookPage.vue +82 -0
- package/DemoForOperator/Bounce/Bounce.vue +33 -1
- package/DemoForOperator/Bounce/FreeMoveBuilder.js +1 -1
- package/DemoForOperator/ChunLian/Couplets.vue +44 -1
- package/DemoForOperator/ClickSpriteAnim/App.vue +130 -0
- package/DemoForOperator/ClickSpriteAnim/Item.vue +74 -0
- package/DemoForOperator/DominantColor/App.vue +187 -0
- package/DemoForOperator/EpisodeList/EpisodeList/Controller.vue +0 -3
- package/DemoForOperator/EpisodeList/EpisodeList/EpisodeList.vue +76 -2
- package/DemoForOperator/Firework1/App.vue +13 -2
- package/DemoForOperator/Firework1/Fireworks.vue +68 -11
- package/DemoForOperator/FlipPage/FlipPage/FlipPage.vue +30 -1
- package/DemoForOperator/Focus/Alpha/AlphaFocusBox.vue +27 -2
- package/DemoForOperator/Focus/Alpha/Item.vue +1 -0
- package/DemoForOperator/Focus/Light/Item.vue +1 -0
- package/DemoForOperator/Focus/Light/LightFocusBox.vue +42 -1
- package/DemoForOperator/Focus/Normal/Item.vue +1 -0
- package/DemoForOperator/Focus/Normal/NormalFocusBox.vue +12 -0
- package/DemoForOperator/FrameShadow/App.vue +193 -0
- package/DemoForOperator/FrameShadow/FrameShadow.vue +61 -0
- package/DemoForOperator/FullscreenIn/App.vue +1 -1
- package/DemoForOperator/FullscreenIn/FullscreenPoster.vue +18 -3
- package/DemoForOperator/Genie/App.vue +20 -6
- package/DemoForOperator/Genie/App2.vue +61 -0
- package/DemoForOperator/Genie/geniePakcer/GenieImage.vue +298 -0
- package/DemoForOperator/Genie/geniePakcer/GenieSlot.vue +292 -0
- package/DemoForOperator/Genie/geniePakcer/GenieTools.ts +463 -0
- package/DemoForOperator/GrayFilter/GrayFilter.vue +21 -0
- package/DemoForOperator/Jigsaw/JigsawFull.vue +58 -11
- package/DemoForOperator/Jigsaw/JigsawSingle.vue +47 -9
- package/DemoForOperator/LongChatBox/App.vue +36 -0
- package/DemoForOperator/LongChatBox/Bubble.vue +116 -0
- package/DemoForOperator/LongChatBox/LongChat.vue +204 -0
- package/DemoForOperator/LongChatBox/testData.js +14 -0
- package/DemoForOperator/Particle/Drop/DropParticle.vue +33 -1
- package/DemoForOperator/Particle/Explode/ExplodeParticle.vue +23 -2
- package/DemoForOperator/PosterAnim/PosterAnim.js +21 -0
- package/DemoForOperator/PosterOverflow/PosterOverflow.vue +16 -0
- package/DemoForOperator/Resize/App.vue +157 -0
- package/DemoForOperator/Resize/Resize/Item.vue +234 -0
- package/DemoForOperator/Resize/Resize/Resize.vue +96 -0
- package/DemoForOperator/Ripple/Ripple.vue +16 -1
- package/DemoForOperator/ScreenShootScale/App.vue +96 -0
- package/DemoForOperator/ScreenShootScale/Back.vue +86 -0
- package/DemoForOperator/ScreenShootScale/Front.vue +133 -0
- package/DemoForOperator/ScreenShootScale/Item.vue +62 -0
- package/DemoForOperator/ScreenShootScale/ScreenShootScale.vue +109 -0
- package/DemoForOperator/SmoothSwiper/App.vue +50 -0
- package/DemoForOperator/Sound/Bounce/App.vue +56 -0
- package/DemoForOperator/Sound/Bounce/Bounce.vue +87 -0
- package/DemoForOperator/Sound/Bounce/FreeMoveBuilder.js +146 -0
- package/DemoForOperator/Sound/Bounce/bgmusic.mp3 +0 -0
- package/DemoForOperator/Sound/Bounce/coin.mp3 +0 -0
- package/DemoForOperator/Sound/FocusMove/App.vue +134 -0
- package/DemoForOperator/Sound/FocusMove/Item.vue +43 -0
- package/DemoForOperator/Sound/FocusMove/move.mp3 +0 -0
- package/DemoForOperator/Sound/Rain/App.vue +11 -0
- package/DemoForOperator/Sound/Rain/Raining/Rain.vue +69 -0
- package/DemoForOperator/Sound/Rain/Raining/RainScene.vue +118 -0
- package/DemoForOperator/Sound/Sound/Sound.vue +24 -0
- package/DemoForOperator/Sound/Sound/index.js +4 -0
- package/DemoForOperator/Sound/Sound/useSound.js +112 -0
- package/DemoForOperator/Sprite/Sprite.vue +62 -5
- package/DemoForOperator/Stretch/Stretch/Stretch.vue +52 -2
- package/DemoForOperator/Swiper/App.vue +101 -0
- package/DemoForOperator/Swiper/Item.vue +56 -0
- package/DemoForOperator/Swiper/ParallaxSlide.vue +164 -0
- package/DemoForOperator/TabContent/TabContent/TabContent.vue +39 -1
- package/DemoForOperator/TabContentVertical/App.vue +104 -0
- package/DemoForOperator/TabContentVertical/ContentPage.vue +67 -0
- package/DemoForOperator/TabContentVertical/Item.vue +94 -0
- package/DemoForOperator/TabContentVertical/PageItem.vue +40 -0
- package/DemoForOperator/TabContentVertical/TabContent/CreepFocus.vue +160 -0
- package/DemoForOperator/TabContentVertical/TabContent/Item.vue +63 -0
- package/DemoForOperator/TabContentVertical/TabContent/TabContent.vue +184 -0
- package/DemoForOperator/TabContentVertical/TabContent/TabItem.vue +368 -0
- package/DemoForOperator/TabContentVertical/TabContent/TabWidget.vue +259 -0
- package/DemoForOperator/TabContentVertical/TabContent/Util.js +3 -0
- package/DemoForOperator/TabContentVertical/TabContent/ViewSwiper.vue +110 -0
- package/DemoForOperator/TabContentVertical/assets/children_science.png +0 -0
- package/DemoForOperator/TabContentVertical/assets/documentary.png +0 -0
- package/DemoForOperator/TabContentVertical/assets/free.png +0 -0
- package/DemoForOperator/TabContentVertical/assets/game.png +0 -0
- package/DemoForOperator/TabContentVertical/assets/home_selected.png +0 -0
- package/DemoForOperator/TabContentVertical/assets/movie_ticket.png +0 -0
- package/DemoForOperator/TabContentVertical/assets/my_account.png +0 -0
- package/DemoForOperator/TabContentVertical/assets/opera.png +0 -0
- package/DemoForOperator/TabContentVertical/assets/sports.png +0 -0
- package/DemoForOperator/TabContentVertical/assets/tv_drama.png +0 -0
- package/DemoForOperator/TabContentVertical/assets/variety_show.png +0 -0
- package/DemoForOperator/TabContentVertical/assets/vip.png +0 -0
- package/DemoForOperator/TabContentVertical/testData.js +76 -0
- package/DemoForOperator/Vortex/Vortex/Vortex.vue +26 -0
- package/DemoForOperator/routeList.js +125 -2
- package/DemoHomepage/App.vue +74 -1
- package/DemoHomepage/components/BodyFrame.vue +5 -0
- package/DemoHomepage/components/Item.vue +11 -0
- package/DemoHomepage/components/TabFrame.vue +1 -1
- package/DemoHomepage/router.js +798 -140
- package/DemoHomepage/views/Homepage.vue +60 -2
- package/DemoHomepage/watchTest.vue +50 -0
- package/DomRenderer/App.vue +133 -0
- package/FilterDemo/AnimatePic.vue +63 -17
- package/FilterDemo/App.vue +3 -3
- package/FlexCellDemo/AI_skills_update.md +4 -0
- package/FlexCellDemo/TestFrame1.vue +12 -2
- package/FlexCellDemo/TestFrame2.vue +10 -1
- package/FlexCellDemo/TestFrame3.vue +114 -59
- package/FpsLimit/App.vue +102 -0
- package/FreeMove/App.vue +24 -279
- package/FreeMove/TestScene1.vue +260 -0
- package/FreeMove/TestScene3.vue +431 -0
- package/FreeMoveChildAttract/App.vue +18 -8
- package/FreeMoveLink/App.vue +51 -22
- package/GiftRain/components/SpriteTranslate.vue +68 -48
- package/HashHistory/App.vue +2 -2
- package/HashHistory/router.js +1 -1
- package/Hover/App.vue +144 -0
- package/HttpRequestSSE/SSEReader.js +200 -0
- package/ImpactStop/App.vue +2 -2
- package/Input/FullKeyboard.vue +3 -3
- package/Input/InputPanel.vue +63 -3
- package/JsvLine/App.vue +53 -38
- package/LatexDemo/App.vue +3 -1
- package/LatexFormula/App.vue +196 -0
- package/LongImage/App.vue +1 -1
- package/LongImage/LongImageScroll.vue +111 -46
- package/LongImage/Scroll.vue +28 -9
- package/LongText/LongTextScroll.vue +14 -1
- package/Markdown/App.vue +36 -0
- package/Markdown/Bubble.vue +109 -0
- package/Markdown/LongChat.vue +216 -0
- package/Markdown/data.js +633 -0
- package/MetroWidgetDemos/AI_skills_update.md +2 -0
- package/MetroWidgetDemos/EpgFlowListType/App.vue +206 -0
- package/MetroWidgetDemos/EpgFlowListType/components/ContentCard.vue +105 -0
- package/MetroWidgetDemos/EpgFlowListType/components/FloorSection.vue +131 -0
- package/MetroWidgetDemos/EpgFlowListType/components/LeftTabItem.vue +41 -0
- package/MetroWidgetDemos/EpgFlowListType/data.js +78 -0
- package/MetroWidgetDemos/ListExpand/ChildItem.vue +130 -0
- package/MetroWidgetDemos/ListExpand/ExpandItem.vue +375 -0
- package/MetroWidgetDemos/ListExpand/ExpandItem1.vue +403 -0
- package/MetroWidgetDemos/ListExpand/assets/arrow-down.png +0 -0
- package/MetroWidgetDemos/ListExpand/assets/up-arrow.png +0 -0
- package/MetroWidgetDemos/ListExpand/components/WidgetListHandler.vue +150 -0
- package/MetroWidgetDemos/ListExpand/index.vue +88 -0
- package/MetroWidgetDemos/ListExpand/list.js +2421 -0
- package/MetroWidgetDemos/RefreshDemo/App.vue +14 -1
- package/MetroWidgetDemos/RenderAccelerate/App.vue +142 -0
- package/MetroWidgetDemos/RenderAccelerate/AppPage.vue +78 -0
- package/MetroWidgetDemos/RenderAccelerate/AppTab.vue +62 -0
- package/MetroWidgetDemos/RenderAccelerate/ContentItem.vue +409 -0
- package/MetroWidgetDemos/{TripleWidget → RenderAccelerate}/Item.vue +6 -3
- package/MetroWidgetDemos/RenderAccelerate/TabItem.vue +100 -0
- package/MetroWidgetDemos/RenderAccelerate/ViewSwiper.vue +215 -0
- package/MetroWidgetDemos/RenderAccelerate/WidgetItem.vue +107 -0
- package/MetroWidgetDemos/SkeletonDiagram/App.vue +35 -8
- package/MetroWidgetDemos/SkeletonDiagram/Item.vue +11 -2
- package/MetroWidgetDemos/SkeletonDiagram/assets/imageList.js +245 -0
- package/MetroWidgetDemos/SkeletonDiagram/data.js +3 -3
- package/MetroWidgetDemos/SpatialNav/App.vue +177 -0
- package/MetroWidgetDemos/SpatialNav/Buttons.vue +83 -0
- package/MetroWidgetDemos/SpatialNav/CustomFocus.vue +57 -0
- package/MetroWidgetDemos/SpatialNav/Item.vue +71 -0
- package/MetroWidgetDemos/SpatialNav/SimpleFloor.vue +86 -0
- package/MetroWidgetDemos/SpatialNav/StepMw.vue +113 -0
- package/MetroWidgetDemos/SpatialNav/TabContent/TabContent.vue +185 -0
- package/MetroWidgetDemos/SpatialNav/TripleSection/TripleSection.vue +69 -0
- package/MetroWidgetDemos/SpatialNav/TripleSection/WidgetItem.vue +100 -0
- package/MetroWidgetDemos/SpatialNav/TvSection/List.vue +75 -0
- package/MetroWidgetDemos/SpatialNav/TvSection/TvSection.vue +91 -0
- package/MetroWidgetDemos/basic2/App.vue +407 -0
- package/MetroWidgetDemos/basic2/Item.vue +68 -0
- package/MetroWidgetDemos/direction/App.vue +22 -0
- package/MetroWidgetDemos/gazeFocusDiff/App.vue +126 -0
- package/MetroWidgetDemos/gazeFocusDiff/Item.vue +87 -0
- package/MetroWidgetDemos/minimalUsage/App.vue +66 -0
- package/MetroWidgetDemos/minimalUsage/Item.vue +54 -0
- package/MetroWidgetDemos/ninePatchFocusPage/App.vue +23 -7
- package/MetroWidgetDemos/ninePatchFocusPage/Item.vue +7 -5
- package/MetroWidgetDemos/ninePatchFocusPage/focusConstants.js +2 -0
- package/MetroWidgetDemos/routeList.js +229 -8
- package/MetroWidgetDemos/slideSetting/App.vue +288 -99
- package/MetroWidgetDemos/zIndex/App.vue +117 -0
- package/MetroWidgetDemos/zIndex/Item.vue +61 -0
- package/NinePatchTester/App.vue +24 -31
- package/PosterPacker/App.vue +2 -2
- package/PreDecode/App.vue +140 -0
- package/ReactiveTest/App.vue +115 -0
- package/ReactiveTest/Item.vue +92 -0
- package/ReactiveTest/assets/imageList.js +245 -0
- package/ReactiveTest/component/TestSmartDiv.vue +50 -0
- package/ReactiveTest/component/TestSmartDivSrcList.vue +74 -0
- package/ReactiveTest/component/TestSmartImage.vue +46 -0
- package/ReactiveTest/component/TestSmartImageSrcList.vue +90 -0
- package/ReactiveTest/component/TestSmartImageStyle.vue +41 -0
- package/ReactiveTest/data.js +49 -0
- package/ScreenToBlob/App.vue +250 -0
- package/ScrollBoxTest/App.vue +52 -28
- package/ScrollBoxTest/ClipBar.vue +64 -2
- package/ScrollBoxTest/NinePatchBar.vue +64 -2
- package/ScrollBoxTest/SizeDivBar.vue +64 -2
- package/SecTorTest/App.vue +9 -3
- package/SpringFestival/SpringFestivalScene/FreeMoveBuilder.js +3 -3
- package/SyncDecode/App.vue +137 -0
- package/TextSizeLimit/App.vue +211 -0
- package/TextureAnimation/App3.vue +11 -1
- package/TouchWidget/App.vue +90 -5
- package/TouchWidget/WidgetItem.vue +1 -0
- package/TransitPage/App.vue +2 -0
- package/ViewOpacity/App.vue +19 -0
- package/assets/logo.png +0 -0
- package/package.json +1 -1
- package/DashPath/DashPath.vue +0 -118
- package/DemoForOperator/Genie/geniePakcer/Genie.vue +0 -699
- package/DemoForOperator/ScalePoster/App.vue +0 -4
- package/DemoForOperator/ScalePoster/ScalePoster.vue +0 -0
- package/DivMetroPerformance/App.vue +0 -157
- package/DivMetroPerformance/Item.vue +0 -58
- package/DivMetroPerformance/assets/bg.jpg +0 -0
- package/DivMetroPerformance/assets/coupon_content.png +0 -0
- package/DivMetroPerformance/assets/coupon_left.png +0 -0
- package/DivMetroPerformance/assets/coupon_mid.png +0 -0
- package/DivMetroPerformance/assets/coupon_right.png +0 -0
- package/DivMetroPerformance/assets/focus_border.png +0 -0
- package/DivMetroPerformance/assets/holder_logo.png +0 -0
- package/DivMetroPerformance/assets/jrbm.png +0 -0
- package/DivMetroPerformance/assets/line_left.png +0 -0
- package/DivMetroPerformance/assets/line_mid.png +0 -0
- package/DivMetroPerformance/assets/line_right.png +0 -0
- package/DivMetroPerformance/assets/loading.png +0 -0
- package/DivMetroPerformance/assets/logo.png +0 -0
- package/DivMetroPerformance/assets/mcjx.png +0 -0
- package/DivMetroPerformance/assets/tao.png +0 -0
- package/DivMetroPerformance/assets/tmall.png +0 -0
- package/DivMetroPerformance/border.png +0 -0
- package/DivMetroPerformance/components/ContentItem.vue +0 -384
- package/DivMetroPerformance/components/MyTab.vue +0 -129
- package/DivMetroPerformance/data.js +0 -124
- package/DivMetroPerformance/utils/GridItem.vue +0 -28
- package/DivMetroPerformance/utils/GridPlate.vue +0 -85
- package/MediaDemo/App.vue +0 -127
- package/MediaDemo/assets/audio-poster.png +0 -0
- package/MediaDemo/components/Button.vue +0 -69
- package/MediaDemo/components/Controllor.vue +0 -286
- package/MediaDemo/components/StatusBar.vue +0 -100
- package/MediaDemo/components/frames/AudioFrame.vue +0 -39
- package/MediaDemo/components/frames/AudioPoster.vue +0 -48
- package/MediaDemo/components/frames/MediaFrame.vue +0 -153
- package/MediaDemo/components/frames/VideoFrame.vue +0 -39
- package/MetroWidgetDemos/TripleWidget/App.vue +0 -81
- package/MetroWidgetDemos/TripleWidget/SWidgetItem.vue +0 -93
- package/MetroWidgetDemos/TripleWidget/WidgetItem.vue +0 -111
- package/Parkour/App.vue +0 -13
- package/Parkour/Common/Context.js +0 -21
- package/Parkour/Common/MatchmanInfo.js +0 -62
- package/Parkour/Common/Random.js +0 -61
- package/Parkour/Common/Sound.js +0 -50
- package/Parkour/appConfig/HOW_TO_CONFIG.md +0 -20
- package/Parkour/appConfig/app.config.mjs +0 -5
- package/Parkour/appConfig/app_sign_private_key_sample.crt +0 -28
- package/Parkour/appConfig/app_sign_public_key_sample.pem +0 -9
- package/Parkour/appConfig/jsview.config.mjs +0 -39
- package/Parkour/assets/Bgimages/bg1.png +0 -0
- package/Parkour/assets/Bgimages/bg2.png +0 -0
- package/Parkour/assets/Bgimages/bg3.png +0 -0
- package/Parkour/assets/Bgimages/bg4.png +0 -0
- package/Parkour/assets/Bgimages/bg5.png +0 -0
- package/Parkour/assets/audio/jump.mp3 +0 -0
- package/Parkour/assets/audio/lose.mp3 +0 -0
- package/Parkour/assets/role_skin1/fail.json +0 -44
- package/Parkour/assets/role_skin1/fail.png +0 -0
- package/Parkour/assets/role_skin1/jump_down.json +0 -20
- package/Parkour/assets/role_skin1/jump_down.png +0 -0
- package/Parkour/assets/role_skin1/jump_up.json +0 -44
- package/Parkour/assets/role_skin1/jump_up.png +0 -0
- package/Parkour/assets/role_skin1/roll.json +0 -44
- package/Parkour/assets/role_skin1/roll.png +0 -0
- package/Parkour/assets/role_skin1/run.json +0 -52
- package/Parkour/assets/role_skin1/run.png +0 -0
- package/Parkour/components/Backdrop.vue +0 -61
- package/Parkour/components/GameSence.vue +0 -602
- package/Parkour/components/Matchman.vue +0 -85
- package/TextureAnimation/utils/FrameCanvasStore.ts +0 -68
- package/TextureAnimation/utils/RotateFrame.vue +0 -146
- package/TextureAnimation/utils/circleHaloMask.png +0 -0
- package/ThrowMoveDemo/AccelerateDemo.vue +0 -85
- package/ThrowMoveDemo/App.vue +0 -104
- package/ThrowMoveDemo/LRParabolicDemo.vue +0 -101
- package/ThrowMoveDemo/TargetDemo.vue +0 -87
- package/ThrowMoveDemo/UDParabolicDemo.vue +0 -92
- /package/{AnimPicture/assets → assets}/animated_webp.webp +0 -0
- /package/{AnimPicture/assets → assets}/ball_3.webp +0 -0
- /package/{AnimPicture/assets → assets}/girl_run.gif +0 -0
- /package/{AnimPicture/assets → assets}/quan.webp +0 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { onMounted, inject, ref, watch } from "vue";
|
|
3
|
+
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
onEdge: Function,
|
|
6
|
+
name: String,
|
|
7
|
+
layout: Object,
|
|
8
|
+
dataLoader: Function, // (tabId) => Promise
|
|
9
|
+
animDuration: { type: Number, default: 200 },
|
|
10
|
+
onFocus: Function,
|
|
11
|
+
onBlur: Function,
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
const globalInfo = inject("globalInfo");
|
|
15
|
+
const animState = inject("animState");
|
|
16
|
+
|
|
17
|
+
const page0Show = ref(false);
|
|
18
|
+
let page0Data = null;
|
|
19
|
+
const page0Anim = ref({ anim: null, onend: null });
|
|
20
|
+
const appSwiper_onFocus = () => {
|
|
21
|
+
console.log("testtest swiper on focus")
|
|
22
|
+
props.onFocus();
|
|
23
|
+
};
|
|
24
|
+
const appSwiper_onBlur = () => {
|
|
25
|
+
console.log("testtest swiper on blur")
|
|
26
|
+
props.onBlur();
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
const appSwiper_tabIdWatcher = (newValue, oldValue) => {
|
|
30
|
+
let direction = newValue > oldValue ? "left" : "right";
|
|
31
|
+
page0Show.value = false;
|
|
32
|
+
page0Data = null;
|
|
33
|
+
page0Anim.value = ref({ anim: null, onend: null });
|
|
34
|
+
props.dataLoader(newValue).then((data) => {
|
|
35
|
+
console.log("testtest swiper data", data);
|
|
36
|
+
if (oldValue > -1) {
|
|
37
|
+
animState.value = 1;
|
|
38
|
+
}
|
|
39
|
+
page0Anim.value = {
|
|
40
|
+
anim:
|
|
41
|
+
oldValue != -1
|
|
42
|
+
? `app-swiper-${direction}-slide-in ${
|
|
43
|
+
props.animDuration / 1000
|
|
44
|
+
}s cubic-bezier(0.05, 0.55, 0.13, 0.78) 1`
|
|
45
|
+
: null,
|
|
46
|
+
onend: () => {
|
|
47
|
+
animState.value = 0;
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
page0Data = data;
|
|
51
|
+
page0Show.value = true;
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
watch(
|
|
56
|
+
() => globalInfo.updateTabId,
|
|
57
|
+
(newValue, oldValue) => {
|
|
58
|
+
console.log("ccht updateTabId changed", globalInfo.updateTabId);
|
|
59
|
+
appSwiper_tabIdWatcher(newValue, oldValue);
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
</script>
|
|
63
|
+
|
|
64
|
+
<template>
|
|
65
|
+
<jsv-focus-block
|
|
66
|
+
:name="name"
|
|
67
|
+
ref="focusNode"
|
|
68
|
+
:onAction="{
|
|
69
|
+
onFocus: appSwiper_onFocus,
|
|
70
|
+
onBlur: appSwiper_onBlur,
|
|
71
|
+
}"
|
|
72
|
+
>
|
|
73
|
+
<div
|
|
74
|
+
id="page0"
|
|
75
|
+
:style="{
|
|
76
|
+
left: layout.left,
|
|
77
|
+
top: layout.top,
|
|
78
|
+
width: layout.width,
|
|
79
|
+
height: layout.height,
|
|
80
|
+
animation: page0Anim.anim,
|
|
81
|
+
animationFillMode: 'forwards',
|
|
82
|
+
}"
|
|
83
|
+
@animationend="page0Anim.onend"
|
|
84
|
+
>
|
|
85
|
+
<slot v-if="page0Show" :data="page0Data" :onEdge="onEdge"></slot>
|
|
86
|
+
</div>
|
|
87
|
+
</jsv-focus-block>
|
|
88
|
+
</template>
|
|
89
|
+
|
|
90
|
+
<style>
|
|
91
|
+
@keyframes app-swiper-left-slide-in {
|
|
92
|
+
from {
|
|
93
|
+
transform: translate3d(0px, 180px, 0px);
|
|
94
|
+
}
|
|
95
|
+
to {
|
|
96
|
+
transform: translate3d(0px, 0px, 0px);
|
|
97
|
+
/* animation-timing-function: cubic-bezier(0.05, 0.55, 0.13, 0.78); */
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@keyframes app-swiper-right-slide-in {
|
|
102
|
+
from {
|
|
103
|
+
transform: translate3d(0px, -180px, 0px);
|
|
104
|
+
}
|
|
105
|
+
to {
|
|
106
|
+
transform: translate3d(0px, 0px, 0px);
|
|
107
|
+
/* animation-timing-function: cubic-bezier(0.05, 0.55, 0.13, 0.78); */
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
</style>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// 导入所有图片
|
|
2
|
+
import movieTicket from './assets/movie_ticket.png';
|
|
3
|
+
import varietyShow from './assets/variety_show.png';
|
|
4
|
+
import childrenScience from './assets/children_science.png';
|
|
5
|
+
import tvDrama from './assets/tv_drama.png';
|
|
6
|
+
import documentary from './assets/documentary.png';
|
|
7
|
+
import myAccount from './assets/my_account.png';
|
|
8
|
+
import free from './assets/free.png';
|
|
9
|
+
import opera from './assets/opera.png';
|
|
10
|
+
import vip from './assets/vip.png';
|
|
11
|
+
import sports from './assets/sports.png';
|
|
12
|
+
import homeSelected from './assets/home_selected.png';
|
|
13
|
+
import game from './assets/game.png';
|
|
14
|
+
|
|
15
|
+
export const testData = [
|
|
16
|
+
{
|
|
17
|
+
"indexId": 0,
|
|
18
|
+
"itemTitle": "电影票",
|
|
19
|
+
"icon": movieTicket
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"indexId": 1,
|
|
23
|
+
"itemTitle": "综艺",
|
|
24
|
+
"icon": varietyShow
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"indexId": 2,
|
|
28
|
+
"itemTitle": "少儿科普",
|
|
29
|
+
"icon": childrenScience
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"indexId": 3,
|
|
33
|
+
"itemTitle": "电视剧",
|
|
34
|
+
"icon": tvDrama
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"indexId": 4,
|
|
38
|
+
"itemTitle": "纪录片",
|
|
39
|
+
"icon": documentary
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"indexId": 5,
|
|
43
|
+
"itemTitle": "我的",
|
|
44
|
+
"icon": myAccount,
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"indexId": 6,
|
|
48
|
+
"itemTitle": "免费",
|
|
49
|
+
"icon": free,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"indexId": 7,
|
|
53
|
+
"itemTitle": "戏曲",
|
|
54
|
+
"icon": opera,
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"indexId": 8,
|
|
58
|
+
"itemTitle": "VIP",
|
|
59
|
+
"icon": vip,
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"indexId": 9,
|
|
63
|
+
"itemTitle": "体育",
|
|
64
|
+
"icon": sports,
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"indexId": 10,
|
|
68
|
+
"itemTitle": "首页",
|
|
69
|
+
"icon": homeSelected,
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"indexId": 11,
|
|
73
|
+
"itemTitle": "游戏",
|
|
74
|
+
"icon": game,
|
|
75
|
+
},
|
|
76
|
+
];
|
|
@@ -52,6 +52,9 @@
|
|
|
52
52
|
</template>
|
|
53
53
|
|
|
54
54
|
<script setup>
|
|
55
|
+
/**
|
|
56
|
+
* @slot 默认插槽 - 用于放置需要进行漩涡动画的内容
|
|
57
|
+
*/
|
|
55
58
|
import vortexOutShader from "./vortexOut.glsl?raw";
|
|
56
59
|
import vortexInShader from "./vortexIn.glsl?raw";
|
|
57
60
|
|
|
@@ -63,18 +66,36 @@ import {
|
|
|
63
66
|
} from "jsview";
|
|
64
67
|
|
|
65
68
|
const props = defineProps({
|
|
69
|
+
/**
|
|
70
|
+
* @type {Object} 布局配置对象
|
|
71
|
+
* @property {string} left - 组件左侧定位(如 '10px')
|
|
72
|
+
* @property {string} top - 组件顶部定位(如 '20px')
|
|
73
|
+
* @property {string} width - 组件宽度(如 '300px')
|
|
74
|
+
* @property {string} height - 组件高度(如 '200px')
|
|
75
|
+
*/
|
|
66
76
|
layout: {
|
|
67
77
|
type: Object,
|
|
68
78
|
required: true,
|
|
69
79
|
},
|
|
80
|
+
/**
|
|
81
|
+
* @type {number} 动画持续时间(单位:秒)
|
|
82
|
+
* @default 1
|
|
83
|
+
*/
|
|
70
84
|
duration: {
|
|
71
85
|
type: Number,
|
|
72
86
|
default: 1,
|
|
73
87
|
},
|
|
88
|
+
/**
|
|
89
|
+
* @type {boolean} 初始显示状态
|
|
90
|
+
* @default true
|
|
91
|
+
*/
|
|
74
92
|
initShow: {
|
|
75
93
|
type: Boolean,
|
|
76
94
|
default: true,
|
|
77
95
|
},
|
|
96
|
+
/**
|
|
97
|
+
* @type {Function} 动画结束回调函数
|
|
98
|
+
*/
|
|
78
99
|
onAnimEnd: {
|
|
79
100
|
type: Function,
|
|
80
101
|
}
|
|
@@ -141,6 +162,11 @@ function capture() {
|
|
|
141
162
|
}
|
|
142
163
|
|
|
143
164
|
defineExpose({
|
|
165
|
+
/**
|
|
166
|
+
* 切换动画状态
|
|
167
|
+
* @example
|
|
168
|
+
* componentRef.value.switch();
|
|
169
|
+
*/
|
|
144
170
|
switch() {
|
|
145
171
|
if (state == 0) {
|
|
146
172
|
state = 1;
|
|
@@ -6,137 +6,260 @@
|
|
|
6
6
|
export default [
|
|
7
7
|
{
|
|
8
8
|
meta: { nameText: '文字跑马灯', },
|
|
9
|
+
name: 'operator-文字跑马灯',
|
|
9
10
|
path: '/operator/Marquee',
|
|
10
11
|
component: () => import('@shijiu/jsview-vue-samples/Marquee/App.vue'),
|
|
11
12
|
},
|
|
12
13
|
{
|
|
13
14
|
meta: { nameText: '二维码', },
|
|
15
|
+
name: 'operator-二维码',
|
|
14
16
|
path: '/operator/QrcodeDemo',
|
|
15
17
|
component: () => import('@shijiu/jsview-vue-samples/QrcodeDemo/App.vue'),
|
|
16
18
|
},
|
|
17
19
|
{
|
|
18
20
|
meta: { nameText: '雷达图组件', },
|
|
21
|
+
name: 'operator-雷达图组件',
|
|
19
22
|
path: '/operator/RadarChart',
|
|
20
23
|
component: () => import('@shijiu/jsview-vue-samples/JsvRadarChart/App.vue')
|
|
21
24
|
},
|
|
22
25
|
{
|
|
23
26
|
meta: { nameText: '进度条组件', },
|
|
27
|
+
name: 'operator-进度条组件',
|
|
24
28
|
path: '/operator/ProgressBar',
|
|
25
29
|
component: () => import('@shijiu/jsview-vue-samples/ProgressBar/App.vue'),
|
|
26
30
|
},
|
|
27
31
|
{
|
|
28
32
|
meta: { nameText: '透视滚动组件', },
|
|
33
|
+
name: 'operator-透视滚动组件',
|
|
29
34
|
path: '/operator/Swiper3D',
|
|
30
35
|
component: () => import('@shijiu/jsview-vue-samples/SwiperTest/App.vue'),
|
|
31
36
|
},
|
|
32
37
|
{
|
|
33
38
|
meta: { nameText: '春联、对联组件', },
|
|
39
|
+
name: 'operator-春联、对联组件',
|
|
34
40
|
path: '/operator/ChunLian',
|
|
35
41
|
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/ChunLian/App.vue'),
|
|
36
42
|
},
|
|
37
43
|
{
|
|
38
44
|
meta: { nameText: '公祭日黑白屏', },
|
|
45
|
+
name: 'operator-公祭日黑白屏',
|
|
39
46
|
path: '/operator/GrayFilter',
|
|
40
47
|
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/GrayFilter/App.vue'),
|
|
41
48
|
},
|
|
42
49
|
{
|
|
43
50
|
meta: { nameText: '动图', },
|
|
51
|
+
name: 'operator-动图',
|
|
44
52
|
path: '/operator/AnimPic',
|
|
45
53
|
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/AnimPic/App.vue'),
|
|
46
54
|
},
|
|
47
55
|
{
|
|
48
56
|
meta: { nameText: '焦点', },
|
|
57
|
+
name: 'operator-焦点',
|
|
49
58
|
path: '/operator/Focus',
|
|
50
59
|
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/Focus/App.vue'),
|
|
51
60
|
},
|
|
61
|
+
{
|
|
62
|
+
meta: { nameText: '焦点框阴影', },
|
|
63
|
+
name: 'operator-焦点框阴影',
|
|
64
|
+
path: '/operator/FrameShadow',
|
|
65
|
+
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/FrameShadow/App.vue'),
|
|
66
|
+
},
|
|
52
67
|
{
|
|
53
68
|
meta: { nameText: '霸屏海报淡入效果落地效果', },
|
|
69
|
+
name: 'operator-霸屏海报淡入效果落地效果',
|
|
54
70
|
path: '/operator/FullscreenIn',
|
|
55
71
|
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/FullscreenIn/App.vue'),
|
|
56
72
|
},
|
|
57
73
|
{
|
|
58
74
|
meta: { nameText: '海报强调动画', },
|
|
75
|
+
name: 'operator-海报强调动画',
|
|
59
76
|
path: '/operator/PosterAnim',
|
|
60
77
|
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/PosterAnim/App.vue'),
|
|
61
78
|
},
|
|
62
79
|
{
|
|
63
80
|
meta: { nameText: '轮播图', },
|
|
81
|
+
name: 'operator-轮播图',
|
|
64
82
|
path: '/operator/Swiper',
|
|
65
83
|
component: () => import('@shijiu/jsview-vue-samples/Swiper/App.vue'),
|
|
66
84
|
},
|
|
67
85
|
{
|
|
68
86
|
meta: { nameText: '弹跳动画', },
|
|
87
|
+
name: 'operator-弹跳动画',
|
|
69
88
|
path: '/operator/Bounce',
|
|
70
89
|
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/Bounce/App.vue'),
|
|
71
90
|
},
|
|
72
91
|
{
|
|
73
92
|
meta: { nameText: '拼图组件', },
|
|
93
|
+
name: 'operator-拼图组件',
|
|
74
94
|
path: '/operator/Jigsaw',
|
|
75
95
|
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/Jigsaw/App.vue'),
|
|
76
96
|
},
|
|
77
97
|
{
|
|
78
98
|
meta: { nameText: '焦点海报多层叠加突出效果', },
|
|
99
|
+
name: 'operator-焦点海报多层叠加突出效果',
|
|
79
100
|
path: '/operator/PosterOverflow',
|
|
80
101
|
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/PosterOverflow/App.vue'),
|
|
81
102
|
},
|
|
82
103
|
{
|
|
83
104
|
meta: { nameText: '推箱效果组件', },
|
|
105
|
+
name: 'operator-推箱效果组件',
|
|
84
106
|
path: '/operator/Stretch',
|
|
85
107
|
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/Stretch/App.vue'),
|
|
86
108
|
},
|
|
87
109
|
{
|
|
88
110
|
meta: { nameText: '鞭炮组件', },
|
|
111
|
+
name: 'operator-鞭炮组件',
|
|
89
112
|
path: '/operator/Banger',
|
|
90
113
|
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/Banger/App.vue'),
|
|
91
114
|
},
|
|
92
115
|
{
|
|
93
116
|
meta: { nameText: '礼花组件', },
|
|
117
|
+
name: 'operator-礼花组件',
|
|
94
118
|
path: '/operator/Firework1',
|
|
95
119
|
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/Firework1/App.vue'),
|
|
96
120
|
},
|
|
97
121
|
{
|
|
98
122
|
meta: { nameText: '精灵图组件(动图)', },
|
|
123
|
+
name: 'operator-精灵图组件(动图)',
|
|
99
124
|
path: '/operator/Sprite',
|
|
100
125
|
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/Sprite/App.vue'),
|
|
101
126
|
},
|
|
102
127
|
{
|
|
103
|
-
meta: { nameText: '虹吸组件\n
|
|
128
|
+
meta: { nameText: '虹吸组件\n整页', },
|
|
129
|
+
name: 'operator-虹吸组件\n整页',
|
|
104
130
|
path: '/operator/Genie',
|
|
105
131
|
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/Genie/App.vue'),
|
|
106
132
|
},
|
|
133
|
+
{
|
|
134
|
+
meta: { nameText: '虹吸组件\n单海报', },
|
|
135
|
+
name: 'operator-虹吸组件\n单海报',
|
|
136
|
+
path: '/operator/Genie2',
|
|
137
|
+
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/Genie/App2.vue'),
|
|
138
|
+
},
|
|
107
139
|
{
|
|
108
140
|
meta: { nameText: '漩涡组件\n单海报/整页', },
|
|
141
|
+
name: 'operator-漩涡组件\n单海报/整页',
|
|
109
142
|
path: '/operator/Vortex',
|
|
110
143
|
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/Vortex/App.vue'),
|
|
111
144
|
},
|
|
112
145
|
{
|
|
113
|
-
meta: { nameText: '
|
|
146
|
+
meta: { nameText: '翻页效果(整体页面)', },
|
|
147
|
+
name: 'operator-翻页效果(整体页面)',
|
|
114
148
|
path: '/operator/FlipPage',
|
|
115
149
|
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/FlipPage/App.vue'),
|
|
116
150
|
},
|
|
117
151
|
{
|
|
118
152
|
meta: { nameText: '水波组件', },
|
|
153
|
+
name: 'operator-水波组件',
|
|
119
154
|
path: '/operator/Ripple',
|
|
120
155
|
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/Ripple/App.vue'),
|
|
121
156
|
},
|
|
122
157
|
{
|
|
123
158
|
meta: { nameText: '粒子喷洒组件', },
|
|
159
|
+
name: 'operator-粒子喷洒组件',
|
|
124
160
|
path: '/operator/Particle',
|
|
125
161
|
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/Particle/App.vue'),
|
|
126
162
|
},
|
|
127
163
|
{
|
|
128
164
|
meta: { nameText: '剧集列表', },
|
|
165
|
+
name: 'operator-剧集列表',
|
|
129
166
|
path: '/operator/EpisodeList',
|
|
130
167
|
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/EpisodeList/App.vue'),
|
|
131
168
|
},
|
|
132
169
|
{
|
|
133
170
|
meta: { nameText: 'tab-content', },
|
|
171
|
+
name: 'operator-tab-content',
|
|
134
172
|
path: '/operator/TabContent',
|
|
135
173
|
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/TabContent/App.vue'),
|
|
136
174
|
},
|
|
137
175
|
{
|
|
138
176
|
meta: { nameText: '虚线框', },
|
|
177
|
+
name: 'operator-虚线框',
|
|
139
178
|
path: '/operator/DashPath',
|
|
140
179
|
component: () => import('@shijiu/jsview-vue-samples/DashPath/AppForOperator.vue'),
|
|
141
180
|
},
|
|
181
|
+
{
|
|
182
|
+
meta: { nameText: '翻书', },
|
|
183
|
+
name: 'operator-翻书',
|
|
184
|
+
path: '/operator/BookFlip',
|
|
185
|
+
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/BookFlip/App.vue'),
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
meta: { nameText: '模糊弹出框', },
|
|
189
|
+
name: 'operator-模糊弹出框',
|
|
190
|
+
path: '/operator/BlurPopup',
|
|
191
|
+
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/Blur/BlurPopup/BlurPopup.vue'),
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
meta: { nameText: '模糊进出', },
|
|
195
|
+
name: 'operator-模糊进出',
|
|
196
|
+
path: '/operator/BlurInOut',
|
|
197
|
+
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/Blur/BlurInOut/BlurInOut.vue'),
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
meta: { nameText: '主色调', },
|
|
201
|
+
name: 'operator-主色调',
|
|
202
|
+
path: '/operator/DominantColor',
|
|
203
|
+
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/DominantColor/App.vue'),
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
meta: { nameText: '轮播图', },
|
|
207
|
+
name: 'operator-轮播图',
|
|
208
|
+
path: '/operator/Swiper',
|
|
209
|
+
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/Swiper/App.vue'),
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
meta: { nameText: '点击动画', },
|
|
213
|
+
name: 'operator-点击动画',
|
|
214
|
+
path: '/operator/ClickSpriteAnim',
|
|
215
|
+
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/ClickSpriteAnim/App.vue'),
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
meta: { nameText: '平滑轮播图', },
|
|
219
|
+
name: 'operator-平滑轮播图',
|
|
220
|
+
path: '/operator/SmoothSwiper',
|
|
221
|
+
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/SmoothSwiper/App.vue'),
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
meta: { nameText: '纵向爬虫', },
|
|
225
|
+
name: 'operator-纵向爬虫',
|
|
226
|
+
path: '/operator/TabContentVertical',
|
|
227
|
+
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/TabContentVertical/App.vue'),
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
meta: { nameText: '声音-跳动', },
|
|
231
|
+
name: 'operator-声音-跳动',
|
|
232
|
+
path: '/operator/Sound_Bounce',
|
|
233
|
+
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/Sound/Bounce/App.vue'),
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
meta: { nameText: '声音-下雨', },
|
|
237
|
+
name: 'operator-声音-下雨',
|
|
238
|
+
path: '/operator/Sound_Rain',
|
|
239
|
+
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/Sound/Rain/App.vue'),
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
meta: { nameText: '声音-焦点移动', },
|
|
243
|
+
name: 'operator-声音-焦点移动',
|
|
244
|
+
path: '/operator/Sound_FocusMove',
|
|
245
|
+
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/Sound/FocusMove/App.vue'),
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
meta: { nameText: 'resize', },
|
|
249
|
+
name: 'operator-resize',
|
|
250
|
+
path: '/operator/Resize',
|
|
251
|
+
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/Resize/App.vue'),
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
meta: { nameText: '截图缩放', },
|
|
255
|
+
name: 'operator-截图缩放',
|
|
256
|
+
path: '/operator/ScreenShootScale',
|
|
257
|
+
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/ScreenShootScale/App.vue'),
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
meta: { nameText: '长聊天框', },
|
|
261
|
+
name: 'operator-长聊天框',
|
|
262
|
+
path: '/operator/LongChatBox',
|
|
263
|
+
component: () => import('@shijiu/jsview-vue-samples/DemoForOperator/LongChatBox/App.vue'),
|
|
264
|
+
}
|
|
142
265
|
]
|
package/DemoHomepage/App.vue
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @Description: file content
|
|
7
7
|
-->
|
|
8
8
|
<script setup>
|
|
9
|
-
import { shallowRef, onMounted, onUnmounted, provide } from "vue";
|
|
9
|
+
import { shallowRef, onMounted, onUnmounted, provide, computed } from "vue";
|
|
10
10
|
import {
|
|
11
11
|
JsvPreload,
|
|
12
12
|
buildPreloadInfo,
|
|
@@ -15,10 +15,12 @@ import {
|
|
|
15
15
|
useFocusHub,
|
|
16
16
|
JsvTouchModeSwitcher,
|
|
17
17
|
JsvFullScrAdjust,
|
|
18
|
+
JsvScreenFlex
|
|
18
19
|
} from "jsview";
|
|
19
20
|
import { useRouter } from "vue-router";
|
|
20
21
|
import { setDataUrl, getDataUrl } from "../CommonUtils/ResourceData.js";
|
|
21
22
|
import { getSearchQuery } from "../CommonUtils/getSearchQuery.js";
|
|
23
|
+
import WatchTest from "./watchTest.vue";
|
|
22
24
|
|
|
23
25
|
let DemoResourceBase = shallowRef("");
|
|
24
26
|
let backgroundImageUrl = shallowRef(null);
|
|
@@ -30,6 +32,8 @@ window.DebugFocusHub = useFocusHub();
|
|
|
30
32
|
|
|
31
33
|
const router = useRouter();
|
|
32
34
|
|
|
35
|
+
window.JsvCoreApi?.enableConsoleTag?.("SomeTags");
|
|
36
|
+
|
|
33
37
|
// Android测试指令:
|
|
34
38
|
// am start -n com.qcode.miniappsdktester/.JSVActivity --es MINIAPPNAME "JsViewDemo" --ei MINIAPPLAUNCHMODE 1 --es URL "http://192.168.2.179/js/main.jsv.mjs#/feature/HashParams?a=333&b=444" --es DEBUG "1"
|
|
35
39
|
window.JsView?.addEventListener("onNewIntent", (msg) => {
|
|
@@ -52,6 +56,11 @@ let _onPreloadDone = () => {
|
|
|
52
56
|
jJsvRuntimeBridge.notifyPageLoaded();
|
|
53
57
|
};
|
|
54
58
|
|
|
59
|
+
// 追加骨架图截图测试项目
|
|
60
|
+
let rCaptureImage = shallowRef(null);
|
|
61
|
+
provide("homeCaptureImage", rCaptureImage);
|
|
62
|
+
|
|
63
|
+
|
|
55
64
|
const _OnKeyDown = (ev) => {
|
|
56
65
|
// 结果默认传下来的返回键
|
|
57
66
|
if (ev.keyCode == 8 || ev.keyCode == 27 || ev.keyCode == 10000) {
|
|
@@ -92,6 +101,52 @@ onMounted(() => {
|
|
|
92
101
|
}, 1000);
|
|
93
102
|
});
|
|
94
103
|
|
|
104
|
+
let lastAValue = 0;
|
|
105
|
+
let aValueWatchTest = computed (() => {
|
|
106
|
+
if (testKeepAliveModeText.value % 3 == 0) {
|
|
107
|
+
lastAValue = testKeepAliveModeText.value;
|
|
108
|
+
}
|
|
109
|
+
return lastAValue;
|
|
110
|
+
});
|
|
111
|
+
let lastBValue = 0;
|
|
112
|
+
let bValueWatchTest = computed(() => {
|
|
113
|
+
if (testKeepAliveModeText.value % 3 == 1) {
|
|
114
|
+
lastBValue = testKeepAliveModeText.value;
|
|
115
|
+
}
|
|
116
|
+
return lastBValue;
|
|
117
|
+
});
|
|
118
|
+
let lastCValue = 0;
|
|
119
|
+
let cValueWatchTest = computed(() => {
|
|
120
|
+
if (testKeepAliveModeText.value % 3 == 2) {
|
|
121
|
+
lastCValue = testKeepAliveModeText.value;
|
|
122
|
+
}
|
|
123
|
+
return lastCValue;
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
// 当前屏幕尺寸(来自 JsvScreenFlex 的 onSized)
|
|
127
|
+
let rScreenSize = shallowRef({ width: 0, height: 0 });
|
|
128
|
+
const _onScreenSized = (width, height) => {
|
|
129
|
+
rScreenSize.value = {
|
|
130
|
+
width: Math.round(width ?? 0),
|
|
131
|
+
height: Math.round(height ?? 0),
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
const cScreenSizeText = computed(() => {
|
|
136
|
+
const w = rScreenSize.value?.width ?? 0;
|
|
137
|
+
const h = rScreenSize.value?.height ?? 0;
|
|
138
|
+
return `${w} x ${h}`;
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
const cScreenSizeStyle = computed(() => {
|
|
142
|
+
return {
|
|
143
|
+
height: 32,
|
|
144
|
+
lineHeight: 32,
|
|
145
|
+
color: "#FFF000",
|
|
146
|
+
fontSize: 28,
|
|
147
|
+
};
|
|
148
|
+
});
|
|
149
|
+
|
|
95
150
|
onUnmounted(() => {
|
|
96
151
|
if (testKeepAliveTimer > 0) {
|
|
97
152
|
console.log("remove homepage interval");
|
|
@@ -102,6 +157,9 @@ onUnmounted(() => {
|
|
|
102
157
|
</script>
|
|
103
158
|
|
|
104
159
|
<template>
|
|
160
|
+
<JsvScreenFlex
|
|
161
|
+
background="https://cdn.release.qcast.cn/JsViewFrameworkTester/JsViewVueSampleResources/CustomShader/App/owl.jpeg"
|
|
162
|
+
/>
|
|
105
163
|
<JsvFullScrAdjust :childWidth="1280" :childHeight="720">
|
|
106
164
|
<jsv-touch-mode-switcher
|
|
107
165
|
ref="touchModeSwitcherRef"
|
|
@@ -120,6 +178,7 @@ onUnmounted(() => {
|
|
|
120
178
|
<div class="TestKeepAliveDiv">
|
|
121
179
|
{{ "更新页面计数:" + testKeepAliveModeText }}
|
|
122
180
|
</div>
|
|
181
|
+
<!-- <WatchTest :aValue="aValueWatchTest" :bValue="bValueWatchTest" :cValue="cValueWatchTest" /> -->
|
|
123
182
|
<jsv-focus-block
|
|
124
183
|
:onAction="{
|
|
125
184
|
onKeyDown: _OnKeyDown,
|
|
@@ -134,6 +193,20 @@ onUnmounted(() => {
|
|
|
134
193
|
</jsv-focus-block>
|
|
135
194
|
</jsv-touch-mode-switcher>
|
|
136
195
|
</JsvFullScrAdjust>
|
|
196
|
+
|
|
197
|
+
<!-- 与 JsvFullScrAdjust 同级,后渲染覆盖在上层;用 flex 属性定位左下角 -->
|
|
198
|
+
<JsvScreenFlex
|
|
199
|
+
:onSized="_onScreenSized"
|
|
200
|
+
:style="{
|
|
201
|
+
flexDirection: 'column',
|
|
202
|
+
justifyContent: 'flex-end',
|
|
203
|
+
alignItems: 'flex-start',
|
|
204
|
+
}"
|
|
205
|
+
>
|
|
206
|
+
<div :style="cScreenSizeStyle">
|
|
207
|
+
{{ cScreenSizeText }}
|
|
208
|
+
</div>
|
|
209
|
+
</JsvScreenFlex>
|
|
137
210
|
</template>
|
|
138
211
|
|
|
139
212
|
<style scoped>
|
|
@@ -66,7 +66,12 @@ watch(
|
|
|
66
66
|
:padding="{ left: 10, top: 10, right: 10, bottom: 10 }"
|
|
67
67
|
:onEdge="props.onEdge"
|
|
68
68
|
:initFocusId="initFocusId"
|
|
69
|
+
:enableItemRenderBreak="true"
|
|
70
|
+
:placeHolderSetting="{
|
|
71
|
+
backgroundColor: 'rgba(0, 0, 0, 0)',
|
|
72
|
+
}"
|
|
69
73
|
:touchFlag="1"
|
|
74
|
+
:mouseFlag="1"
|
|
70
75
|
>
|
|
71
76
|
<template #renderItem="{ data, query, onEdge, onAction }">
|
|
72
77
|
<Item
|