|
@@ -22,9 +22,14 @@
|
|
|
{{ item.content }}
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
- <el-input v-model="item.content" :class="[item.direction === 'row' ? 'is_left' : 'is_right']" /><span
|
|
|
- >。</span
|
|
|
- >
|
|
|
+ <div v-for="(li, j) in item.content" :key="j">
|
|
|
+ <template v-if="li.type === 'input'">
|
|
|
+ <el-input v-model="li.content" :class="[item.direction === 'row' ? 'is_left' : 'is_right']" />
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ {{ li.content }}
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
</div>
|
|
|
<SoundRecordPreview v-if="item.type === 'input'" :wav-blob.sync="item.audio_file_id" type="small" />
|
|
@@ -52,12 +57,12 @@ export default {
|
|
|
handler(val) {
|
|
|
if (!val) return;
|
|
|
this.answer.answer_list = val
|
|
|
- .map(({ type, mark, content, audio_file_id }) => {
|
|
|
+ .map(({ type, content, audio_file_id }) => {
|
|
|
if (type === 'text') return;
|
|
|
+
|
|
|
return {
|
|
|
- content,
|
|
|
+ content: content.filter((item) => item.type === 'input'),
|
|
|
audio_file_id,
|
|
|
- mark,
|
|
|
};
|
|
|
})
|
|
|
.filter((item) => item);
|
|
@@ -95,7 +100,9 @@ export default {
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
width: 40px;
|
|
|
+ min-width: 40px;
|
|
|
height: 40px;
|
|
|
+ min-height: 40px;
|
|
|
font-size: 12px;
|
|
|
font-weight: bold;
|
|
|
color: #fff;
|
|
@@ -104,6 +111,7 @@ export default {
|
|
|
|
|
|
.content {
|
|
|
display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
align-items: flex-end;
|
|
|
padding: 8px 16px;
|
|
|
color: #000;
|