@shijiu/jsview-vue-samples 2.3.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/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 +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/Bounce.vue +33 -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 +1 -1
- package/DemoForOperator/Firework1/Fireworks.vue +50 -11
- package/DemoForOperator/FlipPage/FlipPage/FlipPage.vue +29 -1
- package/DemoForOperator/Focus/Alpha/AlphaFocusBox.vue +27 -2
- package/DemoForOperator/Focus/Light/LightFocusBox.vue +42 -1
- 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/geniePakcer/Genie.vue +60 -18
- package/DemoForOperator/GrayFilter/GrayFilter.vue +21 -0
- package/DemoForOperator/Jigsaw/JigsawFull.vue +46 -4
- package/DemoForOperator/Jigsaw/JigsawSingle.vue +34 -2
- 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/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 +118 -1
- package/DemoHomepage/components/Item.vue +11 -0
- package/DemoHomepage/router.js +75 -1
- package/GiftRain/components/SpriteTranslate.vue +68 -48
- package/HashHistory/App.vue +2 -2
- package/HashHistory/router.js +1 -1
- 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/routeList.js +17 -0
- package/PosterPacker/App.vue +2 -2
- package/ViewOpacity/App.vue +19 -0
- package/package.json +1 -1
- package/DashPath/DashPath.vue +0 -118
- package/DemoForOperator/ScalePoster/App.vue +0 -4
- package/DemoForOperator/ScalePoster/ScalePoster.vue +0 -0
package/DemoHomepage/router.js
CHANGED
|
@@ -8,6 +8,7 @@ let routeList = [
|
|
|
8
8
|
// 功能实例
|
|
9
9
|
{
|
|
10
10
|
meta: { nameText: 'Home', },
|
|
11
|
+
name: "Home",
|
|
11
12
|
path: '/',
|
|
12
13
|
component: Homepage,
|
|
13
14
|
meta: {
|
|
@@ -16,6 +17,7 @@ let routeList = [
|
|
|
16
17
|
},
|
|
17
18
|
{
|
|
18
19
|
meta: { nameText: '基础示例合集', },
|
|
20
|
+
name: "feature-基础示例合集",
|
|
19
21
|
path: '/feature/Basic',
|
|
20
22
|
component: () => import('@shijiu/jsview-vue-samples/Basic/App.vue'),
|
|
21
23
|
},
|
|
@@ -26,132 +28,158 @@ let routeList = [
|
|
|
26
28
|
// },
|
|
27
29
|
{
|
|
28
30
|
meta: { nameText: '3d移动动画', },
|
|
31
|
+
name: "Operations-3d移动动画",
|
|
29
32
|
path: '/Operations/3dMove',
|
|
30
33
|
component: () => import('jsview-vue-samples/Poster3d/App.vue'),
|
|
31
34
|
},
|
|
32
35
|
{
|
|
33
36
|
meta: { nameText: '烟花行进特效', },
|
|
37
|
+
name: "Operations-烟花行进特效",
|
|
34
38
|
path: '/Operations/SprayMove',
|
|
35
39
|
component: () => import('jsview-vue-samples/SprayMove/App.vue'),
|
|
36
40
|
},
|
|
37
41
|
{
|
|
38
42
|
meta: { nameText: '海报图收放组件', },
|
|
43
|
+
name: "Operations-海报图收放组件",
|
|
39
44
|
path: '/Operations/PosterPacker',
|
|
40
45
|
component: () => import('jsview-vue-samples/PosterPacker/App.vue'),
|
|
41
46
|
},
|
|
42
47
|
{
|
|
43
48
|
meta: { nameText: 'div快照功能', },
|
|
49
|
+
name: "feature-div快照功能",
|
|
44
50
|
path: '/feature/BakeViewDemo',
|
|
45
51
|
component: () => import('@shijiu/jsview-vue-samples/BakeViewDemo/App.vue'),
|
|
46
52
|
},
|
|
47
53
|
{
|
|
48
54
|
meta: { nameText: 'FlexDemo', },
|
|
55
|
+
name: "feature-FlexDemo",
|
|
49
56
|
path: '/feature/FlexDemo',
|
|
50
57
|
component: () => import('@shijiu/jsview-vue-samples/FlexCellDemo/App.vue')
|
|
51
58
|
},
|
|
52
59
|
{
|
|
53
60
|
meta: { nameText: 'ScreenFlex', },
|
|
61
|
+
name: "feature-ScreenFlex",
|
|
54
62
|
path: '/feature/ScreenFlex',
|
|
55
63
|
component: () => import('@shijiu/jsview-vue-samples/FullScreenFlex/App.vue')
|
|
56
64
|
},
|
|
57
65
|
{
|
|
58
66
|
meta: { nameText: '连接线Demo', },
|
|
67
|
+
name: "feature-连接线Demo",
|
|
59
68
|
path: '/feature/ConnectLine',
|
|
60
69
|
component: () => import('@shijiu/jsview-vue-samples/ConnectLine/App.vue')
|
|
61
70
|
},
|
|
62
71
|
{
|
|
63
72
|
meta: { nameText: '离散焦点自动处理', },
|
|
73
|
+
name: "feature-离散焦点自动处理",
|
|
64
74
|
path: '/feature/DispersedFocusControl',
|
|
65
75
|
component: () => import('@shijiu/jsview-vue-samples/DispersedFocusControl/App.vue'),
|
|
66
76
|
},
|
|
67
77
|
{
|
|
68
78
|
meta: { nameText: '离散焦点分布', },
|
|
79
|
+
name: "feature-离散焦点分布",
|
|
69
80
|
path: '/feature/DispersedItemSample',
|
|
70
81
|
component: () => import('@shijiu/jsview-vue-samples/DispersedItemSample/DispersedItemSample.vue')
|
|
71
82
|
},
|
|
72
83
|
{
|
|
73
84
|
meta: { nameText: '饼图测试', },
|
|
85
|
+
name: "feature-饼图测试",
|
|
74
86
|
path: '/feature/SecTorTest',
|
|
75
87
|
component: () => import('@shijiu/jsview-vue-samples/SecTorTest/App.vue'),
|
|
76
88
|
},
|
|
77
89
|
{
|
|
78
90
|
meta: { nameText: 'TextureStore测试', },
|
|
91
|
+
name: "feature-TextureStore测试",
|
|
79
92
|
path: '/feature/TextureStoreTest',
|
|
80
93
|
component: () => import('@shijiu/jsview-vue-samples/TextureStoreTest/App.vue'),
|
|
81
94
|
},
|
|
82
95
|
{
|
|
83
96
|
meta: { nameText: 'NinePatch对齐测试', },
|
|
97
|
+
name: "feature-NinePatch对齐测试",
|
|
84
98
|
path: '/feature/NinePatchTester',
|
|
85
99
|
component: () => import('@shijiu/jsview-vue-samples/NinePatchTester/App.vue'),
|
|
86
100
|
},
|
|
87
101
|
{
|
|
88
102
|
meta: { nameText: 'NativeSharedView测试', },
|
|
103
|
+
name: "feature-NativeSharedView测试",
|
|
89
104
|
path: '/feature/TestNativeSharedView',
|
|
90
105
|
component: () => import('@shijiu/jsview-vue-samples/TestNativeSharedView/App.vue'),
|
|
91
106
|
},
|
|
92
107
|
{
|
|
93
108
|
meta: { nameText: 'CSS预处理', },
|
|
109
|
+
name: "feature-CSS预处理",
|
|
94
110
|
path: '/feature/CssPreprocessor',
|
|
95
111
|
component: () => import('@shijiu/jsview-vue-samples/CssPreprocessor/App.vue'),
|
|
96
112
|
},
|
|
97
113
|
{
|
|
98
114
|
meta: { nameText: '可视化变化通知', },
|
|
115
|
+
name: "feature-可视化变化通知",
|
|
99
116
|
path: '/feature/VisibleSensorDemo',
|
|
100
117
|
component: () => import('@shijiu/jsview-vue-samples/VisibleSensorDemo/App.vue'),
|
|
101
118
|
},
|
|
102
119
|
{
|
|
103
120
|
meta: { nameText: '快速刷新的表格布局组件', },
|
|
121
|
+
name: "feature-快速刷新的表格布局组件",
|
|
104
122
|
path: '/feature/GridDemo',
|
|
105
123
|
component: () => import('@shijiu/jsview-vue-samples/GridDemo/App.vue'),
|
|
106
124
|
},
|
|
107
125
|
{
|
|
108
126
|
meta: { nameText: '有命名空间的焦点切换', },
|
|
127
|
+
name: "feature-有命名空间的焦点切换",
|
|
109
128
|
path: '/feature/BasicFocusControl',
|
|
110
129
|
component: () => import('@shijiu/jsview-vue-samples/BasicFocusControl/App.vue'),
|
|
111
130
|
},
|
|
112
131
|
{
|
|
113
132
|
meta: { nameText: 'Hash方式路由切换', },
|
|
133
|
+
name: "feature-Hash方式路由切换",
|
|
114
134
|
path: '/feature/HashHistory',
|
|
115
135
|
props: { routePath: '/feature/HashHistory' },
|
|
116
136
|
component: () => import('@shijiu/jsview-vue-samples/HashHistory/App.vue'),
|
|
117
137
|
},
|
|
118
138
|
{
|
|
119
139
|
meta: { nameText: '翻牌游戏', },
|
|
140
|
+
name: "Game-翻牌游戏",
|
|
120
141
|
path: '/Game/FlipCard',
|
|
121
142
|
component: () => import('@shijiu/jsview-vue-samples/FlipCard/App.vue'),
|
|
122
143
|
},
|
|
123
144
|
{
|
|
124
145
|
meta: { nameText: '设置颜色空间', },
|
|
146
|
+
name: "feature-设置颜色空间",
|
|
125
147
|
path: '/feature/ColorSpace',
|
|
126
148
|
component: () => import('@shijiu/jsview-vue-samples/ColorSpace/App.vue'),
|
|
127
149
|
},
|
|
128
150
|
{
|
|
129
151
|
meta: { nameText: '制定Texture尺寸', },
|
|
152
|
+
name: "feature-制定Texture尺寸",
|
|
130
153
|
path: '/feature/TextureSize',
|
|
131
154
|
component: () => import('@shijiu/jsview-vue-samples/TextureSize/App.vue'),
|
|
132
155
|
},
|
|
133
156
|
{
|
|
134
157
|
meta: { nameText: '长文字', },
|
|
158
|
+
name: "feature-长文字",
|
|
135
159
|
path: '/feature/LongText',
|
|
136
160
|
component: () => import('@shijiu/jsview-vue-samples/LongText/App.vue'),
|
|
137
161
|
},
|
|
138
162
|
{
|
|
139
163
|
meta: { nameText: '长文字Latex', },
|
|
164
|
+
name: "feature-长文字Latex",
|
|
140
165
|
path: '/feature/LongTextLatex',
|
|
141
166
|
component: () => import('@shijiu/jsview-vue-samples/LongTextLatex/App.vue'),
|
|
142
167
|
},
|
|
143
168
|
{
|
|
144
169
|
meta: { nameText: '二维码', },
|
|
170
|
+
name: "feature-二维码",
|
|
145
171
|
path: '/feature/QrcodeDemo',
|
|
146
172
|
component: () => import('@shijiu/jsview-vue-samples/QrcodeDemo/App.vue'),
|
|
147
173
|
},
|
|
148
174
|
{
|
|
149
175
|
meta: { nameText: '文字阴影', },
|
|
176
|
+
name: "feature-文字阴影",
|
|
150
177
|
path: '/feature/TextShadowDemo',
|
|
151
178
|
component: () => import('@shijiu/jsview-vue-samples/TextShadowDemo/App.vue'),
|
|
152
179
|
},
|
|
153
180
|
{
|
|
154
181
|
meta: { nameText: '多行文字区域内对齐', },
|
|
182
|
+
name: "feature-多行文字区域内对齐",
|
|
155
183
|
path: '/feature/TextBox',
|
|
156
184
|
component: () => import('@shijiu/jsview-vue-samples/TextBox/App.vue'),
|
|
157
185
|
},
|
|
@@ -163,131 +191,157 @@ let routeList = [
|
|
|
163
191
|
// },
|
|
164
192
|
{
|
|
165
193
|
meta: { nameText: '精灵图', },
|
|
194
|
+
name: "Game-精灵图",
|
|
166
195
|
path: '/Game/SpriteImage',
|
|
167
196
|
component: () => import('@shijiu/jsview-vue-samples/SpriteImage/App.vue'),
|
|
168
197
|
},
|
|
169
198
|
{
|
|
170
199
|
meta: { nameText: '文字滚动(标题跑马灯)', },
|
|
200
|
+
name: "feature-文字滚动(标题跑马灯)",
|
|
171
201
|
path: '/feature/Marquee',
|
|
172
202
|
component: () => import('@shijiu/jsview-vue-samples/Marquee/App.vue'),
|
|
173
203
|
},
|
|
174
204
|
{
|
|
175
205
|
meta: { nameText: '文字输入', },
|
|
206
|
+
name: "feature-文字输入",
|
|
176
207
|
path: '/feature/Input',
|
|
177
208
|
component: () => import('@shijiu/jsview-vue-samples/Input/App.vue'),
|
|
178
209
|
},
|
|
179
210
|
{
|
|
180
211
|
meta: { nameText: '情景主题效果:雨', },
|
|
212
|
+
name: "Operations-情景主题效果:雨",
|
|
181
213
|
path: '/Operations/TombSweepingDayTest',
|
|
182
214
|
component: () => import('@shijiu/jsview-vue-samples/TombSweepingDayTest/App.vue'),
|
|
183
215
|
},
|
|
184
216
|
{
|
|
185
217
|
meta: { nameText: '.9图焦点框漂移', },
|
|
218
|
+
name: "Operations-.9图焦点框漂移",
|
|
186
219
|
path: '/Operations/NinePatchDemo',
|
|
187
220
|
component: () => import('@shijiu/jsview-vue-samples/NinePatchDemo/App.vue'),
|
|
188
221
|
},
|
|
189
222
|
{
|
|
190
223
|
meta: { nameText: '动图', },
|
|
224
|
+
name: "Operations-动图",
|
|
191
225
|
path: '/Operations/AnimPicture',
|
|
192
226
|
component: () => import('@shijiu/jsview-vue-samples/AnimPicture/App.vue'),
|
|
193
227
|
},
|
|
194
228
|
{
|
|
195
229
|
meta: { nameText: '粒子效果', },
|
|
230
|
+
name: "Operations-粒子效果",
|
|
196
231
|
path: '/Operations/SprayView',
|
|
197
232
|
component: () => import('@shijiu/jsview-vue-samples/SprayView/App.vue'),
|
|
198
233
|
},
|
|
199
234
|
{
|
|
200
235
|
meta: { nameText: '长图片', },
|
|
236
|
+
name: "Operations-长图片",
|
|
201
237
|
path: '/Operations/LongImage',
|
|
202
238
|
component: () => import('@shijiu/jsview-vue-samples/LongImage/App.vue'),
|
|
203
239
|
},
|
|
204
240
|
{
|
|
205
241
|
meta: { nameText: '拼图demo', },
|
|
242
|
+
name: "Operations-拼图demo",
|
|
206
243
|
path: '/Operations/MaskClip',
|
|
207
244
|
component: () => import('@shijiu/jsview-vue-samples/MaskClip/App.vue'),
|
|
208
245
|
},
|
|
209
246
|
{
|
|
210
247
|
meta: { nameText: 'SoundPool', },
|
|
248
|
+
name: "Game-SoundPool",
|
|
211
249
|
path: '/Game/SoundPool',
|
|
212
250
|
component: () => import('@shijiu/jsview-vue-samples/SoundPool/App.vue'),
|
|
213
251
|
},
|
|
214
252
|
{
|
|
215
253
|
meta: { nameText: 'TextureAnimation', },
|
|
254
|
+
name: "Operations-TextureAnimation",
|
|
216
255
|
path: '/Operations/TextureAnimation',
|
|
217
256
|
component: () => import('@shijiu/jsview-vue-samples/TextureAnimation/App.vue'),
|
|
218
257
|
},
|
|
219
258
|
{
|
|
220
259
|
meta: { nameText: '焦点框旋转光效果', },
|
|
260
|
+
name: "Operations-焦点框旋转光效果",
|
|
221
261
|
path: '/Operations/TextureAnimation2',
|
|
222
262
|
component: () => import('@shijiu/jsview-vue-samples/TextureAnimation/App3.vue'),
|
|
223
263
|
},
|
|
224
264
|
{
|
|
225
265
|
meta: { nameText: '公祭日黑白效果', },
|
|
266
|
+
name: "Operations-公祭日黑白效果",
|
|
226
267
|
path: '/Operations/GrayDown',
|
|
227
268
|
component: () => import('@shijiu/jsview-vue-samples/FilterDemo/App.vue'),
|
|
228
269
|
},
|
|
229
270
|
{
|
|
230
271
|
meta: { nameText: '水波特效', },
|
|
272
|
+
name: "Operations-水波特效",
|
|
231
273
|
path: '/Operations/Ripple',
|
|
232
274
|
component: () => import('@shijiu/jsview-vue-samples/Ripple/App.vue'),
|
|
233
275
|
},
|
|
234
276
|
{
|
|
235
277
|
meta: { nameText: '预加载', },
|
|
278
|
+
name: "feature-预加载",
|
|
236
279
|
path: '/feature/Preload',
|
|
237
280
|
component: () => import('@shijiu/jsview-vue-samples/Preload/App.vue'),
|
|
238
281
|
},
|
|
239
282
|
{
|
|
240
283
|
meta: { nameText: '单图片透明', },
|
|
284
|
+
name: "feature-单图片透明",
|
|
241
285
|
path: '/feature/ViewOpacity',
|
|
242
286
|
component: () => import('@shijiu/jsview-vue-samples/ViewOpacity/App.vue'),
|
|
243
287
|
},
|
|
244
288
|
{
|
|
245
289
|
meta: { nameText: '图片缩小算法', },
|
|
290
|
+
name: "feature-图片缩小算法",
|
|
246
291
|
path: '/feature/ScaleDownNeon',
|
|
247
292
|
component: () => import('@shijiu/jsview-vue-samples/ScaleDownNeon/App.vue'),
|
|
248
293
|
},
|
|
249
294
|
{
|
|
250
295
|
meta: { nameText: '渐变Texture', },
|
|
296
|
+
name: "feature-渐变Texture",
|
|
251
297
|
path: '/feature/GradientTexture',
|
|
252
298
|
component: () => import('@shijiu/jsview-vue-samples/GradientTexture/App.vue'),
|
|
253
299
|
},
|
|
254
300
|
{
|
|
255
301
|
meta: { nameText: '碰撞检测', },
|
|
302
|
+
name: "Game-碰撞检测",
|
|
256
303
|
path: '/Game/Collision',
|
|
257
304
|
component: () => import('@shijiu/jsview-vue-samples/Collision/App.vue'),
|
|
258
305
|
},
|
|
259
306
|
{
|
|
260
307
|
meta: { nameText: '碰撞即停', },
|
|
308
|
+
name: "Game-碰撞即停",
|
|
261
309
|
path: '/Game/ImpactStop',
|
|
262
310
|
component: () => import('@shijiu/jsview-vue-samples/ImpactStop/App.vue'),
|
|
263
311
|
},
|
|
264
312
|
{
|
|
265
313
|
meta: { nameText: '滚动图', },
|
|
314
|
+
name: "Operations-滚动图",
|
|
266
315
|
path: '/Operations/Swiper',
|
|
267
316
|
component: () => import('@shijiu/jsview-vue-samples/Swiper/App.vue'),
|
|
268
317
|
},
|
|
269
318
|
{
|
|
270
319
|
meta: { nameText: '下载接口示例', },
|
|
320
|
+
name: "feature-下载接口示例",
|
|
271
321
|
path: '/feature/JsvPreDownloader',
|
|
272
322
|
component: () => import('@shijiu/jsview-vue-samples/JsvPreDownloader/App.vue'),
|
|
273
323
|
},
|
|
274
324
|
{
|
|
275
325
|
meta: { nameText: '焦点移动样式', },
|
|
326
|
+
name: "Operations-焦点移动样式",
|
|
276
327
|
path: '/Operations/FocusMoveStyle',
|
|
277
328
|
component: () => import('@shijiu/jsview-vue-samples/FocusMoveStyle/App.vue'),
|
|
278
329
|
},
|
|
279
330
|
{
|
|
280
331
|
meta: { nameText: 'Mockjs测试', },
|
|
332
|
+
name: "feature-Mockjs测试",
|
|
281
333
|
path: '/feature/MockjsDemo',
|
|
282
334
|
component: () => import('@shijiu/jsview-vue-samples/MockjsDemo/App.vue'),
|
|
283
335
|
},
|
|
284
336
|
{
|
|
285
337
|
meta: { nameText: '红包雨', },
|
|
338
|
+
name: "Game-红包雨",
|
|
286
339
|
path: '/Game/GiftRain',
|
|
287
340
|
component: () => import('@shijiu/jsview-vue-samples/GiftRain/App.vue'),
|
|
288
341
|
},
|
|
289
342
|
{
|
|
290
343
|
meta: { nameText: '雷达图', },
|
|
344
|
+
name: "Game-雷达图",
|
|
291
345
|
path: '/Game/RadarChart',
|
|
292
346
|
component: () => import('@shijiu/jsview-vue-samples/JsvRadarChart/App.vue')
|
|
293
347
|
},
|
|
@@ -299,36 +353,43 @@ let routeList = [
|
|
|
299
353
|
// },
|
|
300
354
|
{
|
|
301
355
|
meta: { nameText: 'Hash参数', },
|
|
356
|
+
name: "feature-Hash参数",
|
|
302
357
|
path: '/feature/HashParams',
|
|
303
358
|
component: () => import('@shijiu/jsview-vue-samples/HashParams/App.vue'),
|
|
304
359
|
},
|
|
305
360
|
{
|
|
306
361
|
meta: { nameText: '按键打断描画', },
|
|
362
|
+
name: "feature-按键打断描画",
|
|
307
363
|
path: '/feature/BreakRender',
|
|
308
364
|
component: () => import('@shijiu/jsview-vue-samples/BreakRender/App.vue'),
|
|
309
365
|
},
|
|
310
366
|
{
|
|
311
367
|
meta: { nameText: 'latex示例', },
|
|
368
|
+
name: "feature-latex示例",
|
|
312
369
|
path: '/feature/LatexDemo',
|
|
313
370
|
component: () => import('@shijiu/jsview-vue-samples/LatexDemo/App.vue'),
|
|
314
371
|
},
|
|
315
372
|
{
|
|
316
373
|
meta: { nameText: 'GetRect示例', },
|
|
374
|
+
name: "feature-GetRect示例",
|
|
317
375
|
path: '/feature/GetRect',
|
|
318
376
|
component: () => import('@shijiu/jsview-vue-samples/GetBoundingClientRect/App.vue'),
|
|
319
377
|
},
|
|
320
378
|
{
|
|
321
379
|
meta: { nameText: '动态Class示例', },
|
|
380
|
+
name: "feature-动态Class示例",
|
|
322
381
|
path: '/feature/DynamicClass',
|
|
323
382
|
component: () => import('@shijiu/jsview-vue-samples/DynamicClass/App.vue'),
|
|
324
383
|
},
|
|
325
384
|
{
|
|
326
385
|
meta: { nameText: 'Class动态切换示例', },
|
|
386
|
+
name: "feature-Class动态切换示例",
|
|
327
387
|
path: '/feature/ClassDynamicSwitching',
|
|
328
388
|
component: () => import('@shijiu/jsview-vue-samples/ClassDynamicSwitching/App.vue'),
|
|
329
389
|
},
|
|
330
390
|
{
|
|
331
391
|
meta: { nameText: 'JsvLine示例', },
|
|
392
|
+
name: "feature-JsvLine示例",
|
|
332
393
|
path: '/feature/JsvLine',
|
|
333
394
|
component: () => import('@shijiu/jsview-vue-samples/JsvLine/App.vue'),
|
|
334
395
|
},
|
|
@@ -339,51 +400,61 @@ let routeList = [
|
|
|
339
400
|
// },
|
|
340
401
|
{
|
|
341
402
|
meta: { nameText: '思维导图示例', },
|
|
403
|
+
name: "feature-思维导图示例",
|
|
342
404
|
path: '/feature/MindMap',
|
|
343
405
|
component: () => import('@shijiu/jsview-vue-samples/MindMap/App.vue'),
|
|
344
406
|
},
|
|
345
407
|
{
|
|
346
408
|
meta: { nameText: 'latex公式', },
|
|
409
|
+
name: "feature-latex公式",
|
|
347
410
|
path: '/feature/LatexFormula',
|
|
348
411
|
component: () => import('@shijiu/jsview-vue-samples/LatexFormula/App.vue'),
|
|
349
412
|
},
|
|
350
413
|
{
|
|
351
414
|
meta: { nameText: 'Swiper3dTest', },
|
|
415
|
+
name: "Operations-Swiper3dTest",
|
|
352
416
|
path: '/Operations/Swiper3D',
|
|
353
417
|
component: () => import('@shijiu/jsview-vue-samples/SwiperTest/App.vue'),
|
|
354
418
|
},
|
|
355
419
|
{
|
|
356
420
|
meta: { nameText: '进度条', },
|
|
421
|
+
name: "Operations-进度条",
|
|
357
422
|
path: '/Operations/ProgressBar',
|
|
358
423
|
component: () => import('@shijiu/jsview-vue-samples/ProgressBar/App.vue'),
|
|
359
424
|
},
|
|
360
425
|
{
|
|
361
426
|
meta: { nameText: '春联测试', },
|
|
427
|
+
name: "Operations-春联测试",
|
|
362
428
|
path: '/Operations/CoupletsTest',
|
|
363
429
|
component: () => import('@shijiu/jsview-vue-samples/CoupletsTest/App.vue'),
|
|
364
430
|
},
|
|
365
431
|
{
|
|
366
432
|
meta: { nameText: '全屏春联特效', },
|
|
433
|
+
name: "Operations-全屏春联特效",
|
|
367
434
|
path: '/Operations/SpringFestival2025',
|
|
368
435
|
component: () => import('jsview-vue-samples/SpringFestival/App.vue'),
|
|
369
436
|
},
|
|
370
437
|
{
|
|
371
438
|
meta: { nameText: '场景过渡', },
|
|
439
|
+
name: "Operations-场景过渡",
|
|
372
440
|
path: '/Operations/SceneTransition',
|
|
373
441
|
component: () => import('@shijiu/jsview-vue-samples/SceneTransition/App.vue'),
|
|
374
442
|
},
|
|
375
443
|
{
|
|
376
444
|
meta: { nameText: '点击Div', },
|
|
445
|
+
name: "touch-点击Div",
|
|
377
446
|
path: '/touch/ClickDivDemo',
|
|
378
447
|
component: () => import('@shijiu/jsview-vue-samples/ClickDivDemo/App.vue'),
|
|
379
448
|
},
|
|
380
449
|
{
|
|
381
450
|
meta: { nameText: '触控示例', },
|
|
451
|
+
name: "touch-触控示例",
|
|
382
452
|
path: '/touch/TouchWidget',
|
|
383
453
|
component: () => import('@shijiu/jsview-vue-samples/TouchWidget/App.vue'),
|
|
384
454
|
},
|
|
385
455
|
{
|
|
386
456
|
meta: { nameText: 'DragBox', },
|
|
457
|
+
name: "touch-DragBox",
|
|
387
458
|
path: '/touch/Box',
|
|
388
459
|
component: () => import('@shijiu/jsview-vue-samples/DragBox/App.vue'),
|
|
389
460
|
},
|
|
@@ -399,6 +470,7 @@ let routeList = [
|
|
|
399
470
|
// },
|
|
400
471
|
{
|
|
401
472
|
meta: { nameText: '可拖拽进度条', },
|
|
473
|
+
name: "touch-可拖拽进度条",
|
|
402
474
|
path: '/touch/ScrollBoxTest',
|
|
403
475
|
component: () => import('@shijiu/jsview-vue-samples/ScrollBoxTest/App.vue'),
|
|
404
476
|
},
|
|
@@ -409,11 +481,13 @@ let routeList = [
|
|
|
409
481
|
// },
|
|
410
482
|
{
|
|
411
483
|
meta: { nameText: '自定义shader', },
|
|
484
|
+
name: "Operations-自定义shader",
|
|
412
485
|
path: '/Operations/CustomShader',
|
|
413
486
|
component: () => import('@shijiu/jsview-vue-samples/CustomShader/App.vue'),
|
|
414
487
|
},
|
|
415
488
|
{
|
|
416
|
-
meta: { nameText: '
|
|
489
|
+
meta: { nameText: '虚线框测试用例', },
|
|
490
|
+
name: "Operations-虚线框测试用例",
|
|
417
491
|
path: '/Operations/DashPath',
|
|
418
492
|
component: () => import('@shijiu/jsview-vue-samples/DashPath/App.vue'),
|
|
419
493
|
},
|
|
@@ -1,72 +1,92 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
<JsvActorMove
|
|
3
|
+
:key="`translate${item.key}`"
|
|
4
|
+
ref="translateF"
|
|
5
|
+
:style="{
|
|
6
|
+
left: item.left,
|
|
7
|
+
top: item.top,
|
|
8
|
+
width: item.width,
|
|
9
|
+
height: item.height,
|
|
10
|
+
}"
|
|
11
|
+
:control="_Control"
|
|
12
|
+
>
|
|
13
|
+
<div
|
|
14
|
+
:key="`bg${item.key}`"
|
|
15
|
+
ref="translate"
|
|
16
|
+
:style="{
|
|
17
|
+
backgroundImage: `url(${item.src})`,
|
|
18
|
+
left: 0,
|
|
19
|
+
top: 0,
|
|
20
|
+
width: item.width,
|
|
21
|
+
height: item.height,
|
|
22
|
+
}"
|
|
23
|
+
/>
|
|
24
|
+
</JsvActorMove>
|
|
7
25
|
</template>
|
|
8
26
|
|
|
9
27
|
<script setup>
|
|
10
|
-
import { shallowRef, defineProps, onMounted, onBeforeMount } from
|
|
11
|
-
import {
|
|
28
|
+
import { shallowRef, defineProps, onMounted, onBeforeMount } from "vue";
|
|
29
|
+
import {
|
|
30
|
+
JsvActorMove,
|
|
31
|
+
JsvActorMoveControl,
|
|
32
|
+
createImpactTracer,
|
|
33
|
+
createImpactCallback,
|
|
34
|
+
createImpactAutoFroze,
|
|
35
|
+
} from "jsview";
|
|
12
36
|
//定义子ref
|
|
13
|
-
let translate = shallowRef(null)
|
|
37
|
+
let translate = shallowRef(null);
|
|
14
38
|
//定义父ref
|
|
15
|
-
let translateF=shallowRef(null)
|
|
39
|
+
let translateF = shallowRef(null);
|
|
16
40
|
//定义props
|
|
17
41
|
const props = defineProps({
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
})
|
|
42
|
+
onDestory: Function,
|
|
43
|
+
item: Object,
|
|
44
|
+
onImpactTracer: Function,
|
|
45
|
+
MoneyBag: Object,
|
|
46
|
+
});
|
|
23
47
|
const control = new JsvActorMoveControl();
|
|
24
48
|
const _Control = control;
|
|
25
49
|
const item = props.item;
|
|
26
50
|
//销毁方法
|
|
27
51
|
const _onDestroy = () => {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
52
|
+
if (props.onDestory) {
|
|
53
|
+
props.onDestory(props.item.key);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
32
56
|
|
|
33
57
|
let sensor = null;
|
|
34
58
|
|
|
35
59
|
const _InitItemEle = (item, ele) => {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
)
|
|
49
|
-
);
|
|
50
|
-
sensor = giftrain_sensor;
|
|
51
|
-
}
|
|
60
|
+
if (ele && !item.ele) {
|
|
61
|
+
item.ele = ele;
|
|
62
|
+
if (props.MoneyBag) {
|
|
63
|
+
const giftrain_sensor = createImpactTracer(
|
|
64
|
+
props.MoneyBag,
|
|
65
|
+
ele,
|
|
66
|
+
createImpactCallback(() => {
|
|
67
|
+
props.onImpactTracer(item);
|
|
68
|
+
_onDestroy();
|
|
69
|
+
}) //碰撞即停
|
|
70
|
+
);
|
|
71
|
+
sensor = giftrain_sensor;
|
|
52
72
|
}
|
|
53
|
-
}
|
|
54
|
-
|
|
73
|
+
}
|
|
74
|
+
};
|
|
55
75
|
|
|
56
76
|
//挂载时初始化
|
|
57
77
|
onMounted(() => {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
})
|
|
78
|
+
_InitItemEle(item, translate.value);
|
|
79
|
+
_Control.moveToY(720 * 1.5 + 30, (720 * 1.5) / item.duration, () => {
|
|
80
|
+
_onDestroy();
|
|
81
|
+
});
|
|
82
|
+
});
|
|
63
83
|
//卸载之前释放碰撞监听者
|
|
64
|
-
onBeforeMount(()=>{
|
|
65
|
-
|
|
66
|
-
sensor.Recycle()
|
|
67
|
-
sensor=null
|
|
68
|
-
|
|
69
|
-
})
|
|
84
|
+
onBeforeMount(() => {
|
|
85
|
+
if (sensor != null) {
|
|
86
|
+
sensor.Recycle();
|
|
87
|
+
sensor = null;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
70
90
|
</script>
|
|
71
91
|
|
|
72
|
-
<style lang="scss" scoped></style>
|
|
92
|
+
<style lang="scss" scoped></style>
|
package/HashHistory/App.vue
CHANGED
package/HashHistory/router.js
CHANGED
|
@@ -69,7 +69,13 @@ onMounted(() => {
|
|
|
69
69
|
>
|
|
70
70
|
<!-- 重要代码: 为了实现焦点就近移动, 需要传递onItemEdge回调 -->
|
|
71
71
|
<template #renderItem="{ data, query, onAction, onItemEdge }">
|
|
72
|
-
<SWidgetItem
|
|
72
|
+
<SWidgetItem
|
|
73
|
+
:data="data"
|
|
74
|
+
:onAction="onAction"
|
|
75
|
+
:onItemEdge="onItemEdge"
|
|
76
|
+
,
|
|
77
|
+
:queryInfo="query"
|
|
78
|
+
/>
|
|
73
79
|
<!-- <widget-item
|
|
74
80
|
v-else
|
|
75
81
|
:data="data"
|
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
* @Description: file content
|
|
5
5
|
-->
|
|
6
6
|
<script setup>
|
|
7
|
-
import { ref } from "vue";
|
|
7
|
+
import { ref, onMounted, onUnmounted } from "vue";
|
|
8
8
|
|
|
9
9
|
const props = defineProps({
|
|
10
10
|
data: Object,
|
|
11
11
|
onAction: Object,
|
|
12
|
+
rowNum: Number,
|
|
13
|
+
queryInfo: Object,
|
|
12
14
|
});
|
|
13
15
|
|
|
14
16
|
const focused = ref(false);
|
|
@@ -28,6 +30,18 @@ const onClick = () => {
|
|
|
28
30
|
props.onAction.register("onFocus", onFocus);
|
|
29
31
|
props.onAction.register("onBlur", onBlur);
|
|
30
32
|
props.onAction.register("onClick", onClick);
|
|
33
|
+
|
|
34
|
+
onMounted(() => {
|
|
35
|
+
console.log(
|
|
36
|
+
`+++++++++ 加载 item 所在行列: ${props.rowNum} ${props.queryInfo.id}`
|
|
37
|
+
);
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
onUnmounted(() => {
|
|
41
|
+
console.log(
|
|
42
|
+
`---------卸载 item 所在行列: ${props.rowNum} ${props.queryInfo.id}`
|
|
43
|
+
);
|
|
44
|
+
});
|
|
31
45
|
</script>
|
|
32
46
|
|
|
33
47
|
<template>
|
|
@@ -61,4 +75,4 @@ props.onAction.register("onClick", onClick);
|
|
|
61
75
|
{{ data.content }}
|
|
62
76
|
</div>
|
|
63
77
|
</div>
|
|
64
|
-
</template>
|
|
78
|
+
</template>
|