lsc 2 лет назад
Родитель
Сommit
e31669c551
2 измененных файлов с 513 добавлено и 338 удалено
  1. 507 333
      src/components/a.json
  2. 6 5
      src/components/components/audio.vue

Разница между файлами не показана из-за своего большого размера
+ 507 - 333
src/components/a.json


+ 6 - 5
src/components/components/audio.vue

@@ -1,10 +1,11 @@
 <template>
   <div>
     <div>
-      <el-button type="primary" @click="startRecorder()">{{
-      !isRecord ? "开始录音" : "结束录音"
-      }}</el-button>
-      <el-button type="primary" @click="playRecorder()">{{
+      <el-button type="primary" :style="{ 'background': isRecord ? '#ee5255' : '', 'borderColor': isRecord ? '#ee5255' : '' }"
+        @click="startRecorder()">{{
+        !isRecord ? "开始录音" : "结束录音"
+        }}</el-button>
+      <el-button type="primary" :style="{ 'background': isPlayerRecord ? '#ee5255' : '', 'borderColor': isPlayerRecord ? '#ee5255' : '' }" @click="playRecorder()">{{
       !isPlayerRecord ? "录音播放" : "停止播放"
       }}</el-button>
       <el-button type="primary" @click="getMp3Data()">上传录音</el-button>
@@ -206,7 +207,7 @@ export default {
       }
     },
     addPz(audio) {
-      this.$emit("addPz", '2',audio);
+      this.$emit("addPz", '2', audio);
     },
   },
   mounted() { },

Некоторые файлы не были показаны из-за большого количества измененных файлов