Ver código fonte

Merge branch 'refs/heads/dev-2.19.0' into dev

Lita-Tako 4 meses atrás
pai
commit
f5fd23b975
1 arquivos alterados com 30 adições e 4 exclusões
  1. 30 4
      src/components/video/Live.vue

+ 30 - 4
src/components/video/Live.vue

@@ -430,12 +430,38 @@
430 430
 						</div>
431 431
 					</div>
432 432
 					<div class="row">
433
-						<a-button type="primary" class="mr-5 btn" @click="doControl1('FOCUS_NEAR')"> + 聚焦 </a-button>
434
-						<a-button type="primary" class="btn" @click="doControl1('FOCUS_FAR')">- 聚焦</a-button>
433
+						<a-button
434
+							type="primary"
435
+							class="mr-5 btn"
436
+							@mousedown="doControl('FOCUS_NEAR', 0)"
437
+							@mouseup="doControl('FOCUS_NEAR', 1)"
438
+						>
439
+							+ 聚焦
440
+						</a-button>
441
+						<a-button
442
+							type="primary"
443
+							class="btn"
444
+							@mousedown="doControl('FOCUS_FAR', 0)"
445
+							@mouseup="doControl('FOCUS_FAR', 1)"
446
+							>- 聚焦</a-button
447
+						>
435 448
 					</div>
436 449
 					<div class="row">
437
-						<a-button type="primary" class="mr-5 btn" @click="doControl1('ZOOM_IN')"> + 调焦 </a-button>
438
-						<a-button type="primary" class="btn" @click="doControl1('ZOOM_OUT')">- 调焦</a-button>
450
+						<a-button
451
+							type="primary"
452
+							class="mr-5 btn"
453
+							@mousedown="doControl('ZOOM_IN', 0)"
454
+							@mouseup="doControl('ZOOM_IN', 1)"
455
+						>
456
+							+ 调焦
457
+						</a-button>
458
+						<a-button
459
+							type="primary"
460
+							class="btn"
461
+							@mousedown="doControl('ZOOM_OUT', 0)"
462
+							@mouseup="doControl('ZOOM_OUT', 1)"
463
+							>- 调焦</a-button
464
+						>
439 465
 					</div>
440 466
 					<!--					<div class="row">-->
441 467
 					<!--						<a-button type="primary" class="mr-5 btn"> 录像开始 </a-button>-->