11 changed files with 154 additions and 35 deletions
@ -1,37 +1,40 @@ |
|||||
<template> |
<template> |
||||
<Card class='RealTimeVideo' title="实时视频"> |
<Card class='RealTimeVideo' title="实时视频"> |
||||
<Video class="item-video" /> |
<Video class="item-video" :pileNum="detailData.stakeMark" /> |
||||
<Video class="item-video" /> |
<!-- <Video class="item-video" /> --> |
||||
</Card> |
</Card> |
||||
</template> |
</template> |
||||
|
|
||||
<script> |
<script> |
||||
import Card from "@screen/components/Card2/Card.vue";; |
import Card from "@screen/components/Card2/Card.vue";; |
||||
import Video from "@screen/components/Video" |
import Video from "@screen/components/Video" |
||||
|
import { provideMixin } from "./../../mixin" |
||||
|
|
||||
export default { |
export default { |
||||
name: 'RealTimeVideo', |
name: 'RealTimeVideo', |
||||
components: { |
mixins: [provideMixin], |
||||
Card, |
components: { |
||||
Video |
Card, |
||||
} |
Video |
||||
|
} |
||||
} |
} |
||||
</script> |
</script> |
||||
|
|
||||
<style lang='scss' scoped> |
<style lang='scss' scoped> |
||||
.RealTimeVideo { |
.RealTimeVideo { |
||||
::v-deep { |
::v-deep { |
||||
.content { |
.content { |
||||
display: flex; |
display: flex; |
||||
align-items: center; |
align-items: center; |
||||
justify-content: space-between; |
justify-content: space-between; |
||||
gap: 9px; |
gap: 9px; |
||||
} |
} |
||||
} |
} |
||||
|
|
||||
.item-video { |
.item-video { |
||||
flex: 1; |
flex: 1; |
||||
width: calc(50% - 4.5px); |
width: calc(50% - 4.5px); |
||||
height: 100%; |
height: 100%; |
||||
} |
} |
||||
} |
} |
||||
</style> |
</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