Commit 54426673 authored by Li Mingzhe's avatar Li Mingzhe

fix: upload anima refresh

parent 96fb6ab7
...@@ -25,6 +25,9 @@ export class UploadDragonBoneComponent implements OnDestroy, OnChanges { ...@@ -25,6 +25,9 @@ export class UploadDragonBoneComponent implements OnDestroy, OnChanges {
@Output() @Output()
save = new EventEmitter(); save = new EventEmitter();
@Output()
refreshEmitter = new EventEmitter();
// @Input() // @Input()
// picUrl; // picUrl;
// @Input() // @Input()
...@@ -157,9 +160,11 @@ export class UploadDragonBoneComponent implements OnDestroy, OnChanges { ...@@ -157,9 +160,11 @@ export class UploadDragonBoneComponent implements OnDestroy, OnChanges {
* 刷新 渲染页面 * 刷新 渲染页面
*/ */
refresh() { refresh() {
setTimeout(() => {
this.appRef.tick(); this.refreshEmitter.emit();
}, 1); // setTimeout(() => {
// this.appRef.tick();
// }, 1);
} }
......
...@@ -65,6 +65,7 @@ ...@@ -65,6 +65,7 @@
[texJsonData]=group.texJsonData [texJsonData]=group.texJsonData
[texPngData]=group.texPngData [texPngData]=group.texPngData
(save)="saveAnima($event, group)" (save)="saveAnima($event, group)"
(refreshEmitter)="refresh()"
> >
</app-upload-dragon-bone> </app-upload-dragon-bone>
......
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