zengh
2022-09-14 8ea19a6bb34daab1410f6186992a4c1e90299c92
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<template>
    <!-- 这个模板用来渲染原生video -->
  <!--增加video标签支持,并循环添加-->
  <view style="max-width: 100%;">
    <video
    :autoplay="playState" 
    :class="node.classStr" 
    :style="node.styleStr" 
    class="video-video"
    v-if="playState"
    :src="node.attr.src"></video>
  </view>
</template>
 
<script>
export default {
  name: 'wxParseVideo',
  props: {
    node: {},
  }
};
</script>
<style>
    .video-video{z-index: 1;}
</style>