@shijiu/jsview-vue-samples 2.1.25 → 2.1.200

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.
Files changed (62) hide show
  1. package/Basic/components/div/DivBackground.vue +53 -24
  2. package/BreakRender/App.vue +69 -0
  3. package/BreakRender/Item.vue +77 -0
  4. package/BreakRender/assets/imageList.json +237 -0
  5. package/BreakRender/data.js +18 -0
  6. package/ClassDynamicSwitching/App.vue +83 -0
  7. package/ClassDynamicSwitching/components/ClassItem.vue +257 -0
  8. package/ClassDynamicSwitching/components/ClassShow.vue +78 -0
  9. package/ClassDynamicSwitching/components/StyleItem.vue +165 -0
  10. package/ClassDynamicSwitching/components/StyleShow.vue +68 -0
  11. package/DemoHomepage/router.js +67 -13
  12. package/DemoHomepage/views/Homepage.vue +13 -2
  13. package/DynamicClass/App.vue +115 -0
  14. package/DynamicClass/components/FloorItem.vue +55 -0
  15. package/DynamicClass/components/FloorList.vue +210 -0
  16. package/DynamicClass/style1.json +163 -0
  17. package/DynamicClass/style2.json +164 -0
  18. package/FilterDemo/App.vue +1 -1
  19. package/FocusMoveStyle/App.vue +10 -2
  20. package/FreeMove/App.vue +291 -0
  21. package/GetBoundingClientRect/App.vue +177 -0
  22. package/GiftRain/App.vue +3 -3
  23. package/JsvLine/App.vue +116 -0
  24. package/JsvLine/bgimage.jpg +0 -0
  25. package/JsvPreDownloader/App.vue +17 -10
  26. package/LatexDemo/App.vue +66 -0
  27. package/LatexFormula/App.vue +65 -0
  28. package/Marquee/App.vue +711 -183
  29. package/MetroWidgetDemos/PingPong/App.vue +0 -9
  30. package/MetroWidgetDemos/PingPong/AppPage.vue +2 -1
  31. package/MetroWidgetDemos/PingPong/WidgetItem.vue +0 -5
  32. package/MetroWidgetDemos/SkeletonDiagram/App.vue +3 -1
  33. package/MetroWidgetDemos/SkeletonDiagram/Item.vue +5 -0
  34. package/MetroWidgetDemos/itemSizeUpdate/App.vue +11 -4
  35. package/MetroWidgetDemos/itemSizeUpdate/backward/Backward.vue +6 -4
  36. package/MetroWidgetDemos/itemSizeUpdate/backward/Item.vue +2 -25
  37. package/MetroWidgetDemos/itemSizeUpdate/center/Center.vue +6 -6
  38. package/MetroWidgetDemos/itemSizeUpdate/center/Item.vue +38 -49
  39. package/MetroWidgetDemos/itemSizeUpdate/stretch/App.vue +122 -0
  40. package/MetroWidgetDemos/itemSizeUpdate/stretch/Item.vue +105 -0
  41. package/MindMap/App.vue +61 -0
  42. package/MindMap/Item.vue +40 -0
  43. package/MindMap/data.js +86 -0
  44. package/Preload/App.vue +25 -18
  45. package/Preload/Item.vue +1 -1
  46. package/Preload/data.js +12 -12
  47. package/Preload/images/bg_btn.png +0 -0
  48. package/Preload/images/bg_btn_focus.png +0 -0
  49. package/Preload/images/btn_cancle.png +0 -0
  50. package/Preload/images/btn_ok.png +0 -0
  51. package/Preload/images/tease.png +0 -0
  52. package/Preload/images/tease_lock.png +0 -0
  53. package/SecTorTest/App.vue +106 -0
  54. package/TextureStoreTest/App.vue +168 -0
  55. package/VisibleSensorDemo/App.vue +38 -18
  56. package/package.json +1 -1
  57. package/Preload/images/rank.png +0 -0
  58. package/Preload/images/rank_focus.png +0 -0
  59. package/Preload/images/rule.png +0 -0
  60. package/Preload/images/rule_focus.png +0 -0
  61. package/Preload/images/start.png +0 -0
  62. package/Preload/images/start_focus.png +0 -0
package/Marquee/App.vue CHANGED
@@ -8,7 +8,7 @@
8
8
  <script setup>
9
9
  import { jJsvRuntimeBridge, JsvMarquee } from "jsview";
10
10
  import { useRouter } from "vue-router";
11
- import { onMounted } from "vue";
11
+ import { onMounted, shallowRef } from "vue";
12
12
  import { longLongText, rtlLongLongText } from "./longText";
13
13
 
14
14
  const slideSpeed = 240;
@@ -21,17 +21,32 @@ const style = {
21
21
  fontSize: 50,
22
22
  color: "#000000",
23
23
  };
24
+ const style2 = Object.assign({ textAlign: "center" }, style);
25
+ const style3 = Object.assign({ textAlign: "end" }, style);
24
26
  const longText =
25
27
  "石室诗士施氏,嗜狮,誓食十狮。施氏时时适市视狮。十时,适十狮适市。是时,适施氏适市。施氏视是十狮,恃矢势,使是十狮逝世。氏拾是十狮尸,适石室。石室湿,氏使侍拭石室。石室拭,施氏始试食是十狮尸。食时,始识是十狮尸,实十石狮尸。试释是事。";
26
28
  const shortText = "测试文字";
27
-
29
+ const littleLongText = "君不见,黄河之水天上来,奔流到海不复回。";
28
30
  const rtlText = 'ABC انجليزي "abc" سعر الملابس 180 ';
29
31
 
30
32
  const router = useRouter();
31
-
33
+ const index = shallowRef(1);
34
+ //响应式变化的文字
35
+ let changeText = shallowRef("响应式文字");
36
+ setInterval(() => {
37
+ if (changeText.value.length <= 20) {
38
+ changeText.value += changeText.value;
39
+ } else {
40
+ changeText.value = changeText.value.slice(0, 5);
41
+ }
42
+ }, 5000);
32
43
  const _onKeyDown = (ev) => {
33
44
  if (ev.keyCode == 8 || ev.keyCode == 27 || ev.keyCode == 10000) {
34
45
  router.go(-1); // 有router时,是从DemoHomepage进入,回退
46
+ } else if (ev.keyCode == 37) {
47
+ index.value = --index.value > 1 ? index.value : 1;
48
+ } else if (ev.keyCode == 39) {
49
+ index.value = ++index.value < 4 ? index.value : 4;
35
50
  }
36
51
  return true;
37
52
  };
@@ -46,250 +61,763 @@ onMounted(() => {
46
61
  onKeyDown: _onKeyDown,
47
62
  }"
48
63
  :style="{
49
- width: 1920,
50
- height: 1080,
64
+ width: 1280,
65
+ height: 720,
51
66
  backgroundColor: '#007788',
52
67
  }"
53
68
  >
54
- <div
55
- :style="{
56
- left: 50,
57
- top: 50,
58
- width: width,
59
- height: height,
60
- backgroundColor: '#FFFFFF',
61
- }"
62
- >
63
- <jsv-marquee
64
- :style="style"
65
- :text="longText"
66
- :slideSpeed="slideSpeed"
67
- :forceSlide="false"
68
- />
69
+ <div v-if="index == 1">
69
70
  <div
70
71
  :style="{
71
- left: width + 20,
72
+ left: 50,
73
+ top: 50,
74
+ width: width,
72
75
  height: height,
73
- color: '#ffffff',
74
- fontSize: 50,
75
- lineHeight: 50,
76
+ backgroundColor: '#FFFFFF',
76
77
  }"
77
78
  >
78
- 长文字滚动
79
+ <jsv-marquee
80
+ :style="style"
81
+ :text="longText"
82
+ :slideSpeed="slideSpeed"
83
+ :forceSlide="false"
84
+ />
85
+ <div
86
+ :style="{
87
+ left: width + 20,
88
+ height: height,
89
+ color: '#ffffff',
90
+ fontSize: 50,
91
+ lineHeight: 50,
92
+ }"
93
+ >
94
+ 长文字滚动
95
+ </div>
79
96
  </div>
80
- </div>
81
- <div
82
- :style="{
83
- left: 50,
84
- top: 130,
85
- width: width,
86
- height: height,
87
- backgroundColor: '#FFFFFF',
88
- }"
89
- >
90
- <jsv-marquee :style="style" :text="shortText" :forceSlide="false" />
91
97
  <div
92
98
  :style="{
93
- left: width + 20,
99
+ left: 50,
100
+ top: 130,
101
+ width: width,
94
102
  height: height,
95
- color: '#ffffff',
96
- fontSize: 50,
97
- lineHeight: 50,
103
+ backgroundColor: '#FFFFFF',
98
104
  }"
99
105
  >
100
- 短文字不滚动
106
+ <jsv-marquee
107
+ :style="style"
108
+ :text="littleLongText"
109
+ :forceSlide="false"
110
+ :slideSpeed="slideSpeed"
111
+ />
112
+ <div
113
+ :style="{
114
+ left: width + 20,
115
+ height: height,
116
+ color: '#ffffff',
117
+ fontSize: 50,
118
+ lineHeight: 50,
119
+ }"
120
+ >
121
+ 略长文字滚动
122
+ </div>
101
123
  </div>
102
- </div>
103
- <div
104
- :style="{
105
- left: 50,
106
- top: 210,
107
- width: width,
108
- height: height,
109
- backgroundColor: '#FFFFFF',
110
- }"
111
- >
112
- <jsv-marquee
113
- :style="style"
114
- :text="shortText"
115
- :slideSpeed="slideSpeed"
116
- :forceSlide="true"
117
- />
118
124
  <div
119
125
  :style="{
120
- left: width + 20,
126
+ left: 50,
127
+ top: 210,
128
+ width: width,
121
129
  height: height,
122
- color: '#ffffff',
123
- fontSize: 50,
124
- lineHeight: 50,
130
+ backgroundColor: '#FFFFFF',
125
131
  }"
126
132
  >
127
- 短文字滚动
133
+ <jsv-marquee
134
+ :style="style"
135
+ :text="shortText"
136
+ :slideSpeed="slideSpeed"
137
+ :forceSlide="true"
138
+ />
139
+ <div
140
+ :style="{
141
+ left: width + 20,
142
+ height: height,
143
+ color: '#ffffff',
144
+ fontSize: 50,
145
+ lineHeight: 50,
146
+ }"
147
+ >
148
+ 短文字滚动
149
+ </div>
128
150
  </div>
129
- </div>
130
- <div
131
- :style="{
132
- left: 50,
133
- top: 290,
134
- width: width,
135
- height: height,
136
- backgroundColor: '#FFFFFF',
137
- }"
138
- >
139
- <jsv-marquee
151
+ <div
140
152
  :style="{
141
- width,
142
- height,
143
- lineHeight: 70,
144
- fontSize: 50,
145
- color: '#000000',
146
- direction: 'rtl',
153
+ left: 50,
154
+ top: 290,
155
+ width: width,
156
+ height: height,
157
+ backgroundColor: '#FFFFFF',
147
158
  }"
148
- :text="rtlText"
149
- :slideSpeed="slideSpeed"
150
- />
159
+ >
160
+ <jsv-marquee
161
+ :style="{
162
+ width,
163
+ height,
164
+ lineHeight: 70,
165
+ fontSize: 50,
166
+ color: '#000000',
167
+ direction: 'rtl',
168
+ }"
169
+ :text="rtlText"
170
+ :slideSpeed="slideSpeed"
171
+ />
172
+ <div
173
+ :style="{
174
+ left: width + 20,
175
+ height: height,
176
+ color: '#ffffff',
177
+ fontSize: 50,
178
+ lineHeight: 50,
179
+ }"
180
+ >
181
+ rtl文字
182
+ </div>
183
+ </div>
151
184
  <div
152
185
  :style="{
153
- left: width + 20,
186
+ left: 50,
187
+ top: 370,
188
+ width: width,
154
189
  height: height,
155
- color: '#ffffff',
156
- fontSize: 50,
157
- lineHeight: 50,
190
+ backgroundColor: '#FFFFFF',
158
191
  }"
159
192
  >
160
- rtl文字
193
+ <jsv-marquee
194
+ :style="{
195
+ width,
196
+ height,
197
+ lineHeight: 70,
198
+ fontSize: 50,
199
+ color: '#000000',
200
+ direction: 'rtl',
201
+ }"
202
+ text="انجليزي"
203
+ :slideSpeed="slideSpeed"
204
+ :forceSlide="true"
205
+ />
206
+ <div
207
+ :style="{
208
+ left: width + 20,
209
+ height: height,
210
+ color: '#ffffff',
211
+ fontSize: 50,
212
+ lineHeight: 50,
213
+ }"
214
+ >
215
+ rtl短文字滚动
216
+ </div>
161
217
  </div>
162
- </div>
163
- <div
164
- :style="{
165
- left: 50,
166
- top: 370,
167
- width: width,
168
- height: height,
169
- backgroundColor: '#FFFFFF',
170
- }"
171
- >
172
- <jsv-marquee
218
+ <div
219
+ :style="{
220
+ left: 50,
221
+ top: 450,
222
+ width: width,
223
+ height: height,
224
+ backgroundColor: '#FFFFFF',
225
+ }"
226
+ >
227
+ <jsv-marquee
228
+ :style="style"
229
+ :text="longLongText"
230
+ :slideSpeed="2000"
231
+ :forceSlide="false"
232
+ />
233
+ <div
234
+ :style="{
235
+ left: width + 20,
236
+ height: height,
237
+ color: '#ffffff',
238
+ fontSize: 50,
239
+ lineHeight: 50,
240
+ }"
241
+ >
242
+ 超长文字
243
+ </div>
244
+ </div>
245
+ <div
173
246
  :style="{
174
- width,
175
- height,
176
- lineHeight: 70,
177
- fontSize: 50,
178
- color: '#000000',
179
- direction: 'rtl',
247
+ left: 50,
248
+ top: 530,
249
+ width: width,
250
+ height: height,
251
+ backgroundColor: '#FFFFFF',
180
252
  }"
181
- text="انجليزي"
182
- :slideSpeed="slideSpeed"
183
- :forceSlide="true"
184
- />
253
+ >
254
+ <jsv-marquee
255
+ :style="{
256
+ width,
257
+ height,
258
+ lineHeight: 70,
259
+ fontSize: 50,
260
+ color: '#000000',
261
+ direction: 'rtl',
262
+ }"
263
+ :text="rtlLongLongText"
264
+ :slideSpeed="2000"
265
+ :forceSlide="false"
266
+ />
267
+ <div
268
+ :style="{
269
+ left: width + 20,
270
+ height: height,
271
+ color: '#ffffff',
272
+ fontSize: 50,
273
+ lineHeight: 50,
274
+ }"
275
+ >
276
+ 超长rtl文字
277
+ </div>
278
+ </div>
185
279
  <div
186
280
  :style="{
187
- left: width + 20,
281
+ left: 50,
282
+ top: 610,
283
+ width: width,
188
284
  height: height,
189
- color: '#ffffff',
190
- fontSize: 50,
191
- lineHeight: 50,
285
+ backgroundColor: '#FFFFFF',
192
286
  }"
193
287
  >
194
- rtl短文字滚动
288
+ <jsv-marquee
289
+ :style="{
290
+ width,
291
+ height,
292
+ lineHeight: 70,
293
+ fontSize: 50,
294
+ color: '#000000',
295
+ }"
296
+ text="测试文字"
297
+ :forceSlide="true"
298
+ :slideSpeed="slideSpeed"
299
+ slideDirection="ets"
300
+ />
301
+ <div
302
+ :style="{
303
+ left: width + 20,
304
+ height: height,
305
+ color: '#ffffff',
306
+ fontSize: 50,
307
+ lineHeight: 50,
308
+ }"
309
+ >
310
+ 反向滚动示例
311
+ </div>
195
312
  </div>
196
313
  </div>
197
314
 
198
- <div
199
- :style="{
200
- left: 50,
201
- top: 450,
202
- width: width,
203
- height: height,
204
- backgroundColor: '#FFFFFF',
205
- }"
206
- >
207
- <jsv-marquee
208
- :style="style"
209
- :text="longLongText"
210
- :slideSpeed="2000"
211
- :forceSlide="false"
212
- />
315
+ <div v-if="index == 2">
316
+ <div
317
+ :style="{
318
+ left: 50,
319
+ top: 50,
320
+ width: width,
321
+ height: height,
322
+ backgroundColor: '#FFFFFF',
323
+ }"
324
+ >
325
+ <jsv-marquee :style="style" :text="shortText" :forceSlide="false" />
326
+ <div
327
+ :style="{
328
+ left: width + 20,
329
+ height: height,
330
+ color: '#ffffff',
331
+ fontSize: 50,
332
+ lineHeight: 50,
333
+ }"
334
+ >
335
+ 不滚动文字居左
336
+ </div>
337
+ </div>
338
+
339
+ <div
340
+ :style="{
341
+ left: 50,
342
+ top: 130,
343
+ width: width,
344
+ height: height,
345
+ backgroundColor: '#FFFFFF',
346
+ }"
347
+ >
348
+ <jsv-marquee
349
+ :style="style2"
350
+ text="测试文字"
351
+ :slideSpeed="slideSpeed"
352
+ :forceSlide="false"
353
+ />
354
+ <div
355
+ :style="{
356
+ left: width + 20,
357
+ height: height,
358
+ color: '#ffffff',
359
+ fontSize: 50,
360
+ lineHeight: 50,
361
+ }"
362
+ >
363
+ 不滚动文字居中
364
+ </div>
365
+ </div>
366
+ <div
367
+ :style="{
368
+ left: 50,
369
+ top: 210,
370
+ width: width,
371
+ height: height,
372
+ backgroundColor: '#FFFFFF',
373
+ }"
374
+ >
375
+ <jsv-marquee :style="style3" text="测试文字" :forceSlide="false" />
376
+ <div
377
+ :style="{
378
+ left: width + 20,
379
+ height: height,
380
+ color: '#ffffff',
381
+ fontSize: 50,
382
+ lineHeight: 50,
383
+ }"
384
+ >
385
+ 不滚动文字居右
386
+ </div>
387
+ </div>
388
+ <div
389
+ :style="{
390
+ left: 50,
391
+ top: 290,
392
+ width: width,
393
+ height: height,
394
+ backgroundColor: '#FFFFFF',
395
+ }"
396
+ >
397
+ <jsv-marquee
398
+ :style="style2"
399
+ text="انجليزي"
400
+ :slideSpeed="slideSpeed"
401
+ :forceSlide="false"
402
+ />
403
+ <div
404
+ :style="{
405
+ left: width + 20,
406
+ height: height,
407
+ color: '#ffffff',
408
+ fontSize: 50,
409
+ lineHeight: 50,
410
+ }"
411
+ >
412
+ rtl文字不滚动居中
413
+ </div>
414
+ </div>
213
415
  <div
214
416
  :style="{
215
- left: width + 20,
417
+ left: 50,
418
+ top: 370,
419
+ width: width,
216
420
  height: height,
217
- color: '#ffffff',
218
- fontSize: 50,
219
- lineHeight: 50,
421
+ backgroundColor: '#FFFFFF',
220
422
  }"
221
423
  >
222
- 超长文字
424
+ <jsv-marquee
425
+ :style="style3"
426
+ text="انجليزي"
427
+ :slideSpeed="slideSpeed"
428
+ :forceSlide="false"
429
+ />
430
+ <div
431
+ :style="{
432
+ left: width + 20,
433
+ height: height,
434
+ color: '#ffffff',
435
+ fontSize: 50,
436
+ lineHeight: 50,
437
+ }"
438
+ >
439
+ rtl文字不滚动居左
440
+ </div>
441
+ </div>
442
+ <div
443
+ :style="{
444
+ left: 50,
445
+ top: 450,
446
+ width: width,
447
+ height: height,
448
+ backgroundColor: '#FFFFFF',
449
+ }"
450
+ >
451
+ <jsv-marquee
452
+ :style="style"
453
+ text="انجليزي"
454
+ :slideSpeed="slideSpeed"
455
+ :forceSlide="false"
456
+ />
457
+ <div
458
+ :style="{
459
+ left: width + 20,
460
+ height: height,
461
+ color: '#ffffff',
462
+ fontSize: 50,
463
+ lineHeight: 50,
464
+ }"
465
+ >
466
+ rtl文字不滚动居右
467
+ </div>
223
468
  </div>
224
469
  </div>
225
470
 
226
- <div
227
- :style="{
228
- left: 50,
229
- top: 530,
230
- width: width,
231
- height: height,
232
- backgroundColor: '#FFFFFF',
233
- }"
234
- >
235
- <jsv-marquee
471
+ <div v-else-if="index == 3">
472
+ <div
236
473
  :style="{
237
- width,
238
- height,
239
- lineHeight: 70,
240
- fontSize: 50,
241
- color: '#000000',
242
- direction: 'rtl',
474
+ left: 50,
475
+ top: 50,
476
+ width: width,
477
+ height: height,
478
+ backgroundColor: '#FFFFFF',
243
479
  }"
244
- :text="rtlLongLongText"
245
- :slideSpeed="2000"
246
- :forceSlide="false"
247
- />
480
+ >
481
+ <jsv-marquee
482
+ :style="style"
483
+ :text="longText"
484
+ :slideSpeed="slideSpeed"
485
+ :forceSlide="false"
486
+ :textGap="300"
487
+ />
488
+ <div
489
+ :style="{
490
+ left: width + 20,
491
+ height: height,
492
+ color: '#ffffff',
493
+ fontSize: 50,
494
+ lineHeight: 50,
495
+ }"
496
+ >
497
+ 长文字滚动间隔300
498
+ </div>
499
+ </div>
248
500
  <div
249
501
  :style="{
250
- left: width + 20,
502
+ left: 50,
503
+ top: 130,
504
+ width: width,
251
505
  height: height,
252
- color: '#ffffff',
253
- fontSize: 50,
254
- lineHeight: 50,
506
+ backgroundColor: '#FFFFFF',
255
507
  }"
256
508
  >
257
- 超长rtl文字
509
+ <jsv-marquee
510
+ :style="style"
511
+ :text="littleLongText"
512
+ :forceSlide="false"
513
+ :textGap="300"
514
+ :slideSpeed="slideSpeed"
515
+ />
516
+ <div
517
+ :style="{
518
+ left: width + 20,
519
+ height: height,
520
+ color: '#ffffff',
521
+ fontSize: 50,
522
+ lineHeight: 50,
523
+ }"
524
+ >
525
+ 略长文字滚动间隔300
526
+ </div>
527
+ </div>
528
+ <div
529
+ :style="{
530
+ left: 50,
531
+ top: 210,
532
+ width: width,
533
+ height: height,
534
+ backgroundColor: '#FFFFFF',
535
+ }"
536
+ >
537
+ <jsv-marquee
538
+ :style="style"
539
+ :text="shortText"
540
+ :slideSpeed="slideSpeed"
541
+ :forceSlide="true"
542
+ :textGap="width - 100"
543
+ />
544
+ <div
545
+ :style="{
546
+ left: width + 20,
547
+ height: height,
548
+ color: '#ffffff',
549
+ fontSize: 50,
550
+ lineHeight: 50,
551
+ }"
552
+ >
553
+ 短文字滚动间隔500
554
+ </div>
555
+ </div>
556
+ <div
557
+ :style="{
558
+ left: 50,
559
+ top: 290,
560
+ width: width,
561
+ height: height,
562
+ backgroundColor: '#FFFFFF',
563
+ }"
564
+ >
565
+ <jsv-marquee
566
+ :style="{
567
+ width,
568
+ height,
569
+ lineHeight: 70,
570
+ fontSize: 50,
571
+ color: '#000000',
572
+ direction: 'rtl',
573
+ }"
574
+ :text="rtlText"
575
+ :slideSpeed="slideSpeed"
576
+ :textGap="300"
577
+ />
578
+ <div
579
+ :style="{
580
+ left: width + 20,
581
+ height: height,
582
+ color: '#ffffff',
583
+ fontSize: 50,
584
+ lineHeight: 50,
585
+ }"
586
+ >
587
+ rtl文字间隔300
588
+ </div>
589
+ </div>
590
+ <div
591
+ :style="{
592
+ left: 50,
593
+ top: 370,
594
+ width: width,
595
+ height: height,
596
+ backgroundColor: '#FFFFFF',
597
+ }"
598
+ >
599
+ <jsv-marquee
600
+ :style="{
601
+ width,
602
+ height,
603
+ lineHeight: 70,
604
+ fontSize: 50,
605
+ color: '#000000',
606
+ direction: 'rtl',
607
+ }"
608
+ text="انجليزي"
609
+ :slideSpeed="slideSpeed"
610
+ :forceSlide="true"
611
+ :textGap="width - 100"
612
+ />
613
+ <div
614
+ :style="{
615
+ left: width + 20,
616
+ height: height,
617
+ color: '#ffffff',
618
+ fontSize: 50,
619
+ lineHeight: 50,
620
+ }"
621
+ >
622
+ rtl短文字滚动间隔500
623
+ </div>
624
+ </div>
625
+ <div
626
+ :style="{
627
+ left: 50,
628
+ top: 450,
629
+ width: width,
630
+ height: height,
631
+ backgroundColor: '#FFFFFF',
632
+ }"
633
+ >
634
+ <jsv-marquee
635
+ :style="style"
636
+ :text="longLongText"
637
+ :slideSpeed="2000"
638
+ :forceSlide="false"
639
+ :textGap="300"
640
+ />
641
+ <div
642
+ :style="{
643
+ left: width + 20,
644
+ height: height,
645
+ color: '#ffffff',
646
+ fontSize: 50,
647
+ lineHeight: 50,
648
+ }"
649
+ >
650
+ 超长文字间隔300
651
+ </div>
652
+ </div>
653
+ <div
654
+ :style="{
655
+ left: 50,
656
+ top: 530,
657
+ width: width,
658
+ height: height,
659
+ backgroundColor: '#FFFFFF',
660
+ }"
661
+ >
662
+ <jsv-marquee
663
+ :style="{
664
+ width,
665
+ height,
666
+ lineHeight: 70,
667
+ fontSize: 50,
668
+ color: '#000000',
669
+ direction: 'rtl',
670
+ }"
671
+ :text="rtlLongLongText"
672
+ :slideSpeed="2000"
673
+ :forceSlide="false"
674
+ :textGap="300"
675
+ />
676
+ <div
677
+ :style="{
678
+ left: width + 20,
679
+ height: height,
680
+ color: '#ffffff',
681
+ fontSize: 50,
682
+ lineHeight: 50,
683
+ }"
684
+ >
685
+ 超长rtl文字间隔300
686
+ </div>
687
+ </div>
688
+ <div
689
+ :style="{
690
+ left: 50,
691
+ top: 610,
692
+ width: width,
693
+ height: height,
694
+ backgroundColor: '#FFFFFF',
695
+ }"
696
+ >
697
+ <jsv-marquee
698
+ :style="{
699
+ width,
700
+ height,
701
+ lineHeight: 70,
702
+ fontSize: 50,
703
+ color: '#000000',
704
+ }"
705
+ text="测试文字"
706
+ :forceSlide="true"
707
+ :slideSpeed="slideSpeed"
708
+ slideDirection="ets"
709
+ :textGap="width - 100"
710
+ />
711
+ <div
712
+ :style="{
713
+ left: width + 20,
714
+ height: height,
715
+ color: '#ffffff',
716
+ fontSize: 50,
717
+ lineHeight: 50,
718
+ }"
719
+ >
720
+ 反向滚动示例间隔500
721
+ </div>
258
722
  </div>
259
723
  </div>
260
- <div
261
- :style="{
262
- left: 50,
263
- top: 610,
264
- width: width,
265
- height: height,
266
- backgroundColor: '#FFFFFF',
267
- }"
268
- >
269
- <jsv-marquee
724
+ <div v-else-if="index == 4">
725
+ <div
270
726
  :style="{
271
- width,
272
- height,
273
- lineHeight: 70,
274
- fontSize: 50,
275
- color: '#000000',
727
+ left: 50,
728
+ top: 50,
729
+ width: width,
730
+ height: height,
731
+ backgroundColor: '#FFFFFF',
276
732
  }"
277
- text="测试文字"
278
- :forceSlide="true"
279
- :slideSpeed="slideSpeed"
280
- slideDirection="ets"
281
- />
733
+ >
734
+ <jsv-marquee
735
+ :style="style"
736
+ text="انجليزي"
737
+ :slideSpeed="slideSpeed"
738
+ :forceSlide="true"
739
+ slideDirection="ets"
740
+ />
741
+ <div
742
+ :style="{
743
+ left: width + 20,
744
+ height: height,
745
+ color: '#ffffff',
746
+ fontSize: 50,
747
+ lineHeight: 50,
748
+ }"
749
+ >
750
+ rtl短文字反向
751
+ </div>
752
+ </div>
282
753
  <div
283
754
  :style="{
284
- left: width + 20,
755
+ left: 50,
756
+ top: 130,
757
+ width: width,
285
758
  height: height,
286
- color: '#ffffff',
287
- fontSize: 50,
288
- lineHeight: 50,
759
+ backgroundColor: '#FFFFFF',
289
760
  }"
290
761
  >
291
- 反向滚动示例
762
+ <jsv-marquee
763
+ :style="style"
764
+ :text="shortText"
765
+ :slideSpeed="slideSpeed"
766
+ :forceSlide="true"
767
+ :textGap="200"
768
+ />
769
+ <div
770
+ :style="{
771
+ left: width + 20,
772
+ height: height,
773
+ color: '#ffffff',
774
+ fontSize: 50,
775
+ lineHeight: 50,
776
+ }"
777
+ >
778
+ 短文字滚动失败
779
+ </div>
292
780
  </div>
781
+ <div
782
+ :style="{
783
+ left: 50,
784
+ top: 210,
785
+ width: width,
786
+ height: height,
787
+ backgroundColor: '#FFFFFF'
788
+ }"
789
+ >
790
+ <jsv-marquee
791
+ :style="style"
792
+ :text="changeText"
793
+ :slideSpeed="slideSpeed"
794
+ :forceSlide="false"
795
+ />
796
+ <div
797
+ :style="{
798
+ left: width + 20,
799
+ height: height,
800
+ color: '#ffffff',
801
+ fontSize: 50,
802
+ lineHeight: 50,
803
+ }"
804
+ >
805
+ 每五秒文字响应式变化
806
+ </div>
807
+ </div>
808
+ </div>
809
+ <div
810
+ :style="{
811
+ left: 1000,
812
+ top: 680,
813
+ width: 300,
814
+ height: 30,
815
+ lineHeight: 28,
816
+ fontSize: 30,
817
+ color: '#000000',
818
+ }"
819
+ >
820
+ {{ "左右键翻页 " + `${index}/4` }}
293
821
  </div>
294
822
  </jsv-focus-block>
295
823
  </template>