Joe
10 months ago
11 changed files with 154 additions and 35 deletions
@ -1,37 +1,40 @@ |
|||
<template> |
|||
<Card class='RealTimeVideo' title="实时视频"> |
|||
<Video class="item-video" /> |
|||
<Video class="item-video" /> |
|||
</Card> |
|||
<Card class='RealTimeVideo' title="实时视频"> |
|||
<Video class="item-video" :pileNum="detailData.stakeMark" /> |
|||
<!-- <Video class="item-video" /> --> |
|||
</Card> |
|||
</template> |
|||
|
|||
<script> |
|||
import Card from "@screen/components/Card2/Card.vue";; |
|||
import Video from "@screen/components/Video" |
|||
import { provideMixin } from "./../../mixin" |
|||
|
|||
export default { |
|||
name: 'RealTimeVideo', |
|||
components: { |
|||
Card, |
|||
Video |
|||
} |
|||
name: 'RealTimeVideo', |
|||
mixins: [provideMixin], |
|||
components: { |
|||
Card, |
|||
Video |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style lang='scss' scoped> |
|||
.RealTimeVideo { |
|||
::v-deep { |
|||
.content { |
|||
display: flex; |
|||
align-items: center; |
|||
justify-content: space-between; |
|||
gap: 9px; |
|||
} |
|||
} |
|||
::v-deep { |
|||
.content { |
|||
display: flex; |
|||
align-items: center; |
|||
justify-content: space-between; |
|||
gap: 9px; |
|||
} |
|||
} |
|||
|
|||
.item-video { |
|||
flex: 1; |
|||
width: calc(50% - 4.5px); |
|||
height: 100%; |
|||
} |
|||
.item-video { |
|||
flex: 1; |
|||
width: calc(50% - 4.5px); |
|||
height: 100%; |
|||
} |
|||
} |
|||
</style> |
|||
|
@ -0,0 +1,19 @@ |
|||
export const provideMixin = { |
|||
inject: ["provideData"], |
|||
data() { |
|||
return { |
|||
detailData: {}, |
|||
}; |
|||
}, |
|||
watch: { |
|||
"provideData.detail": { |
|||
handler(data) { |
|||
if (!data) return; |
|||
|
|||
this.detailData = data; |
|||
this.detailChange?.(data); |
|||
}, |
|||
immediate: true, |
|||
}, |
|||
}, |
|||
}; |
Loading…
Reference in new issue