@shijiu/jsview-vue-samples 2.2.373 → 2.3.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 -2
- package/BasicFocusControl/components/BaseBlock.vue +65 -18
- package/BreakRender/assets/imageList.json +235 -235
- package/ColorSpace/App.vue +4 -4
- 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/CssPreprocessor/Stylus/components/stylus-group1/StylusOperations.vue +0 -1
- package/CssPreprocessor/utils/ContentBlock.vue +3 -3
- package/CssPreprocessor/utils/{FontStyle.css → FontConfig.css} +3 -3
- package/CssPreprocessor/utils/TitleBar.vue +2 -2
- package/CustomShader/App.vue +6 -6
- package/CustomShader/gaussianBlur.glsl +1 -1
- package/DashPath/App.vue +79 -0
- package/DashPath/AppForOperator.vue +35 -0
- package/DashPath/DashPath.vue +118 -0
- package/DemoForOperator/AnimPic/AnimPic.vue +47 -0
- package/DemoForOperator/AnimPic/App.vue +28 -0
- package/DemoForOperator/Banger/App.vue +26 -0
- package/DemoForOperator/Banger/Banger/Banger.vue +252 -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/Bounce/App.vue +43 -0
- package/DemoForOperator/Bounce/Bounce.vue +49 -0
- package/DemoForOperator/Bounce/FreeMoveBuilder.js +139 -0
- package/DemoForOperator/ChunLian/App.vue +47 -0
- package/DemoForOperator/ChunLian/Couplets.vue +248 -0
- package/DemoForOperator/EpisodeList/App.vue +80 -0
- package/DemoForOperator/EpisodeList/EpisodeList/Controller.vue +113 -0
- package/DemoForOperator/EpisodeList/EpisodeList/EpisodeList.vue +176 -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 +358 -0
- package/DemoForOperator/Firework1/SpriteDeal.js +30 -0
- package/DemoForOperator/FlipPage/App.vue +75 -0
- package/DemoForOperator/FlipPage/FlipPage/FlipPage.vue +150 -0
- package/DemoForOperator/FlipPage/FlipPage/flipIn.glsl +41 -0
- package/DemoForOperator/FlipPage/FlipPage/flipOut.glsl +41 -0
- package/DemoForOperator/Focus/Alpha/AlphaFocusBox.vue +70 -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 +46 -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 +53 -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/FullscreenIn/App.vue +105 -0
- package/DemoForOperator/FullscreenIn/FullscreenPoster.vue +41 -0
- package/DemoForOperator/FullscreenIn/Item.vue +50 -0
- package/DemoForOperator/Genie/App.vue +78 -0
- package/DemoForOperator/Genie/geniePakcer/Genie.vue +699 -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 +38 -0
- package/DemoForOperator/Jigsaw/App.vue +45 -0
- package/DemoForOperator/Jigsaw/JigsawFull.vue +100 -0
- package/DemoForOperator/Jigsaw/JigsawSingle.vue +86 -0
- package/DemoForOperator/Particle/App.vue +69 -0
- package/DemoForOperator/Particle/Drop/DropParticle.vue +176 -0
- package/DemoForOperator/Particle/Explode/ExplodeParticle.vue +99 -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 +58 -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 +23 -0
- package/DemoForOperator/Ripple/App.vue +54 -0
- package/DemoForOperator/Ripple/Ripple.vue +50 -0
- package/DemoForOperator/ScalePoster/App.vue +4 -0
- package/DemoForOperator/ScalePoster/ScalePoster.vue +0 -0
- package/DemoForOperator/Sprite/App.vue +33 -0
- package/DemoForOperator/Sprite/Sprite.vue +90 -0
- package/DemoForOperator/Stretch/App.vue +103 -0
- package/DemoForOperator/Stretch/Stretch/Item.vue +192 -0
- package/DemoForOperator/Stretch/Stretch/Stretch.vue +168 -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 +146 -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/Vortex/App.vue +78 -0
- package/DemoForOperator/Vortex/Vortex/Vortex.vue +154 -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 +142 -0
- package/DemoHomepage/App.vue +50 -30
- package/DemoHomepage/components/Dialog.vue +1 -0
- package/DemoHomepage/components/TabFrame.vue +7 -0
- package/DemoHomepage/router.js +104 -81
- package/DemoHomepage/views/Homepage.vue +7 -6
- package/DivMetroPerformance/components/ContentItem.vue +0 -1
- 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/FlexCellDemo/TestFrame1.vue +0 -4
- package/FullScreenFlex/TestFrame2.vue +1 -1
- package/GiftRain/App.vue +12 -15
- package/HashParams/App.vue +0 -1
- package/JsvPreDownloader/App.vue +4 -6
- package/Marquee/App.vue +2 -2
- package/MediaDemo/components/frames/AudioFrame.vue +1 -1
- package/MediaDemo/components/frames/VideoFrame.vue +1 -1
- package/MetroWidgetDemos/MassiveItems/ContentItem.vue +1 -2
- package/MetroWidgetDemos/MassiveItems/data.js +1 -1
- package/MetroWidgetDemos/PerformanceTest/components/ContentItem.vue +0 -1
- package/MetroWidgetDemos/PerformanceTest/components/MyTab.vue +18 -17
- 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/focusableItemMetroWidget/WidgetItem.vue +3 -1
- package/MetroWidgetDemos/routeList.js +17 -17
- package/Poster3d/App.vue +69 -0
- package/Poster3d/Poster3d.vue +92 -0
- package/PosterPacker/App.vue +5 -5
- package/PosterPacker/tools/geniePakcer/Genie.vue +2 -2
- package/PosterPacker/tools/vortexPacker/Vortex.vue +15 -15
- package/QrcodeDemo/App.vue +1 -1
- package/Ripple/App.vue +1 -1
- package/ScaleDownNeon/App.vue +13 -10
- package/SceneTransition/App.vue +7 -6
- 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/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/TextureSize/App.vue +5 -6
- package/TombSweepingDayTest/Raining/RainScene.vue +4 -4
- package/ViewOpacity/App.vue +6 -7
- package/package.json +1 -1
package/DemoHomepage/router.js
CHANGED
|
@@ -1,408 +1,428 @@
|
|
|
1
1
|
import { createRouter } from 'vue-router';
|
|
2
2
|
import { jsvCreateHashHistory } from 'jsview';
|
|
3
3
|
import { metroWidgetRouteList } from "../MetroWidgetDemos"
|
|
4
|
+
import Homepage from './views/Homepage.vue' // 不使用动态import,加速显示
|
|
5
|
+
import { demoForOperatorRouteList } from '../DemoForOperator';
|
|
6
|
+
|
|
4
7
|
let routeList = [
|
|
5
8
|
// 功能实例
|
|
6
9
|
{
|
|
7
|
-
|
|
10
|
+
meta: { nameText: 'Home', },
|
|
8
11
|
path: '/',
|
|
9
|
-
component:
|
|
12
|
+
component: Homepage,
|
|
10
13
|
meta: {
|
|
11
14
|
keepAlive: true // 需要被缓存(测试Router keep alive机制)
|
|
12
15
|
}
|
|
13
16
|
},
|
|
14
17
|
{
|
|
15
|
-
|
|
18
|
+
meta: { nameText: '基础示例合集', },
|
|
16
19
|
path: '/feature/Basic',
|
|
17
20
|
component: () => import('@shijiu/jsview-vue-samples/Basic/App.vue'),
|
|
18
21
|
},
|
|
19
22
|
// {
|
|
20
|
-
//
|
|
23
|
+
// meta: { nameText: 'FreeMoveResize', },
|
|
21
24
|
// path: '/feature/FreeMoveResize',
|
|
22
25
|
// component: () => import('@shijiu/jsview-vue-samples/FreeMoveResize/App.vue'),
|
|
23
26
|
// },
|
|
24
27
|
{
|
|
25
|
-
|
|
28
|
+
meta: { nameText: '3d移动动画', },
|
|
29
|
+
path: '/Operations/3dMove',
|
|
30
|
+
component: () => import('jsview-vue-samples/Poster3d/App.vue'),
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
meta: { nameText: '烟花行进特效', },
|
|
26
34
|
path: '/Operations/SprayMove',
|
|
27
35
|
component: () => import('jsview-vue-samples/SprayMove/App.vue'),
|
|
28
36
|
},
|
|
29
37
|
{
|
|
30
|
-
|
|
38
|
+
meta: { nameText: '海报图收放组件', },
|
|
31
39
|
path: '/Operations/PosterPacker',
|
|
32
40
|
component: () => import('jsview-vue-samples/PosterPacker/App.vue'),
|
|
33
41
|
},
|
|
34
42
|
{
|
|
35
|
-
|
|
43
|
+
meta: { nameText: 'div快照功能', },
|
|
36
44
|
path: '/feature/BakeViewDemo',
|
|
37
45
|
component: () => import('@shijiu/jsview-vue-samples/BakeViewDemo/App.vue'),
|
|
38
46
|
},
|
|
39
47
|
{
|
|
40
|
-
|
|
48
|
+
meta: { nameText: 'FlexDemo', },
|
|
41
49
|
path: '/feature/FlexDemo',
|
|
42
50
|
component: () => import('@shijiu/jsview-vue-samples/FlexCellDemo/App.vue')
|
|
43
51
|
},
|
|
44
52
|
{
|
|
45
|
-
|
|
53
|
+
meta: { nameText: 'ScreenFlex', },
|
|
46
54
|
path: '/feature/ScreenFlex',
|
|
47
55
|
component: () => import('@shijiu/jsview-vue-samples/FullScreenFlex/App.vue')
|
|
48
56
|
},
|
|
49
57
|
{
|
|
50
|
-
|
|
58
|
+
meta: { nameText: '连接线Demo', },
|
|
51
59
|
path: '/feature/ConnectLine',
|
|
52
60
|
component: () => import('@shijiu/jsview-vue-samples/ConnectLine/App.vue')
|
|
53
61
|
},
|
|
54
62
|
{
|
|
55
|
-
|
|
63
|
+
meta: { nameText: '离散焦点自动处理', },
|
|
56
64
|
path: '/feature/DispersedFocusControl',
|
|
57
65
|
component: () => import('@shijiu/jsview-vue-samples/DispersedFocusControl/App.vue'),
|
|
58
66
|
},
|
|
59
67
|
{
|
|
60
|
-
|
|
68
|
+
meta: { nameText: '离散焦点分布', },
|
|
61
69
|
path: '/feature/DispersedItemSample',
|
|
62
70
|
component: () => import('@shijiu/jsview-vue-samples/DispersedItemSample/DispersedItemSample.vue')
|
|
63
71
|
},
|
|
64
72
|
{
|
|
65
|
-
|
|
73
|
+
meta: { nameText: '饼图测试', },
|
|
66
74
|
path: '/feature/SecTorTest',
|
|
67
75
|
component: () => import('@shijiu/jsview-vue-samples/SecTorTest/App.vue'),
|
|
68
76
|
},
|
|
69
77
|
{
|
|
70
|
-
|
|
78
|
+
meta: { nameText: 'TextureStore测试', },
|
|
71
79
|
path: '/feature/TextureStoreTest',
|
|
72
80
|
component: () => import('@shijiu/jsview-vue-samples/TextureStoreTest/App.vue'),
|
|
73
81
|
},
|
|
74
82
|
{
|
|
75
|
-
|
|
83
|
+
meta: { nameText: 'NinePatch对齐测试', },
|
|
76
84
|
path: '/feature/NinePatchTester',
|
|
77
85
|
component: () => import('@shijiu/jsview-vue-samples/NinePatchTester/App.vue'),
|
|
78
86
|
},
|
|
79
87
|
{
|
|
80
|
-
|
|
88
|
+
meta: { nameText: 'NativeSharedView测试', },
|
|
81
89
|
path: '/feature/TestNativeSharedView',
|
|
82
90
|
component: () => import('@shijiu/jsview-vue-samples/TestNativeSharedView/App.vue'),
|
|
83
91
|
},
|
|
84
92
|
{
|
|
85
|
-
|
|
93
|
+
meta: { nameText: 'CSS预处理', },
|
|
86
94
|
path: '/feature/CssPreprocessor',
|
|
87
95
|
component: () => import('@shijiu/jsview-vue-samples/CssPreprocessor/App.vue'),
|
|
88
96
|
},
|
|
89
97
|
{
|
|
90
|
-
|
|
98
|
+
meta: { nameText: '可视化变化通知', },
|
|
91
99
|
path: '/feature/VisibleSensorDemo',
|
|
92
100
|
component: () => import('@shijiu/jsview-vue-samples/VisibleSensorDemo/App.vue'),
|
|
93
101
|
},
|
|
94
102
|
{
|
|
95
|
-
|
|
103
|
+
meta: { nameText: '快速刷新的表格布局组件', },
|
|
96
104
|
path: '/feature/GridDemo',
|
|
97
105
|
component: () => import('@shijiu/jsview-vue-samples/GridDemo/App.vue'),
|
|
98
106
|
},
|
|
99
107
|
{
|
|
100
|
-
|
|
108
|
+
meta: { nameText: '有命名空间的焦点切换', },
|
|
101
109
|
path: '/feature/BasicFocusControl',
|
|
102
110
|
component: () => import('@shijiu/jsview-vue-samples/BasicFocusControl/App.vue'),
|
|
103
111
|
},
|
|
104
112
|
{
|
|
105
|
-
|
|
113
|
+
meta: { nameText: 'Hash方式路由切换', },
|
|
106
114
|
path: '/feature/HashHistory',
|
|
107
115
|
props: { routePath: '/feature/HashHistory' },
|
|
108
116
|
component: () => import('@shijiu/jsview-vue-samples/HashHistory/App.vue'),
|
|
109
117
|
},
|
|
110
118
|
{
|
|
111
|
-
|
|
119
|
+
meta: { nameText: '翻牌游戏', },
|
|
112
120
|
path: '/Game/FlipCard',
|
|
113
121
|
component: () => import('@shijiu/jsview-vue-samples/FlipCard/App.vue'),
|
|
114
122
|
},
|
|
115
123
|
{
|
|
116
|
-
|
|
124
|
+
meta: { nameText: '设置颜色空间', },
|
|
117
125
|
path: '/feature/ColorSpace',
|
|
118
126
|
component: () => import('@shijiu/jsview-vue-samples/ColorSpace/App.vue'),
|
|
119
127
|
},
|
|
120
128
|
{
|
|
121
|
-
|
|
129
|
+
meta: { nameText: '制定Texture尺寸', },
|
|
122
130
|
path: '/feature/TextureSize',
|
|
123
131
|
component: () => import('@shijiu/jsview-vue-samples/TextureSize/App.vue'),
|
|
124
132
|
},
|
|
125
133
|
{
|
|
126
|
-
|
|
134
|
+
meta: { nameText: '长文字', },
|
|
127
135
|
path: '/feature/LongText',
|
|
128
136
|
component: () => import('@shijiu/jsview-vue-samples/LongText/App.vue'),
|
|
129
137
|
},
|
|
130
138
|
{
|
|
131
|
-
|
|
139
|
+
meta: { nameText: '长文字Latex', },
|
|
132
140
|
path: '/feature/LongTextLatex',
|
|
133
141
|
component: () => import('@shijiu/jsview-vue-samples/LongTextLatex/App.vue'),
|
|
134
142
|
},
|
|
135
143
|
{
|
|
136
|
-
|
|
144
|
+
meta: { nameText: '二维码', },
|
|
137
145
|
path: '/feature/QrcodeDemo',
|
|
138
146
|
component: () => import('@shijiu/jsview-vue-samples/QrcodeDemo/App.vue'),
|
|
139
147
|
},
|
|
140
148
|
{
|
|
141
|
-
|
|
149
|
+
meta: { nameText: '文字阴影', },
|
|
142
150
|
path: '/feature/TextShadowDemo',
|
|
143
151
|
component: () => import('@shijiu/jsview-vue-samples/TextShadowDemo/App.vue'),
|
|
144
152
|
},
|
|
145
153
|
{
|
|
146
|
-
|
|
154
|
+
meta: { nameText: '多行文字区域内对齐', },
|
|
147
155
|
path: '/feature/TextBox',
|
|
148
156
|
component: () => import('@shijiu/jsview-vue-samples/TextBox/App.vue'),
|
|
149
157
|
},
|
|
150
158
|
// TODO: 改为FreeMove后再激活
|
|
151
159
|
// {
|
|
152
|
-
//
|
|
160
|
+
// meta: { nameText: '抛物运动写法样例', },
|
|
153
161
|
// path: '/Game/ThrowMoveDemo',
|
|
154
162
|
// component: () => import('@shijiu/jsview-vue-samples/ThrowMoveDemo/App.vue'),
|
|
155
163
|
// },
|
|
156
164
|
{
|
|
157
|
-
|
|
165
|
+
meta: { nameText: '精灵图', },
|
|
158
166
|
path: '/Game/SpriteImage',
|
|
159
167
|
component: () => import('@shijiu/jsview-vue-samples/SpriteImage/App.vue'),
|
|
160
168
|
},
|
|
161
169
|
{
|
|
162
|
-
|
|
170
|
+
meta: { nameText: '文字滚动(标题跑马灯)', },
|
|
163
171
|
path: '/feature/Marquee',
|
|
164
172
|
component: () => import('@shijiu/jsview-vue-samples/Marquee/App.vue'),
|
|
165
173
|
},
|
|
166
174
|
{
|
|
167
|
-
|
|
175
|
+
meta: { nameText: '文字输入', },
|
|
168
176
|
path: '/feature/Input',
|
|
169
177
|
component: () => import('@shijiu/jsview-vue-samples/Input/App.vue'),
|
|
170
178
|
},
|
|
171
179
|
{
|
|
172
|
-
|
|
180
|
+
meta: { nameText: '情景主题效果:雨', },
|
|
173
181
|
path: '/Operations/TombSweepingDayTest',
|
|
174
182
|
component: () => import('@shijiu/jsview-vue-samples/TombSweepingDayTest/App.vue'),
|
|
175
183
|
},
|
|
176
184
|
{
|
|
177
|
-
|
|
185
|
+
meta: { nameText: '.9图焦点框漂移', },
|
|
178
186
|
path: '/Operations/NinePatchDemo',
|
|
179
187
|
component: () => import('@shijiu/jsview-vue-samples/NinePatchDemo/App.vue'),
|
|
180
188
|
},
|
|
181
189
|
{
|
|
182
|
-
|
|
190
|
+
meta: { nameText: '动图', },
|
|
183
191
|
path: '/Operations/AnimPicture',
|
|
184
192
|
component: () => import('@shijiu/jsview-vue-samples/AnimPicture/App.vue'),
|
|
185
193
|
},
|
|
186
194
|
{
|
|
187
|
-
|
|
195
|
+
meta: { nameText: '粒子效果', },
|
|
188
196
|
path: '/Operations/SprayView',
|
|
189
197
|
component: () => import('@shijiu/jsview-vue-samples/SprayView/App.vue'),
|
|
190
198
|
},
|
|
191
199
|
{
|
|
192
|
-
|
|
200
|
+
meta: { nameText: '长图片', },
|
|
193
201
|
path: '/Operations/LongImage',
|
|
194
202
|
component: () => import('@shijiu/jsview-vue-samples/LongImage/App.vue'),
|
|
195
203
|
},
|
|
196
204
|
{
|
|
197
|
-
|
|
205
|
+
meta: { nameText: '拼图demo', },
|
|
198
206
|
path: '/Operations/MaskClip',
|
|
199
207
|
component: () => import('@shijiu/jsview-vue-samples/MaskClip/App.vue'),
|
|
200
208
|
},
|
|
201
209
|
{
|
|
202
|
-
|
|
210
|
+
meta: { nameText: 'SoundPool', },
|
|
203
211
|
path: '/Game/SoundPool',
|
|
204
212
|
component: () => import('@shijiu/jsview-vue-samples/SoundPool/App.vue'),
|
|
205
213
|
},
|
|
206
214
|
{
|
|
207
|
-
|
|
215
|
+
meta: { nameText: 'TextureAnimation', },
|
|
208
216
|
path: '/Operations/TextureAnimation',
|
|
209
217
|
component: () => import('@shijiu/jsview-vue-samples/TextureAnimation/App.vue'),
|
|
210
218
|
},
|
|
211
219
|
{
|
|
212
|
-
|
|
220
|
+
meta: { nameText: '焦点框旋转光效果', },
|
|
213
221
|
path: '/Operations/TextureAnimation2',
|
|
214
|
-
component: () => import('@shijiu/jsview-vue-samples/TextureAnimation/
|
|
222
|
+
component: () => import('@shijiu/jsview-vue-samples/TextureAnimation/App3.vue'),
|
|
215
223
|
},
|
|
216
224
|
{
|
|
217
|
-
|
|
225
|
+
meta: { nameText: '公祭日黑白效果', },
|
|
218
226
|
path: '/Operations/GrayDown',
|
|
219
227
|
component: () => import('@shijiu/jsview-vue-samples/FilterDemo/App.vue'),
|
|
220
228
|
},
|
|
221
229
|
{
|
|
222
|
-
|
|
230
|
+
meta: { nameText: '水波特效', },
|
|
223
231
|
path: '/Operations/Ripple',
|
|
224
232
|
component: () => import('@shijiu/jsview-vue-samples/Ripple/App.vue'),
|
|
225
233
|
},
|
|
226
234
|
{
|
|
227
|
-
|
|
235
|
+
meta: { nameText: '预加载', },
|
|
228
236
|
path: '/feature/Preload',
|
|
229
237
|
component: () => import('@shijiu/jsview-vue-samples/Preload/App.vue'),
|
|
230
238
|
},
|
|
231
239
|
{
|
|
232
|
-
|
|
240
|
+
meta: { nameText: '单图片透明', },
|
|
233
241
|
path: '/feature/ViewOpacity',
|
|
234
242
|
component: () => import('@shijiu/jsview-vue-samples/ViewOpacity/App.vue'),
|
|
235
243
|
},
|
|
236
244
|
{
|
|
237
|
-
|
|
245
|
+
meta: { nameText: '图片缩小算法', },
|
|
238
246
|
path: '/feature/ScaleDownNeon',
|
|
239
247
|
component: () => import('@shijiu/jsview-vue-samples/ScaleDownNeon/App.vue'),
|
|
240
248
|
},
|
|
241
249
|
{
|
|
242
|
-
|
|
250
|
+
meta: { nameText: '渐变Texture', },
|
|
243
251
|
path: '/feature/GradientTexture',
|
|
244
252
|
component: () => import('@shijiu/jsview-vue-samples/GradientTexture/App.vue'),
|
|
245
253
|
},
|
|
246
254
|
{
|
|
247
|
-
|
|
255
|
+
meta: { nameText: '碰撞检测', },
|
|
248
256
|
path: '/Game/Collision',
|
|
249
257
|
component: () => import('@shijiu/jsview-vue-samples/Collision/App.vue'),
|
|
250
258
|
},
|
|
251
259
|
{
|
|
252
|
-
|
|
260
|
+
meta: { nameText: '碰撞即停', },
|
|
253
261
|
path: '/Game/ImpactStop',
|
|
254
262
|
component: () => import('@shijiu/jsview-vue-samples/ImpactStop/App.vue'),
|
|
255
263
|
},
|
|
256
264
|
{
|
|
257
|
-
|
|
265
|
+
meta: { nameText: '滚动图', },
|
|
258
266
|
path: '/Operations/Swiper',
|
|
259
267
|
component: () => import('@shijiu/jsview-vue-samples/Swiper/App.vue'),
|
|
260
268
|
},
|
|
261
269
|
{
|
|
262
|
-
|
|
270
|
+
meta: { nameText: '下载接口示例', },
|
|
263
271
|
path: '/feature/JsvPreDownloader',
|
|
264
272
|
component: () => import('@shijiu/jsview-vue-samples/JsvPreDownloader/App.vue'),
|
|
265
273
|
},
|
|
266
274
|
{
|
|
267
|
-
|
|
275
|
+
meta: { nameText: '焦点移动样式', },
|
|
268
276
|
path: '/Operations/FocusMoveStyle',
|
|
269
277
|
component: () => import('@shijiu/jsview-vue-samples/FocusMoveStyle/App.vue'),
|
|
270
278
|
},
|
|
271
279
|
{
|
|
272
|
-
|
|
280
|
+
meta: { nameText: 'Mockjs测试', },
|
|
273
281
|
path: '/feature/MockjsDemo',
|
|
274
282
|
component: () => import('@shijiu/jsview-vue-samples/MockjsDemo/App.vue'),
|
|
275
283
|
},
|
|
276
284
|
{
|
|
277
|
-
|
|
285
|
+
meta: { nameText: '红包雨', },
|
|
278
286
|
path: '/Game/GiftRain',
|
|
279
287
|
component: () => import('@shijiu/jsview-vue-samples/GiftRain/App.vue'),
|
|
280
288
|
},
|
|
281
289
|
{
|
|
282
|
-
|
|
290
|
+
meta: { nameText: '雷达图', },
|
|
283
291
|
path: '/Game/RadarChart',
|
|
284
292
|
component: () => import('@shijiu/jsview-vue-samples/JsvRadarChart/App.vue')
|
|
285
293
|
},
|
|
286
294
|
// TODO: 等改为对接FreeMoveActor后再恢复
|
|
287
295
|
// {
|
|
288
|
-
//
|
|
296
|
+
// meta: { nameText: '跑酷游戏', },
|
|
289
297
|
// path: '/Game/Parkour',
|
|
290
298
|
// component: () => import('@shijiu/jsview-vue-samples/Parkour/App.vue')
|
|
291
299
|
// },
|
|
292
300
|
{
|
|
293
|
-
|
|
301
|
+
meta: { nameText: 'Hash参数', },
|
|
294
302
|
path: '/feature/HashParams',
|
|
295
303
|
component: () => import('@shijiu/jsview-vue-samples/HashParams/App.vue'),
|
|
296
304
|
},
|
|
297
305
|
{
|
|
298
|
-
|
|
306
|
+
meta: { nameText: '按键打断描画', },
|
|
299
307
|
path: '/feature/BreakRender',
|
|
300
308
|
component: () => import('@shijiu/jsview-vue-samples/BreakRender/App.vue'),
|
|
301
309
|
},
|
|
302
310
|
{
|
|
303
|
-
|
|
311
|
+
meta: { nameText: 'latex示例', },
|
|
304
312
|
path: '/feature/LatexDemo',
|
|
305
313
|
component: () => import('@shijiu/jsview-vue-samples/LatexDemo/App.vue'),
|
|
306
314
|
},
|
|
307
315
|
{
|
|
308
|
-
|
|
316
|
+
meta: { nameText: 'GetRect示例', },
|
|
309
317
|
path: '/feature/GetRect',
|
|
310
318
|
component: () => import('@shijiu/jsview-vue-samples/GetBoundingClientRect/App.vue'),
|
|
311
319
|
},
|
|
312
320
|
{
|
|
313
|
-
|
|
321
|
+
meta: { nameText: '动态Class示例', },
|
|
314
322
|
path: '/feature/DynamicClass',
|
|
315
323
|
component: () => import('@shijiu/jsview-vue-samples/DynamicClass/App.vue'),
|
|
316
324
|
},
|
|
317
325
|
{
|
|
318
|
-
|
|
326
|
+
meta: { nameText: 'Class动态切换示例', },
|
|
319
327
|
path: '/feature/ClassDynamicSwitching',
|
|
320
328
|
component: () => import('@shijiu/jsview-vue-samples/ClassDynamicSwitching/App.vue'),
|
|
321
329
|
},
|
|
322
330
|
{
|
|
323
|
-
|
|
331
|
+
meta: { nameText: 'JsvLine示例', },
|
|
324
332
|
path: '/feature/JsvLine',
|
|
325
333
|
component: () => import('@shijiu/jsview-vue-samples/JsvLine/App.vue'),
|
|
326
334
|
},
|
|
327
335
|
// {
|
|
328
|
-
//
|
|
336
|
+
// meta: { nameText: 'FreeMove示例', },
|
|
329
337
|
// path: '/feature/FreeMove',
|
|
330
338
|
// component: () => import('@shijiu/jsview-vue-samples/FreeMove/App.vue'),
|
|
331
339
|
// },
|
|
332
340
|
{
|
|
333
|
-
|
|
341
|
+
meta: { nameText: '思维导图示例', },
|
|
334
342
|
path: '/feature/MindMap',
|
|
335
343
|
component: () => import('@shijiu/jsview-vue-samples/MindMap/App.vue'),
|
|
336
344
|
},
|
|
337
345
|
{
|
|
338
|
-
|
|
346
|
+
meta: { nameText: 'latex公式', },
|
|
339
347
|
path: '/feature/LatexFormula',
|
|
340
348
|
component: () => import('@shijiu/jsview-vue-samples/LatexFormula/App.vue'),
|
|
341
349
|
},
|
|
342
350
|
{
|
|
343
|
-
|
|
351
|
+
meta: { nameText: 'Swiper3dTest', },
|
|
344
352
|
path: '/Operations/Swiper3D',
|
|
345
353
|
component: () => import('@shijiu/jsview-vue-samples/SwiperTest/App.vue'),
|
|
346
354
|
},
|
|
347
355
|
{
|
|
348
|
-
|
|
356
|
+
meta: { nameText: '进度条', },
|
|
349
357
|
path: '/Operations/ProgressBar',
|
|
350
358
|
component: () => import('@shijiu/jsview-vue-samples/ProgressBar/App.vue'),
|
|
351
359
|
},
|
|
352
360
|
{
|
|
353
|
-
|
|
361
|
+
meta: { nameText: '春联测试', },
|
|
354
362
|
path: '/Operations/CoupletsTest',
|
|
355
363
|
component: () => import('@shijiu/jsview-vue-samples/CoupletsTest/App.vue'),
|
|
356
364
|
},
|
|
357
365
|
{
|
|
358
|
-
|
|
366
|
+
meta: { nameText: '全屏春联特效', },
|
|
367
|
+
path: '/Operations/SpringFestival2025',
|
|
368
|
+
component: () => import('jsview-vue-samples/SpringFestival/App.vue'),
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
meta: { nameText: '场景过渡', },
|
|
359
372
|
path: '/Operations/SceneTransition',
|
|
360
373
|
component: () => import('@shijiu/jsview-vue-samples/SceneTransition/App.vue'),
|
|
361
374
|
},
|
|
362
375
|
{
|
|
363
|
-
|
|
376
|
+
meta: { nameText: '点击Div', },
|
|
364
377
|
path: '/touch/ClickDivDemo',
|
|
365
378
|
component: () => import('@shijiu/jsview-vue-samples/ClickDivDemo/App.vue'),
|
|
366
379
|
},
|
|
367
380
|
{
|
|
368
|
-
|
|
381
|
+
meta: { nameText: '触控示例', },
|
|
369
382
|
path: '/touch/TouchWidget',
|
|
370
383
|
component: () => import('@shijiu/jsview-vue-samples/TouchWidget/App.vue'),
|
|
371
384
|
},
|
|
372
385
|
{
|
|
373
|
-
|
|
386
|
+
meta: { nameText: 'DragBox', },
|
|
374
387
|
path: '/touch/Box',
|
|
375
388
|
component: () => import('@shijiu/jsview-vue-samples/DragBox/App.vue'),
|
|
376
389
|
},
|
|
377
390
|
// {
|
|
378
|
-
//
|
|
391
|
+
// meta: { nameText: 'FreeMove触控磁吸', },
|
|
379
392
|
// path: '/touch/FreeMoveChildAttract',
|
|
380
393
|
// component: () => import('@shijiu/jsview-vue-samples/FreeMoveChildAttract/App.vue'),
|
|
381
394
|
// },
|
|
382
395
|
// {
|
|
383
|
-
//
|
|
396
|
+
// meta: { nameText: 'FreeMoveLink', },
|
|
384
397
|
// path: '/touch/FreeMoveLink',
|
|
385
398
|
// component: () => import('@shijiu/jsview-vue-samples/FreeMoveLink/App.vue'),
|
|
386
399
|
// },
|
|
387
400
|
{
|
|
388
|
-
|
|
401
|
+
meta: { nameText: '可拖拽进度条', },
|
|
389
402
|
path: '/touch/ScrollBoxTest',
|
|
390
403
|
component: () => import('@shijiu/jsview-vue-samples/ScrollBoxTest/App.vue'),
|
|
391
404
|
},
|
|
392
405
|
// {
|
|
393
|
-
//
|
|
406
|
+
// meta: { nameText: '透视镜效果样例', },
|
|
394
407
|
// path: '/Operations/DriftScopeTest',
|
|
395
408
|
// component: () => import('@shijiu/jsview-vue-samples/DriftScopeTest/App.vue'),
|
|
396
409
|
// },
|
|
397
410
|
{
|
|
398
|
-
|
|
411
|
+
meta: { nameText: '自定义shader', },
|
|
399
412
|
path: '/Operations/CustomShader',
|
|
400
413
|
component: () => import('@shijiu/jsview-vue-samples/CustomShader/App.vue'),
|
|
401
414
|
},
|
|
415
|
+
{
|
|
416
|
+
meta: { nameText: '虚线框', },
|
|
417
|
+
path: '/Operations/DashPath',
|
|
418
|
+
component: () => import('@shijiu/jsview-vue-samples/DashPath/App.vue'),
|
|
419
|
+
},
|
|
402
420
|
];
|
|
403
421
|
|
|
404
422
|
//添加MetroWidget demo
|
|
405
|
-
routeList = routeList
|
|
423
|
+
routeList = routeList
|
|
424
|
+
.concat(metroWidgetRouteList)
|
|
425
|
+
.concat(demoForOperatorRouteList);
|
|
406
426
|
|
|
407
427
|
const router = createRouter({
|
|
408
428
|
// 浏览器调试和盒子上都可以使用功能与WebHashHistory相同的jsvCreateHashHistory(推荐)
|
|
@@ -410,5 +430,8 @@ const router = createRouter({
|
|
|
410
430
|
history: jsvCreateHashHistory(),
|
|
411
431
|
routes: routeList,
|
|
412
432
|
});
|
|
433
|
+
router.beforeEach((to, from) => {
|
|
434
|
+
console.log("router beforeEach", to, from);
|
|
435
|
+
})
|
|
413
436
|
|
|
414
437
|
export { router }
|
|
@@ -16,11 +16,12 @@ const metroWidgetData = [];
|
|
|
16
16
|
const operationsData = [];
|
|
17
17
|
const gameData = [];
|
|
18
18
|
const touchTestData = [];
|
|
19
|
+
const operatorData = [];
|
|
19
20
|
|
|
20
21
|
const routeList = useRouter().getRoutes();
|
|
21
22
|
for (let item of routeList) {
|
|
22
23
|
let obj = {
|
|
23
|
-
name: item.
|
|
24
|
+
name: item.meta.nameText,
|
|
24
25
|
path: item.path,
|
|
25
26
|
width: 300,
|
|
26
27
|
height: 100,
|
|
@@ -41,6 +42,9 @@ for (let item of routeList) {
|
|
|
41
42
|
} else if (item.path.indexOf("/touch/") >= 0) {
|
|
42
43
|
obj.backgroundColor = colorTemplete[touchTestData.length % 4];
|
|
43
44
|
touchTestData.push(obj);
|
|
45
|
+
} else if (item.path.indexOf("/operator/") >= 0) {
|
|
46
|
+
obj.backgroundColor = colorTemplete[operatorData.length % 4];
|
|
47
|
+
operatorData.push(obj);
|
|
44
48
|
}
|
|
45
49
|
}
|
|
46
50
|
const dataList = [
|
|
@@ -49,6 +53,7 @@ const dataList = [
|
|
|
49
53
|
operationsData,
|
|
50
54
|
touchTestData,
|
|
51
55
|
gameData,
|
|
56
|
+
operatorData,
|
|
52
57
|
];
|
|
53
58
|
|
|
54
59
|
// 控制v-show
|
|
@@ -129,10 +134,6 @@ let onDialogAction = (msg) => {
|
|
|
129
134
|
switch (msg) {
|
|
130
135
|
case "ok":
|
|
131
136
|
jJsvRuntimeBridge.closePage();
|
|
132
|
-
// if (!window.JsView) {
|
|
133
|
-
// // 浏览器调试
|
|
134
|
-
// window.location.href = "about:blank";
|
|
135
|
-
// }
|
|
136
137
|
break;
|
|
137
138
|
case "back":
|
|
138
139
|
case "cancel":
|
|
@@ -222,7 +223,7 @@ onDeactivated(() => {
|
|
|
222
223
|
}
|
|
223
224
|
|
|
224
225
|
.logo {
|
|
225
|
-
top:
|
|
226
|
+
top: 60;
|
|
226
227
|
width: 1260;
|
|
227
228
|
height: 30;
|
|
228
229
|
color: #00ff00;
|
|
@@ -89,7 +89,7 @@ for (let i = 0; i < 50; i++) {
|
|
|
89
89
|
savePrize: `${i}`,
|
|
90
90
|
soldTotal: `${Math.floor(Math.random() * 50000)}`,
|
|
91
91
|
pictUrl:
|
|
92
|
-
"
|
|
92
|
+
"https://cdn.release.qcast.cn/JsViewFrameworkTester/JsViewVueSampleResources/DivMetroPerformance/data/O1CN01Ab4vWz1izGAyRL1Yf_!!0-item_pic.jpg",
|
|
93
93
|
}));
|
|
94
94
|
}
|
|
95
95
|
|
|
@@ -103,7 +103,7 @@ for (let i = 0; i < 49; i++) {
|
|
|
103
103
|
savePrize: `${i}`,
|
|
104
104
|
soldTotal: `${Math.floor(Math.random() * 50000)}`,
|
|
105
105
|
pictUrl:
|
|
106
|
-
"
|
|
106
|
+
"https://cdn.release.qcast.cn/JsViewFrameworkTester/JsViewVueSampleResources/DivMetroPerformance/data/O1CN01Ab4vWz1izGAyRL1Yf_!!0-item_pic.jpg",
|
|
107
107
|
}));
|
|
108
108
|
}
|
|
109
109
|
|
|
@@ -117,7 +117,7 @@ for (let i = 0; i < 48; i++) {
|
|
|
117
117
|
savePrize: `${i}`,
|
|
118
118
|
soldTotal: `${Math.floor(Math.random() * 50000)}`,
|
|
119
119
|
pictUrl:
|
|
120
|
-
"
|
|
120
|
+
"https://cdn.release.qcast.cn/JsViewFrameworkTester/JsViewVueSampleResources/DivMetroPerformance/data/O1CN01Ab4vWz1izGAyRL1Yf_!!0-item_pic.jpg",
|
|
121
121
|
}));
|
|
122
122
|
}
|
|
123
123
|
|
package/DriftScopeTest/App.vue
CHANGED
|
@@ -106,7 +106,7 @@ onBeforeUnmount(() => {
|
|
|
106
106
|
width: 1280,
|
|
107
107
|
height: 720,
|
|
108
108
|
backgroundImage:
|
|
109
|
-
'https://qcast
|
|
109
|
+
'https://cdn.release.qcast.cn/JsViewFrameworkTester/JsViewVueSampleResources/DriftScopeTest/App/fly2.jpg',
|
|
110
110
|
}"
|
|
111
111
|
/>
|
|
112
112
|
</template>
|
|
@@ -4,7 +4,7 @@ import { getDataUrl } from "../CommonUtils/ResourceData";
|
|
|
4
4
|
const DemoResourceBase = getDataUrl();
|
|
5
5
|
const item_url = DemoResourceBase
|
|
6
6
|
? `${DemoResourceBase}/27bda620942566673ab449a3ef765321.png`
|
|
7
|
-
: "
|
|
7
|
+
: "https://cdn.release.qcast.cn/JsViewFrameworkTester/JsViewVueSampleResources/FilterDemo/AnimatePic/27bda620942566673ab449a3ef765321.png";
|
|
8
8
|
</script>
|
|
9
9
|
|
|
10
10
|
<template>
|
|
@@ -27,9 +27,9 @@ globalLoadJsvPlayerPlugin((status) => {
|
|
|
27
27
|
console.log("JsvPlayer plugin load status: " + status);
|
|
28
28
|
});
|
|
29
29
|
|
|
30
|
-
// const video_url = "
|
|
30
|
+
// const video_url = "https://cdn.release.qcast.cn/JsViewFrameworkTester/JsViewVueSampleResources/FilterDemo/VideoLayer/52fae4231350c85fec605b47bbe479c5.mp4";
|
|
31
31
|
const video_url =
|
|
32
|
-
"
|
|
32
|
+
"https://cdn.release.qcast.cn/JsViewFrameworkTester/JsViewVueSampleResources/FilterDemo/VideoLayer/cctv1_1080_25fps.mp4";
|
|
33
33
|
</script>
|
|
34
34
|
|
|
35
35
|
<style scoped>
|
|
@@ -19,10 +19,6 @@ let vInvToken = setInterval(() => {
|
|
|
19
19
|
rIndex.value++;
|
|
20
20
|
rMyWidth.value = cWidth[rIndex.value % cWidth.length];
|
|
21
21
|
rMyHeight.value = cHeight[rIndex.value % cHeight.length];
|
|
22
|
-
if (!window.JsView) {
|
|
23
|
-
// PC模拟环境要通过key来刷新确保界面flex正常
|
|
24
|
-
rRefreshId.value = rIndex.value;
|
|
25
|
-
}
|
|
26
22
|
}, 2000);
|
|
27
23
|
|
|
28
24
|
onUnmounted(() => {
|