视频回放
This commit is contained in:
@@ -16,10 +16,8 @@
|
||||
class="videoBox"
|
||||
v-for="(m, i) in monitors"
|
||||
:key="m.id"
|
||||
@mouseenter.stop="m.isShowPlayBtn = true"
|
||||
@mouseleave.stop="m.isShowPlayBtn = false"
|
||||
:style="currentSplitStyle">
|
||||
<AiMonitor :src="m.url" type="slw" :name="m.name" @close="removeMonitor(i)"></AiMonitor>
|
||||
<AiMonitor :src="m.url" type="slw" :name="m.name" @close="removeMonitor(i)" ref="AiMonitor"></AiMonitor>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -116,6 +114,12 @@ export default {
|
||||
if (e === 1 && this.monitors.length) {
|
||||
this.monitors = [this.monitors[0]]
|
||||
}
|
||||
|
||||
console.log(this.$refs.AiMonitor)
|
||||
|
||||
this.$refs.AiMonitor.forEach(e => {
|
||||
e.reset()
|
||||
})
|
||||
},
|
||||
|
||||
removeMonitor(i) {
|
||||
@@ -217,7 +221,7 @@ export default {
|
||||
height: 100%;
|
||||
|
||||
.monitorPane {
|
||||
color: #fff;
|
||||
// color: #fff;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
padding: 20px 20px 20px 4px;
|
||||
|
||||
Reference in New Issue
Block a user