Commit 4236af29 authored by tttal's avatar tttal

测试龙骨动画上传

parent d83d5584
......@@ -31,7 +31,11 @@
<span>正确的选项(将随机排列左右): </span>
<input type="text" nz-input [(ngModel)]="item.text2" (blur)="save()">
</div>
<app-upload-dragon-bone [btnName]="[['配置骨骼动画']]" [animaNames]="[[['normal']]]"
[skeJsonData]=option.optionDragonBone.skeJsonData [texJsonData]=option.optionDragonBone.texJsonData
[texPngData]=option.optionDragonBone.texPngData (save)="saveAnima($event, option.optionDragonBone)"
(refreshEmitter)="refresh()">
</app-upload-dragon-bone>
<div style="margin-top: 5px">
<span>音频: </span>
<app-audio-recorder [audioUrl]="item.audio_url" (audioUploaded)="onAudioUploadSuccess($event, 'audio_url')">
......
......@@ -17,7 +17,12 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
constructor(private appRef: ApplicationRef, private changeDetectorRef: ChangeDetectorRef) {
}
saveAnima(event, group) {
group.skeJsonData = event.skeJsonData;
group.texJsonData = event.texJsonData;
group.texPngData = event.texPngData;
this.save();
}
createShell() {
this.item.wordList.push({
word: '',
......
......@@ -90,7 +90,7 @@
"__id__": 14
}
],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 68
......@@ -189,7 +189,7 @@
"array": [
0,
0,
517.9642880229961,
510.0889628290344,
0,
0,
0,
......
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