Commit 8b95bbdd authored by Li MingZhe's avatar Li MingZhe

feat: 新增动画图片类型 背景乐

parent 668fb054
......@@ -35,7 +35,8 @@
<ng-template #truthyTemplate >
<div class="btn-delete" (click)="onBtnDeleteAudio()">
<fa-icon icon="close"></fa-icon>
<!-- <fa-icon icon="close"></fa-icon> -->
<i nz-icon nzType="close" nzTheme="outline"></i>
</div>
</ng-template>
......
......@@ -26,7 +26,7 @@ export class AudioRecorderComponent implements OnInit, OnChanges, OnDestroy {
uploadData;
@Input()
needRemove = false;
needRemove = true;
@Input()
audioItem: any = null;
......@@ -157,6 +157,7 @@ export class AudioRecorderComponent implements OnInit, OnChanges, OnDestroy {
onBtnDeleteAudio() {
this.audioUrl = null;
this.audioUploaded.emit({});
this.audioRemoved.emit();
}
......
......@@ -22,6 +22,16 @@
</div>
<div style="display: flex; align-items: center; margin-top: 20px;">
<h4> 背景乐添加: </h4>
<app-audio-recorder
style="margin-left: 20px"
[audioUrl]="item.bg_audio_url"
(audioUploaded)="onAudioUploadSuccess($event, 'bg_audio_url', item)">
</app-audio-recorder>
</div>
<div style="margin-top: 30px;">
......
......@@ -39,11 +39,17 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
text: true,
audio: true,
},
// {
// name: '动画',
// rect: true,
// anima: true
// }
{
name: '图片',
pic: true,
audio: true,
},
{
name: '动画',
rect: true,
anima: true,
audio: true,
}
]
constructor(private appRef: ApplicationRef,private changeDetectorRef: ChangeDetectorRef, private message: NzMessageService) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment