mirror of
https://github.com/lingble/chatwoot.git
synced 2025-10-31 19:17:48 +00:00
38 lines
614 B
Vue
38 lines
614 B
Vue
<template>
|
|
<div class="video message-text__wrap">
|
|
<video :src="url" muted playsInline @click="onClick" />
|
|
<woot-modal :show.sync="show" :on-close="onClose">
|
|
<video
|
|
:src="url"
|
|
controls
|
|
playsInline
|
|
class="modal-video skip-context-menu"
|
|
/>
|
|
</woot-modal>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: {
|
|
url: {
|
|
type: String,
|
|
required: true,
|
|
},
|
|
},
|
|
data() {
|
|
return {
|
|
show: false,
|
|
};
|
|
},
|
|
methods: {
|
|
onClose() {
|
|
this.show = false;
|
|
},
|
|
onClick() {
|
|
this.show = true;
|
|
},
|
|
},
|
|
};
|
|
</script>
|