Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cc_mz_007
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
cc_mz_007
Commits
51ba960d
Commit
51ba960d
authored
Sep 22, 2020
by
Li Mingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 渲染
parent
b2f97aae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
custom-hot-zone.component.ts
...c/app/common/custom-hot-zone/custom-hot-zone.component.ts
+9
-1
upload-dragon-bone.component.ts
...common/upload-dragon-bone/upload-dragon-bone.component.ts
+2
-0
No files found.
form/src/app/common/custom-hot-zone/custom-hot-zone.component.ts
View file @
51ba960d
import
{
import
{
ApplicationRef
,
ApplicationRef
,
ChangeDetectorRef
,
Component
,
Component
,
ElementRef
,
ElementRef
,
EventEmitter
,
EventEmitter
,
...
@@ -114,9 +115,10 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
...
@@ -114,9 +115,10 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
isTexJsonLoading
=
false
;
isTexJsonLoading
=
false
;
isTexPngLoading
=
false
;
isTexPngLoading
=
false
;
constructor
(
private
nzMessageService
:
NzMessageService
,
private
appRef
:
ApplicationRef
)
{
constructor
(
private
nzMessageService
:
NzMessageService
,
private
appRef
:
ApplicationRef
,
private
changeDetectorRef
:
ChangeDetectorRef
)
{
this
.
uploadUrl
=
(
<
any
>
window
).
courseware
.
uploadUrl
();
this
.
uploadUrl
=
(
<
any
>
window
).
courseware
.
uploadUrl
();
this
.
uploadData
=
(
<
any
>
window
).
courseware
.
uploadData
();
this
.
uploadData
=
(
<
any
>
window
).
courseware
.
uploadData
();
...
@@ -1311,6 +1313,12 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
...
@@ -1311,6 +1313,12 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
*/
*/
refresh
()
{
refresh
()
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
changeDetectorRef
.
reattach
();
this
.
changeDetectorRef
.
markForCheck
();
this
.
changeDetectorRef
.
detectChanges
();
this
.
appRef
.
tick
();
this
.
appRef
.
tick
();
},
1
);
},
1
);
}
}
...
...
form/src/app/common/upload-dragon-bone/upload-dragon-bone.component.ts
View file @
51ba960d
...
@@ -76,11 +76,13 @@ export class UploadDragonBoneComponent implements OnDestroy, OnChanges {
...
@@ -76,11 +76,13 @@ export class UploadDragonBoneComponent implements OnDestroy, OnChanges {
animaPanelCancel
()
{
animaPanelCancel
()
{
this
.
animaPanelVisible
=
false
;
this
.
animaPanelVisible
=
false
;
this
.
refresh
();
}
}
animaPanelOk
()
{
animaPanelOk
()
{
this
.
sendItemDragonBoneData
();
this
.
sendItemDragonBoneData
();
this
.
animaPanelVisible
=
false
;
this
.
animaPanelVisible
=
false
;
this
.
refresh
();
}
}
sendItemDragonBoneData
()
{
sendItemDragonBoneData
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment