|
@@ -34,6 +34,7 @@
|
|
|
:key="item.audio_file_id || i"
|
|
|
:file-id="item.audio_file_id"
|
|
|
:item-index="i"
|
|
|
+ :show-upload="!item.audio_file_id"
|
|
|
@upload="uploads"
|
|
|
@deleteFile="deleteFiles"
|
|
|
/>
|
|
@@ -49,7 +50,7 @@
|
|
|
@deleteWav="deleteWav"
|
|
|
@updateWav="updateWav"
|
|
|
/>
|
|
|
- <el-input v-model="item.definition" placeholder="输入释义" />
|
|
|
+ <el-input v-if="data.property.learn_type !== 'learn'" v-model="item.definition" placeholder="输入释义" />
|
|
|
<SvgIcon icon-class="delete" class="delete pointer" @click="deleteOption(i, item.audio_file_id)" />
|
|
|
</li>
|
|
|
</ul>
|
|
@@ -195,4 +196,65 @@ export default {
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
-<style lang="scss" scoped></style>
|
|
|
+<style lang="scss" scoped>
|
|
|
+.content {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+
|
|
|
+ .content-item {
|
|
|
+ .upload-wrapper {
|
|
|
+ margin-top: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ :deep .file-name {
|
|
|
+ width: 205px;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ white-space: nowrap;
|
|
|
+ }
|
|
|
+
|
|
|
+ .auto-matically {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ width: 233px;
|
|
|
+ padding: 5px 12px;
|
|
|
+ background-color: $fill-color;
|
|
|
+ border-radius: 2px;
|
|
|
+
|
|
|
+ .audio-wrapper {
|
|
|
+ margin-right: 12px;
|
|
|
+
|
|
|
+ :deep .audio-play {
|
|
|
+ width: 16px;
|
|
|
+ height: 16px;
|
|
|
+ color: #000;
|
|
|
+ background-color: initial;
|
|
|
+ }
|
|
|
+
|
|
|
+ :deep .audio-play.not-url {
|
|
|
+ color: #a1a1a1;
|
|
|
+ }
|
|
|
+
|
|
|
+ :deep .voice-play {
|
|
|
+ width: 16px;
|
|
|
+ height: 16px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .auto-btn {
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: 400;
|
|
|
+ line-height: 22px;
|
|
|
+ color: #1d2129;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .delete {
|
|
|
+ flex-shrink: 0;
|
|
|
+ width: 16px;
|
|
|
+ height: 16px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|