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