zengh
2022-05-09 52c39f5e2711e5535b689b66dfa5e100c7882b7f
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>