You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

wxParseAudio.vue 620 B

2 years ago
12345678910111213141516171819202122232425262728
  1. <template>
  2. <!-- '<audio/>' 组件不再维护,建议使用能力更强的 'uni.createInnerAudioContext' 接口 有时间再改-->
  3. <!--增加audio标签支持-->
  4. <audio
  5. :id="node.attr.id"
  6. :class="node.classStr"
  7. :style="node.styleStr"
  8. :src="node.attr.src"
  9. :loop="node.attr.loop"
  10. :poster="node.attr.poster"
  11. :name="node.attr.name"
  12. :author="node.attr.author"
  13. controls></audio>
  14. </template>
  15. <script>
  16. export default {
  17. name: 'wxParseAudio',
  18. props: {
  19. node: {
  20. type: Object,
  21. default() {
  22. return {};
  23. },
  24. },
  25. },
  26. };
  27. </script>