@shijiu/jsview-vue-samples 2.2.426-test.0 → 2.3.151-test.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/BakeViewDemo/AnimatePic.vue +1 -1
- package/Basic/components/text/TextDirection.vue +7 -1
- package/BasicFocusControl/components/BaseBlock.vue +65 -18
- package/BreakRender/assets/imageList.json +235 -235
- package/ColorSpace/App.vue +2 -2
- package/CoupletsTest/App.vue +1 -1
- package/CoupletsTest/widget/Banger/Banger.vue +3 -3
- package/CoupletsTest/widget/Banger/MaroonLoader.vue +5 -5
- package/CoupletsTest/widget/Couplets/Couplets.vue +4 -4
- package/CoupletsTest/widget/Fireworks/Fireworks.vue +13 -13
- package/CustomShader/App.vue +4 -4
- package/CustomShader/gaussianBlur.glsl +1 -1
- package/DashPath/App.vue +80 -0
- package/DashPath/AppForOperator.vue +33 -0
- package/DemoForOperator/AnimPic/AnimPic.vue +69 -0
- package/DemoForOperator/AnimPic/App.vue +28 -0
- package/DemoForOperator/Banger/App.vue +26 -0
- package/DemoForOperator/Banger/Banger/Banger.vue +316 -0
- package/DemoForOperator/Banger/Banger/Maroon.vue +123 -0
- package/DemoForOperator/Banger/Banger/MaroonLoader.vue +78 -0
- package/DemoForOperator/Banger/Banger/SpriteDeal.js +30 -0
- package/DemoForOperator/Blur/Blur.vue +146 -0
- package/DemoForOperator/Blur/BlurInOut/BlurInOut.vue +158 -0
- package/DemoForOperator/Blur/BlurInOut/StaticBgSlide.vue +162 -0
- package/DemoForOperator/Blur/BlurPopup/BlurPopup.vue +113 -0
- package/DemoForOperator/BookFlip/App.vue +115 -0
- package/DemoForOperator/BookFlip/BookFlip/FlipPage.vue +179 -0
- package/DemoForOperator/BookFlip/BookFlip/FlippingBook.vue +310 -0
- package/DemoForOperator/BookFlip/BookFlip/flip.glsl +135 -0
- package/DemoForOperator/BookFlip/BookPage.vue +82 -0
- package/DemoForOperator/Bounce/App.vue +43 -0
- package/DemoForOperator/Bounce/Bounce.vue +81 -0
- package/DemoForOperator/Bounce/FreeMoveBuilder.js +139 -0
- package/DemoForOperator/ChunLian/App.vue +47 -0
- package/DemoForOperator/ChunLian/Couplets.vue +291 -0
- package/DemoForOperator/ClickSpriteAnim/App.vue +130 -0
- package/DemoForOperator/ClickSpriteAnim/Item.vue +74 -0
- package/DemoForOperator/DominantColor/App.vue +187 -0
- package/DemoForOperator/EpisodeList/App.vue +80 -0
- package/DemoForOperator/EpisodeList/EpisodeList/Controller.vue +110 -0
- package/DemoForOperator/EpisodeList/EpisodeList/EpisodeList.vue +250 -0
- package/DemoForOperator/EpisodeList/GroupItem.vue +65 -0
- package/DemoForOperator/EpisodeList/ListItem.vue +48 -0
- package/DemoForOperator/Firework1/App.vue +25 -0
- package/DemoForOperator/Firework1/Fireworks.vue +397 -0
- package/DemoForOperator/Firework1/SpriteDeal.js +30 -0
- package/DemoForOperator/FlipPage/App.vue +75 -0
- package/DemoForOperator/FlipPage/FlipPage/FlipPage.vue +178 -0
- package/DemoForOperator/FlipPage/FlipPage/flipIn.glsl +41 -0
- package/DemoForOperator/FlipPage/FlipPage/flipOut.glsl +41 -0
- package/DemoForOperator/Focus/Alpha/AlphaFocusBox.vue +95 -0
- package/DemoForOperator/Focus/Alpha/AlphaPage.vue +40 -0
- package/DemoForOperator/Focus/Alpha/Item.vue +64 -0
- package/DemoForOperator/Focus/App.vue +124 -0
- package/DemoForOperator/Focus/CommonPageSetting.js +30 -0
- package/DemoForOperator/Focus/Item.vue +46 -0
- package/DemoForOperator/Focus/Light/Item.vue +67 -0
- package/DemoForOperator/Focus/Light/LightFocusBox.vue +87 -0
- package/DemoForOperator/Focus/Light/LightPage.vue +43 -0
- package/DemoForOperator/Focus/Light/utils/FrameCanvasStore.ts +68 -0
- package/DemoForOperator/Focus/Light/utils/RotateFrame.vue +146 -0
- package/DemoForOperator/Focus/Light/utils/circleHaloMask.png +0 -0
- package/DemoForOperator/Focus/Normal/Item.vue +64 -0
- package/DemoForOperator/Focus/Normal/NormalFocusBox.vue +65 -0
- package/DemoForOperator/Focus/Normal/NormalPage.vue +41 -0
- package/DemoForOperator/Focus/SwipeLight/Item.vue +73 -0
- package/DemoForOperator/Focus/SwipeLight/SwipeLightBox.vue +62 -0
- package/DemoForOperator/Focus/SwipeLight/SwipeLightPage.vue +44 -0
- package/DemoForOperator/FrameShadow/App.vue +193 -0
- package/DemoForOperator/FrameShadow/FrameShadow.vue +61 -0
- package/DemoForOperator/FullscreenIn/App.vue +105 -0
- package/DemoForOperator/FullscreenIn/FullscreenPoster.vue +56 -0
- package/DemoForOperator/FullscreenIn/Item.vue +50 -0
- package/DemoForOperator/Genie/App.vue +78 -0
- package/DemoForOperator/Genie/geniePakcer/Genie.vue +741 -0
- package/DemoForOperator/Genie/geniePakcer/genieBottom.glsl +49 -0
- package/DemoForOperator/Genie/geniePakcer/genieLeft.glsl +50 -0
- package/DemoForOperator/Genie/geniePakcer/genieRight.glsl +57 -0
- package/DemoForOperator/Genie/geniePakcer/genieTop.glsl +50 -0
- package/DemoForOperator/GrayFilter/App.vue +51 -0
- package/DemoForOperator/GrayFilter/GrayFilter.vue +59 -0
- package/DemoForOperator/Jigsaw/App.vue +45 -0
- package/DemoForOperator/Jigsaw/JigsawFull.vue +142 -0
- package/DemoForOperator/Jigsaw/JigsawSingle.vue +118 -0
- package/DemoForOperator/LongChatBox/App.vue +36 -0
- package/DemoForOperator/LongChatBox/Bubble.vue +104 -0
- package/DemoForOperator/LongChatBox/LongChat.vue +173 -0
- package/DemoForOperator/LongChatBox/TextManager.ts +147 -0
- package/DemoForOperator/LongChatBox/VirtualList.vue +298 -0
- package/DemoForOperator/LongChatBox/testData.js +51 -0
- package/DemoForOperator/LongChatBox/utile.js +331 -0
- package/DemoForOperator/Particle/App.vue +69 -0
- package/DemoForOperator/Particle/Drop/DropParticle.vue +208 -0
- package/DemoForOperator/Particle/Explode/ExplodeParticle.vue +120 -0
- package/DemoForOperator/PosterAnim/App.vue +125 -0
- package/DemoForOperator/PosterAnim/Bounce/BouncePage.vue +54 -0
- package/DemoForOperator/PosterAnim/Bounce/Item.vue +85 -0
- package/DemoForOperator/PosterAnim/Breath/BreathPage.vue +47 -0
- package/DemoForOperator/PosterAnim/Breath/Item.vue +58 -0
- package/DemoForOperator/PosterAnim/CommonPageSetting.js +30 -0
- package/DemoForOperator/PosterAnim/Item.vue +46 -0
- package/DemoForOperator/PosterAnim/PosterAnim.js +79 -0
- package/DemoForOperator/PosterAnim/Scale/Item.vue +72 -0
- package/DemoForOperator/PosterAnim/Scale/ScalePage.vue +48 -0
- package/DemoForOperator/PosterAnim/Shake/Item.vue +85 -0
- package/DemoForOperator/PosterAnim/Shake/ShakePage.vue +53 -0
- package/DemoForOperator/PosterOverflow/App.vue +116 -0
- package/DemoForOperator/PosterOverflow/Item.vue +67 -0
- package/DemoForOperator/PosterOverflow/PosterOverflow.vue +39 -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/App.vue +54 -0
- package/DemoForOperator/Ripple/Ripple.vue +65 -0
- 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/App.vue +33 -0
- package/DemoForOperator/Sprite/Sprite.vue +147 -0
- package/DemoForOperator/Stretch/App.vue +103 -0
- package/DemoForOperator/Stretch/Stretch/Item.vue +192 -0
- package/DemoForOperator/Stretch/Stretch/Stretch.vue +218 -0
- package/DemoForOperator/Swiper/App.vue +101 -0
- package/DemoForOperator/Swiper/Item.vue +56 -0
- package/DemoForOperator/Swiper/ParallaxSlide.vue +164 -0
- package/DemoForOperator/TabContent/App.vue +89 -0
- package/DemoForOperator/TabContent/ContentPage.vue +66 -0
- package/DemoForOperator/TabContent/Item.vue +85 -0
- package/DemoForOperator/TabContent/PageItem.vue +40 -0
- package/DemoForOperator/TabContent/TabContent/CreepFocus.vue +160 -0
- package/DemoForOperator/TabContent/TabContent/Item.vue +63 -0
- package/DemoForOperator/TabContent/TabContent/TabContent.vue +184 -0
- package/DemoForOperator/TabContent/TabContent/TabItem.vue +368 -0
- package/DemoForOperator/TabContent/TabContent/TabWidget.vue +243 -0
- package/DemoForOperator/TabContent/TabContent/Util.js +3 -0
- package/DemoForOperator/TabContent/TabContent/ViewSwiper.vue +110 -0
- package/DemoForOperator/TabContent/testData.js +241 -0
- 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/App.vue +78 -0
- package/DemoForOperator/Vortex/Vortex/Vortex.vue +180 -0
- package/DemoForOperator/Vortex/Vortex/vortexIn.glsl +38 -0
- package/DemoForOperator/Vortex/Vortex/vortexOut.glsl +38 -0
- package/DemoForOperator/index.js +6 -0
- package/DemoForOperator/routeList.js +259 -0
- package/DemoHomepage/App.vue +50 -30
- package/DemoHomepage/components/Dialog.vue +1 -0
- package/DemoHomepage/components/Item.vue +11 -0
- package/DemoHomepage/components/TabFrame.vue +7 -0
- package/DemoHomepage/router.js +178 -81
- package/DemoHomepage/views/Homepage.vue +7 -2
- package/DivMetroPerformance/data.js +3 -3
- package/DriftScopeTest/App.vue +1 -1
- package/FilterDemo/AnimatePic.vue +1 -1
- package/FilterDemo/VideoLayer.vue +2 -2
- package/FullScreenFlex/TestFrame2.vue +1 -1
- package/GiftRain/App.vue +12 -12
- package/GiftRain/components/SpriteTranslate.vue +68 -48
- package/HashHistory/App.vue +2 -2
- package/HashHistory/router.js +1 -1
- package/JsvPreDownloader/App.vue +4 -4
- package/MediaDemo/components/frames/AudioFrame.vue +1 -1
- package/MediaDemo/components/frames/VideoFrame.vue +1 -1
- package/MetroWidgetDemos/MassiveItems/ContentItem.vue +1 -1
- package/MetroWidgetDemos/MassiveItems/data.js +1 -1
- package/MetroWidgetDemos/PerformanceTest/data.js +3 -3
- package/MetroWidgetDemos/RefreshDemo/assets/imageList.json +235 -235
- package/MetroWidgetDemos/SkeletonDiagram/assets/imageList.json +235 -235
- package/MetroWidgetDemos/TripleWidget/App.vue +7 -1
- package/MetroWidgetDemos/TripleWidget/Item.vue +16 -2
- package/MetroWidgetDemos/TripleWidget/SWidgetItem.vue +7 -1
- package/MetroWidgetDemos/TripleWidget/WidgetItem.vue +8 -2
- package/MetroWidgetDemos/focusableItemMetroWidget/WidgetItem.vue +3 -1
- package/MetroWidgetDemos/routeList.js +34 -17
- package/Poster3d/App.vue +69 -0
- package/Poster3d/Poster3d.vue +92 -0
- package/PosterPacker/App.vue +5 -5
- package/PosterPacker/tools/vortexPacker/Vortex.vue +1 -1
- package/QrcodeDemo/App.vue +1 -1
- package/Ripple/App.vue +1 -1
- package/ScaleDownNeon/App.vue +4 -4
- package/SceneTransition/App.vue +2 -2
- package/SceneTransition/maskConfig/config2.js +12 -12
- package/SceneTransition/maskConfig/config3.js +14 -14
- package/SprayView/App.vue +96 -51
- package/SpringFestival/App.vue +73 -0
- package/SpringFestival/SpringFestivalScene/ChunLian.vue +211 -0
- package/SpringFestival/SpringFestivalScene/FreeMoveBuilder.js +139 -0
- package/SpringFestival/SpringFestivalScene/LanternAnim.js +60 -0
- package/SpringFestival/SpringFestivalScene/Rain.vue +137 -0
- package/SpringFestival/SpringFestivalScene/Scene.vue +218 -0
- package/SpringFestival/SpringFestivalScene/imageConfig.js +87 -0
- package/SpringFestival/SpringFestivalScene/index.js +1 -0
- package/Swiper/App.vue +28 -29
- package/Swiper/Item.vue +19 -0
- package/SwiperTest/App.vue +9 -9
- package/TestNativeSharedView/AckEventDefine.ts +82 -0
- package/TestNativeSharedView/App.vue +4 -6
- package/TestNativeSharedView/JsvDemoTester.js +131 -0
- package/TextureAnimation/App.vue +16 -6
- package/TextureAnimation/App3.vue +100 -0
- package/TextureAnimation/utils/FrameCanvasStore.ts +68 -0
- package/TextureAnimation/utils/RotateFrame.vue +146 -0
- package/TextureAnimation/utils/circleHaloMask.png +0 -0
- package/TombSweepingDayTest/Raining/RainScene.vue +4 -4
- package/ViewOpacity/App.vue +21 -2
- package/package.json +1 -1
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
:style="{
|
|
4
|
+
width: 1280,
|
|
5
|
+
height: 720,
|
|
6
|
+
backgroundColor: '#007788',
|
|
7
|
+
}"
|
|
8
|
+
></div>
|
|
9
|
+
<div
|
|
10
|
+
:style="{
|
|
11
|
+
left: 300,
|
|
12
|
+
top: 100,
|
|
13
|
+
}"
|
|
14
|
+
>
|
|
15
|
+
<Stretch
|
|
16
|
+
name="stretch"
|
|
17
|
+
:itemSizeInfo="itemSizeInfo"
|
|
18
|
+
:datas="datas"
|
|
19
|
+
:layout="layout"
|
|
20
|
+
:onItemClick="onItemClick"
|
|
21
|
+
:onEdge="onEdge"
|
|
22
|
+
:duration="0.3"
|
|
23
|
+
:initLargeIndex="0"
|
|
24
|
+
>
|
|
25
|
+
<template #itemLarge>
|
|
26
|
+
<div
|
|
27
|
+
:style="{
|
|
28
|
+
width: 320,
|
|
29
|
+
height: 180,
|
|
30
|
+
backgroundColor: '#0F0',
|
|
31
|
+
fontSize: 30,
|
|
32
|
+
lineHeight: 180,
|
|
33
|
+
}"
|
|
34
|
+
>
|
|
35
|
+
测试文字测试文字测试文字
|
|
36
|
+
</div></template
|
|
37
|
+
>
|
|
38
|
+
<template #itemSmall>
|
|
39
|
+
<div
|
|
40
|
+
:style="{
|
|
41
|
+
width: 100,
|
|
42
|
+
height: 180,
|
|
43
|
+
backgroundColor: '#F00',
|
|
44
|
+
fontSize: 30,
|
|
45
|
+
lineHeight: 180,
|
|
46
|
+
}"
|
|
47
|
+
>
|
|
48
|
+
测试文字
|
|
49
|
+
</div>
|
|
50
|
+
</template>
|
|
51
|
+
<template #itemLeftEdge>
|
|
52
|
+
<div
|
|
53
|
+
:style="{
|
|
54
|
+
width: 10,
|
|
55
|
+
height: 10,
|
|
56
|
+
backgroundColor: '#00F',
|
|
57
|
+
}"
|
|
58
|
+
></div>
|
|
59
|
+
</template>
|
|
60
|
+
<template #itemRightEdge>
|
|
61
|
+
<div
|
|
62
|
+
:style="{
|
|
63
|
+
left: 90,
|
|
64
|
+
width: 10,
|
|
65
|
+
height: 10,
|
|
66
|
+
backgroundColor: '#00F',
|
|
67
|
+
}"
|
|
68
|
+
></div>
|
|
69
|
+
</template>
|
|
70
|
+
</Stretch>
|
|
71
|
+
</div>
|
|
72
|
+
</template>
|
|
73
|
+
|
|
74
|
+
<script setup>
|
|
75
|
+
import Stretch from "./Stretch/Stretch.vue";
|
|
76
|
+
import { useFocusHub } from "jsview";
|
|
77
|
+
import { onMounted } from "vue";
|
|
78
|
+
|
|
79
|
+
const focusHub = useFocusHub();
|
|
80
|
+
const itemSizeInfo = {
|
|
81
|
+
smallWidth: 100,
|
|
82
|
+
largeWidth: 320,
|
|
83
|
+
marginRight: 10,
|
|
84
|
+
height: 180,
|
|
85
|
+
};
|
|
86
|
+
const datas = [{}, {}, {}];
|
|
87
|
+
const layout = {
|
|
88
|
+
width: 540,
|
|
89
|
+
height: 180,
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
const onItemClick = (index) => {
|
|
93
|
+
console.log("onItemClick", index);
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
const onEdge = (edgeInfo) => {
|
|
97
|
+
console.log("onEdge");
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
onMounted(() => {
|
|
101
|
+
focusHub.setFocus("stretch");
|
|
102
|
+
});
|
|
103
|
+
</script>
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: ChenChanghua
|
|
3
|
+
* @Date: 2023-03-08 14:52:17
|
|
4
|
+
* @Description: file content
|
|
5
|
+
-->
|
|
6
|
+
<script>
|
|
7
|
+
let animToken = 0;
|
|
8
|
+
</script>
|
|
9
|
+
<script setup>
|
|
10
|
+
import { ref, watch, inject, computed, onBeforeUnmount } from "vue";
|
|
11
|
+
import { getKeyFramesGroup } from "jsview";
|
|
12
|
+
|
|
13
|
+
const props = defineProps({
|
|
14
|
+
data: Object,
|
|
15
|
+
onAction: Object,
|
|
16
|
+
query: Object,
|
|
17
|
+
size: {
|
|
18
|
+
type: Object,
|
|
19
|
+
},
|
|
20
|
+
largeSize: {
|
|
21
|
+
type: Object,
|
|
22
|
+
},
|
|
23
|
+
duration: {
|
|
24
|
+
type: Number,
|
|
25
|
+
default: 200,
|
|
26
|
+
},
|
|
27
|
+
resizeDelay: {
|
|
28
|
+
type: Number,
|
|
29
|
+
default: 0,
|
|
30
|
+
},
|
|
31
|
+
onItemClick: {
|
|
32
|
+
type: Function,
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
const focused = ref(false);
|
|
37
|
+
const largeItemIndex = inject("largeItemIndex");
|
|
38
|
+
|
|
39
|
+
const isLarge = ref(props.query.index == largeItemIndex.value);
|
|
40
|
+
const showLarge = ref(isLarge.value);
|
|
41
|
+
const width = ref(isLarge.value ? props.largeSize.width : props.size.width);
|
|
42
|
+
const height = ref(isLarge.value ? props.largeSize.height : props.size.height);
|
|
43
|
+
const duration = props.duration;
|
|
44
|
+
const transitionStr = `left ${duration / 1000}s, width ${duration / 1000}s`;
|
|
45
|
+
const animInfo = {
|
|
46
|
+
anchor: 0.5,
|
|
47
|
+
duration: duration,
|
|
48
|
+
onEnd: () => {
|
|
49
|
+
console.log("resize end", props.query.index);
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
const animation = ref(null);
|
|
54
|
+
const scaleupAnim = `stretch_item_scale_up_keep_center_${animToken++}`;
|
|
55
|
+
const scaledownAnim = `stretch_item_scale_down_keep_center_${animToken++}`;
|
|
56
|
+
|
|
57
|
+
const xOffset = (props.size.width - props.largeSize.width) / 2;
|
|
58
|
+
const yOffset = (props.size.height - props.largeSize.height) / 2;
|
|
59
|
+
const scaleupBody = `@keyframes ${scaleupAnim} { from {transform: translate3d(${xOffset}, ${yOffset}, 0);} to {transform: translate3d(0, 0, 0);} }`;
|
|
60
|
+
const scaledownBody = `@keyframes ${scaledownAnim} { from {transform: translate3d(0, 0, 0);} to {transform: translate3d(${xOffset}, ${yOffset}, 0);}}`;
|
|
61
|
+
|
|
62
|
+
const styleSheets = getKeyFramesGroup();
|
|
63
|
+
styleSheets.insertRule(scaleupBody);
|
|
64
|
+
styleSheets.insertRule(scaledownBody);
|
|
65
|
+
function onAnimEnd() {
|
|
66
|
+
animation.value = null;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
const rightEdgeTransition = `left ${duration / 1000}s linear`;
|
|
70
|
+
const rightSlotPosition = computed(() => {
|
|
71
|
+
return {
|
|
72
|
+
top: 0,
|
|
73
|
+
left: isLarge.value ? props.largeSize.width - props.size.width : 0,
|
|
74
|
+
};
|
|
75
|
+
});
|
|
76
|
+
watch(
|
|
77
|
+
() => largeItemIndex.value,
|
|
78
|
+
(newV) => {
|
|
79
|
+
if (newV == props.query.index) {
|
|
80
|
+
if (!isLarge.value) {
|
|
81
|
+
isLarge.value = true;
|
|
82
|
+
showLarge.value = true;
|
|
83
|
+
animation.value = `${scaleupAnim} ${duration / 1000}s linear`;
|
|
84
|
+
|
|
85
|
+
width.value = props.largeSize.width;
|
|
86
|
+
height.value = props.largeSize.height;
|
|
87
|
+
|
|
88
|
+
props.query.updateItemSize(
|
|
89
|
+
props.query.index,
|
|
90
|
+
{
|
|
91
|
+
width: width.value,
|
|
92
|
+
height: height.value,
|
|
93
|
+
},
|
|
94
|
+
animInfo
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
} else {
|
|
98
|
+
if (isLarge.value) {
|
|
99
|
+
isLarge.value = false;
|
|
100
|
+
width.value = props.size.width;
|
|
101
|
+
height.value = props.size.height;
|
|
102
|
+
animation.value = `${scaledownAnim} ${duration / 1000}s linear`;
|
|
103
|
+
|
|
104
|
+
props.query.updateItemSize(
|
|
105
|
+
props.query.index,
|
|
106
|
+
{
|
|
107
|
+
width: width.value,
|
|
108
|
+
height: height.value,
|
|
109
|
+
},
|
|
110
|
+
animInfo
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
);
|
|
116
|
+
|
|
117
|
+
function onTransitionDone() {
|
|
118
|
+
if (!isLarge.value) {
|
|
119
|
+
showLarge.value = false;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
let timeoutHandler = -1;
|
|
124
|
+
const onFocus = () => {
|
|
125
|
+
focused.value = true;
|
|
126
|
+
timeoutHandler = setTimeout(() => {
|
|
127
|
+
largeItemIndex.value = props.query.index;
|
|
128
|
+
}, props.resizeDelay);
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
const onBlur = () => {
|
|
132
|
+
focused.value = false;
|
|
133
|
+
clearTimeout(timeoutHandler);
|
|
134
|
+
timeoutHandler = -1;
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
const onClick = () => {
|
|
138
|
+
props.onItemClick(props.query.index);
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
props.onAction.register("onFocus", onFocus);
|
|
142
|
+
props.onAction.register("onBlur", onBlur);
|
|
143
|
+
props.onAction.register("onClick", onClick);
|
|
144
|
+
|
|
145
|
+
onBeforeUnmount(() => {
|
|
146
|
+
styleSheets.removeRule(scaleupAnim);
|
|
147
|
+
styleSheets.removeRule(scaledownAnim);
|
|
148
|
+
});
|
|
149
|
+
</script>
|
|
150
|
+
|
|
151
|
+
<template>
|
|
152
|
+
<div
|
|
153
|
+
:style="{
|
|
154
|
+
width: width,
|
|
155
|
+
height: height,
|
|
156
|
+
transition: transitionStr,
|
|
157
|
+
overflow: 'hidden',
|
|
158
|
+
}"
|
|
159
|
+
@transitionend="onTransitionDone"
|
|
160
|
+
>
|
|
161
|
+
<div
|
|
162
|
+
:style="{
|
|
163
|
+
width: width,
|
|
164
|
+
height: height,
|
|
165
|
+
animation: animation,
|
|
166
|
+
}"
|
|
167
|
+
@animationend="onAnimEnd"
|
|
168
|
+
>
|
|
169
|
+
<div v-if="showLarge">
|
|
170
|
+
<slot name="large"></slot>
|
|
171
|
+
</div>
|
|
172
|
+
<div v-else>
|
|
173
|
+
<slot name="small"></slot>
|
|
174
|
+
</div>
|
|
175
|
+
</div>
|
|
176
|
+
</div>
|
|
177
|
+
<div :style="{ width: size.width, hieght: size.height }">
|
|
178
|
+
<slot name="left"></slot>
|
|
179
|
+
</div>
|
|
180
|
+
|
|
181
|
+
<div
|
|
182
|
+
:style="{
|
|
183
|
+
left: rightSlotPosition.left,
|
|
184
|
+
top: rightSlotPosition.top,
|
|
185
|
+
width: size.width,
|
|
186
|
+
hieght: size.height,
|
|
187
|
+
transition: rightEdgeTransition,
|
|
188
|
+
}"
|
|
189
|
+
>
|
|
190
|
+
<slot name="right"></slot>
|
|
191
|
+
</div>
|
|
192
|
+
</template>
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: ChenChanghua
|
|
3
|
+
* @Date: 2023-03-08 14:52:08
|
|
4
|
+
* @Description: file content
|
|
5
|
+
-->
|
|
6
|
+
<script setup>
|
|
7
|
+
import {
|
|
8
|
+
ListWidget,
|
|
9
|
+
HORIZONTAL,
|
|
10
|
+
useFocusHub,
|
|
11
|
+
FixPositionSlide,
|
|
12
|
+
EdgeDirection,
|
|
13
|
+
} from "jsview";
|
|
14
|
+
import Item from "./Item.vue";
|
|
15
|
+
import { ref, provide, onMounted } from "vue";
|
|
16
|
+
|
|
17
|
+
const props = defineProps({
|
|
18
|
+
/**
|
|
19
|
+
* 组件名称标识
|
|
20
|
+
* @type {string}
|
|
21
|
+
*/
|
|
22
|
+
name: {
|
|
23
|
+
type: String,
|
|
24
|
+
required: true,
|
|
25
|
+
},
|
|
26
|
+
/**
|
|
27
|
+
* 元素尺寸配置对象
|
|
28
|
+
* @type {Object}
|
|
29
|
+
* @property {number} smallWidth - 小元素宽度
|
|
30
|
+
* @property {number} largeWidth - 大元素宽度
|
|
31
|
+
* @property {number} height - 元素高度
|
|
32
|
+
* @property {number} [marginRight=10] - 元素右侧间距
|
|
33
|
+
*/
|
|
34
|
+
itemSizeInfo: {
|
|
35
|
+
type: Object,
|
|
36
|
+
required: true,
|
|
37
|
+
},
|
|
38
|
+
/**
|
|
39
|
+
* 数据源数组
|
|
40
|
+
* @type {Array<Object>}
|
|
41
|
+
*/
|
|
42
|
+
datas: {
|
|
43
|
+
type: Array,
|
|
44
|
+
required: true,
|
|
45
|
+
},
|
|
46
|
+
/**
|
|
47
|
+
* 布局配置对象
|
|
48
|
+
* @type {Object}
|
|
49
|
+
* @property {number} width - 容器宽度
|
|
50
|
+
* @property {number} height - 容器高度
|
|
51
|
+
* @property {number} left - 左侧位置
|
|
52
|
+
* @property {number} top - 顶部位置
|
|
53
|
+
*/
|
|
54
|
+
layout: {
|
|
55
|
+
type: Object,
|
|
56
|
+
required: true,
|
|
57
|
+
},
|
|
58
|
+
/**
|
|
59
|
+
* 初始大元素索引
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @default 0
|
|
62
|
+
*/
|
|
63
|
+
initLargeIndex: {
|
|
64
|
+
type: Number,
|
|
65
|
+
default: 0,
|
|
66
|
+
},
|
|
67
|
+
/**
|
|
68
|
+
* 获取焦点时的回调函数
|
|
69
|
+
* @type {Function}
|
|
70
|
+
*/
|
|
71
|
+
onFocus: {
|
|
72
|
+
type: Function,
|
|
73
|
+
},
|
|
74
|
+
/**
|
|
75
|
+
* 失去焦点时的回调函数
|
|
76
|
+
* @type {Function}
|
|
77
|
+
*/
|
|
78
|
+
onBlur: {
|
|
79
|
+
type: Function,
|
|
80
|
+
},
|
|
81
|
+
/**
|
|
82
|
+
* 到达边缘时的回调函数
|
|
83
|
+
* @type {Function}
|
|
84
|
+
* @param {Object} edgeInfo - 边缘信息对象
|
|
85
|
+
*/
|
|
86
|
+
onEdge: {
|
|
87
|
+
type: Function,
|
|
88
|
+
},
|
|
89
|
+
/**
|
|
90
|
+
* 元素点击事件回调
|
|
91
|
+
* @type {Function}
|
|
92
|
+
* @param {Object} itemData - 被点击元素的数据
|
|
93
|
+
*/
|
|
94
|
+
onItemClick: {
|
|
95
|
+
type: Function,
|
|
96
|
+
},
|
|
97
|
+
/**
|
|
98
|
+
* 动画持续时间(单位:秒)
|
|
99
|
+
* @type {number}
|
|
100
|
+
* @default 0.2
|
|
101
|
+
*/
|
|
102
|
+
duration: {
|
|
103
|
+
type: Number,
|
|
104
|
+
default: 0.2,
|
|
105
|
+
},
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
//一大多小
|
|
109
|
+
const itemMargin = props.itemSizeInfo.marginRight ?? 10;
|
|
110
|
+
const itemWidthSum =
|
|
111
|
+
props.itemSizeInfo.largeWidth +
|
|
112
|
+
props.itemSizeInfo.smallWidth * (props.datas.length - 1) +
|
|
113
|
+
(props.datas.length - 1) * itemMargin;
|
|
114
|
+
if (props.layout.width < itemWidthSum) {
|
|
115
|
+
console.error(
|
|
116
|
+
"Stretch: sum of item size must be smaller than component layout width."
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
if (props.layout.height < props.itemSizeInfo.height) {
|
|
120
|
+
console.error(
|
|
121
|
+
"Stretch: item height must be smaller than component layout height."
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
const padding = {
|
|
125
|
+
left: (props.layout.width - itemWidthSum) / 2,
|
|
126
|
+
right: (props.layout.width - itemWidthSum) / 2,
|
|
127
|
+
top: (props.layout.height - props.itemSizeInfo.height) / 2,
|
|
128
|
+
bottom: (props.layout.height - props.itemSizeInfo.height) / 2,
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
const fixPositionSlide = new FixPositionSlide();
|
|
132
|
+
const largeItemIndex = ref(props.initLargeIndex);
|
|
133
|
+
provide("largeItemIndex", largeItemIndex);
|
|
134
|
+
const provideData = () => {
|
|
135
|
+
const data = [];
|
|
136
|
+
for (let i = 0; i < props.datas.length; ++i) {
|
|
137
|
+
data.push({
|
|
138
|
+
width:
|
|
139
|
+
i == props.initLargeIndex
|
|
140
|
+
? props.itemSizeInfo.largeWidth
|
|
141
|
+
: props.itemSizeInfo.smallWidth,
|
|
142
|
+
height: props.itemSizeInfo.height,
|
|
143
|
+
marginRight: props.itemSizeInfo.marginRight,
|
|
144
|
+
data: props.datas[i],
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
return data;
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
const measures = (data) => {
|
|
151
|
+
return {
|
|
152
|
+
width: data.width,
|
|
153
|
+
height: data.height,
|
|
154
|
+
marginRight: data.marginRight,
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
const _onEdge = (edgeInfo) => {
|
|
159
|
+
props.onEdge?.(edgeInfo);
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
onMounted(() => {});
|
|
163
|
+
</script>
|
|
164
|
+
|
|
165
|
+
<template>
|
|
166
|
+
<div>
|
|
167
|
+
<list-widget
|
|
168
|
+
:name="name"
|
|
169
|
+
:left="layout.left"
|
|
170
|
+
:top="layout.top"
|
|
171
|
+
:width="layout.width"
|
|
172
|
+
:height="layout.height"
|
|
173
|
+
:provideData="provideData"
|
|
174
|
+
:direction="HORIZONTAL"
|
|
175
|
+
:initFocusId="props.initLargeIndex"
|
|
176
|
+
:slideSetting="fixPositionSlide"
|
|
177
|
+
:measures="measures"
|
|
178
|
+
:padding="padding"
|
|
179
|
+
:onEdge="_onEdge"
|
|
180
|
+
:disableClip="true"
|
|
181
|
+
>
|
|
182
|
+
<template #renderItem="{ data, onAction, query }">
|
|
183
|
+
<item
|
|
184
|
+
:data="data"
|
|
185
|
+
:onAction="onAction"
|
|
186
|
+
:query="query"
|
|
187
|
+
:size="{
|
|
188
|
+
width: itemSizeInfo.smallWidth,
|
|
189
|
+
height: itemSizeInfo.height,
|
|
190
|
+
}"
|
|
191
|
+
:largeSize="{
|
|
192
|
+
width: itemSizeInfo.largeWidth,
|
|
193
|
+
height: itemSizeInfo.height,
|
|
194
|
+
}"
|
|
195
|
+
:duration="duration * 1000"
|
|
196
|
+
:onItemClick="onItemClick"
|
|
197
|
+
>
|
|
198
|
+
<template #small>
|
|
199
|
+
<slot name="itemSmall" :data="data.data"></slot>
|
|
200
|
+
</template>
|
|
201
|
+
<template #large>
|
|
202
|
+
<slot name="itemLarge" :data="data.data"></slot>
|
|
203
|
+
</template>
|
|
204
|
+
<template #right="{ width }">
|
|
205
|
+
<slot
|
|
206
|
+
name="itemRightEdge"
|
|
207
|
+
:itemSmallWidth="width"
|
|
208
|
+
:data="data.data"
|
|
209
|
+
></slot>
|
|
210
|
+
</template>
|
|
211
|
+
<template #left>
|
|
212
|
+
<slot name="itemLeftEdge" :data="data.data"></slot>
|
|
213
|
+
</template>
|
|
214
|
+
</item>
|
|
215
|
+
</template>
|
|
216
|
+
</list-widget>
|
|
217
|
+
</div>
|
|
218
|
+
</template>
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: ChenChanghua
|
|
3
|
+
* @Date: 2023-02-10 14:45:39
|
|
4
|
+
* @Description: file content
|
|
5
|
+
-->
|
|
6
|
+
|
|
7
|
+
<script setup>
|
|
8
|
+
import { JsvSwiper2, useFocusHub, EdgeDirection } from "jsview";
|
|
9
|
+
import { onMounted, ref } from "vue";
|
|
10
|
+
import Item from "./Item.vue";
|
|
11
|
+
|
|
12
|
+
const focusHub = useFocusHub();
|
|
13
|
+
const imgSrcList = [
|
|
14
|
+
"https://cdn.release.qcast.cn/JsViewFrameworkTester/JsViewVueSampleResources/Swiper/App/element_228543_img_20230610184253.png",
|
|
15
|
+
"https://cdn.release.qcast.cn/JsViewFrameworkTester/JsViewVueSampleResources/Swiper/App/element_228544_img_20230610184145.png",
|
|
16
|
+
"https://cdn.release.qcast.cn/JsViewFrameworkTester/JsViewVueSampleResources/Swiper/App/element_228545_img_20230610184110.png",
|
|
17
|
+
"https://cdn.release.qcast.cn/JsViewFrameworkTester/JsViewVueSampleResources/Swiper/App/element_228542_img_20230610184253.png",
|
|
18
|
+
];
|
|
19
|
+
let itemSize = {
|
|
20
|
+
width: 400,
|
|
21
|
+
height: 600,
|
|
22
|
+
};
|
|
23
|
+
let data = [];
|
|
24
|
+
for (let i = 0; i < 10; i++) {
|
|
25
|
+
data.push({
|
|
26
|
+
width: itemSize.width,
|
|
27
|
+
height: itemSize.height,
|
|
28
|
+
index: i,
|
|
29
|
+
src: imgSrcList[i % imgSrcList.length],
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const currentIndex = ref(0);
|
|
34
|
+
const swiper1 = {
|
|
35
|
+
onChange: (currentId) => {
|
|
36
|
+
currentIndex.value = currentId;
|
|
37
|
+
console.log("swiper1: onChange", currentId);
|
|
38
|
+
},
|
|
39
|
+
onClick: (currentId) => {
|
|
40
|
+
console.log("swiper1: onClick", currentId);
|
|
41
|
+
},
|
|
42
|
+
onEdge: (info) => {},
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
onMounted(() => {
|
|
46
|
+
focusHub.setFocus("mySwiper1");
|
|
47
|
+
});
|
|
48
|
+
const duration = 600;
|
|
49
|
+
</script>
|
|
50
|
+
|
|
51
|
+
<template>
|
|
52
|
+
<div
|
|
53
|
+
:style="{ width: 1280, height: 720, backgroundColor: '#000000cc' }"
|
|
54
|
+
></div>
|
|
55
|
+
<div
|
|
56
|
+
:style="{
|
|
57
|
+
width: 1280,
|
|
58
|
+
height: 100,
|
|
59
|
+
fontSize: 30,
|
|
60
|
+
textAlign: 'center',
|
|
61
|
+
lineHeight: 100,
|
|
62
|
+
color: '#ffffff',
|
|
63
|
+
}"
|
|
64
|
+
>
|
|
65
|
+
左右键切换轮播图显示海报
|
|
66
|
+
</div>
|
|
67
|
+
<div :style="{ left: (1280 - 700) / 2, top: 100 }">
|
|
68
|
+
<jsv-swiper2
|
|
69
|
+
name="mySwiper1"
|
|
70
|
+
ref="mySwiper1"
|
|
71
|
+
:totalFrame="data.length"
|
|
72
|
+
:layoutInfo="{
|
|
73
|
+
width: 700,
|
|
74
|
+
height: 600,
|
|
75
|
+
}"
|
|
76
|
+
:itemSize="itemSize"
|
|
77
|
+
:animation="{
|
|
78
|
+
duration: duration,
|
|
79
|
+
easing: 'jsv-ease(0.4, 0.8, 1.2)',
|
|
80
|
+
}"
|
|
81
|
+
:autoplayInterval="1000"
|
|
82
|
+
:onChange="swiper1.onChange"
|
|
83
|
+
:onClick="swiper1.onClick"
|
|
84
|
+
:onEdge="swiper1.onEdge"
|
|
85
|
+
:itemGap="10"
|
|
86
|
+
>
|
|
87
|
+
<template #itemView="{ dataIndex, focused, distanceToCenter }">
|
|
88
|
+
<item
|
|
89
|
+
:data="data[dataIndex]"
|
|
90
|
+
:index="dataIndex"
|
|
91
|
+
:currentIndex="currentIndex"
|
|
92
|
+
:focused="focused"
|
|
93
|
+
:borderRadius="40"
|
|
94
|
+
:collapseWidth="140"
|
|
95
|
+
:duration="duration"
|
|
96
|
+
:distanceToCenter="distanceToCenter"
|
|
97
|
+
/>
|
|
98
|
+
</template>
|
|
99
|
+
</jsv-swiper2>
|
|
100
|
+
</div>
|
|
101
|
+
</template>
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
:style="{
|
|
4
|
+
width: data.width,
|
|
5
|
+
height: data.height,
|
|
6
|
+
backgroundColor: '#00ff00',
|
|
7
|
+
borderRadius: borderRadius,
|
|
8
|
+
}"
|
|
9
|
+
></div>
|
|
10
|
+
<ParallaxSlide
|
|
11
|
+
ref="pandaAnim"
|
|
12
|
+
:imgUrl="data.src"
|
|
13
|
+
:width="data.width"
|
|
14
|
+
:height="data.height"
|
|
15
|
+
:collapseWidth="collapseWidth"
|
|
16
|
+
:duration="duration"
|
|
17
|
+
:borderRadius="borderRadius"
|
|
18
|
+
:initPosition="initPosition"
|
|
19
|
+
easing="jsv-ease(0.4, 0.8, 1.2)"
|
|
20
|
+
></ParallaxSlide>
|
|
21
|
+
</template>
|
|
22
|
+
<script setup>
|
|
23
|
+
import ParallaxSlide from "./ParallaxSlide.vue";
|
|
24
|
+
import { shallowRef, watch } from "vue";
|
|
25
|
+
const props = defineProps({
|
|
26
|
+
data: Object,
|
|
27
|
+
focused: Boolean,
|
|
28
|
+
duration: Number,
|
|
29
|
+
borderRadius: Number,
|
|
30
|
+
collapseWidth: Number,
|
|
31
|
+
currentIndex: Number,
|
|
32
|
+
index: Number,
|
|
33
|
+
distanceToCenter: Number,
|
|
34
|
+
});
|
|
35
|
+
const initPosition =
|
|
36
|
+
props.distanceToCenter === 0
|
|
37
|
+
? "center"
|
|
38
|
+
: props.distanceToCenter > 0
|
|
39
|
+
? "right"
|
|
40
|
+
: "left";
|
|
41
|
+
|
|
42
|
+
const pandaAnim = shallowRef(null);
|
|
43
|
+
|
|
44
|
+
watch(
|
|
45
|
+
() => props.distanceToCenter,
|
|
46
|
+
(newVal) => {
|
|
47
|
+
if (newVal === 0) {
|
|
48
|
+
pandaAnim.value.slide("center");
|
|
49
|
+
} else if (newVal == 1) {
|
|
50
|
+
pandaAnim.value.slide("right");
|
|
51
|
+
} else if (newVal == -1) {
|
|
52
|
+
pandaAnim.value.slide("left");
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
</script>
|