Audio.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <ModuleBase :type="data.type">
  3. <template #content>
  4. <span>音频</span>
  5. <el-upload action="none">
  6. <el-button slot="trigger" size="small" type="primary">选取文件</el-button>
  7. <el-button size="small" type="primary">上传</el-button>
  8. <el-divider />
  9. <div slot="tip" class="el-upload__tip">
  10. 支持上传mp3、acc、wma,等格式音频文件,单个文件最大100MB,总文件体积不超1G。
  11. </div>
  12. </el-upload>
  13. </template>
  14. </ModuleBase>
  15. </template>
  16. <script>
  17. import { getAudioData } from '@/views/book/courseware/data/audio';
  18. import ModuleMixin from '../../common/ModuleMixin';
  19. export default {
  20. name: 'AudioPage',
  21. components: {},
  22. mixins: [ModuleMixin],
  23. data() {
  24. return {
  25. data: getAudioData(),
  26. };
  27. },
  28. computed: {
  29. settingStyle() {
  30. return {
  31. margin: `${this.data.setting.height / 2}px 0`,
  32. border: 'none',
  33. borderTop: `1px ${this.data.setting.type} #ebebeb`,
  34. };
  35. },
  36. },
  37. methods: {},
  38. };
  39. </script>
  40. <style lang="scss" scoped></style>