Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
YM4-13
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
YM4-13
Commits
0448ef30
Commit
0448ef30
authored
Nov 10, 2020
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix
parent
bc8e89a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
custom-hot-zone.component.ts
...common/custom-hot-zone-ym413/custom-hot-zone.component.ts
+6
-2
No files found.
src/app/common/custom-hot-zone-ym413/custom-hot-zone.component.ts
View file @
0448ef30
import
{
Component
,
ElementRef
,
EventEmitter
,
HostListener
,
Input
,
OnChanges
,
OnDestroy
,
OnInit
,
Output
,
ViewChild
}
from
'
@angular/core
'
;
import
{
Component
,
ElementRef
,
EventEmitter
,
HostListener
,
Input
,
OnChanges
,
OnDestroy
,
OnInit
,
Output
,
ViewChild
,
ChangeDetectorRef
}
from
'
@angular/core
'
;
import
{
Subject
}
from
'
rxjs
'
;
import
{
Subject
}
from
'
rxjs
'
;
import
{
debounceTime
}
from
'
rxjs/operators
'
;
import
{
debounceTime
}
from
'
rxjs/operators
'
;
import
{
EditorItem
,
HotZoneImageItem
,
Label
,
MySprite
}
from
'
./Unit
'
;
import
{
EditorItem
,
HotZoneImageItem
,
Label
,
MySprite
}
from
'
./Unit
'
;
...
@@ -78,7 +78,7 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy {
...
@@ -78,7 +78,7 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy {
hotZoneChanged
=
false
;
hotZoneChanged
=
false
;
scale
=
1
;
scale
=
1
;
constructor
(
private
el
:
ElementRef
)
{
constructor
(
private
el
:
ElementRef
,
private
changeDetectorRef
:
ChangeDetectorRef
)
{
}
}
...
@@ -360,6 +360,8 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy {
...
@@ -360,6 +360,8 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy {
this
.
changeCurItem
(
item
);
this
.
changeCurItem
(
item
);
}
}
this
.
hotZoneChanged
=
true
;
this
.
hotZoneChanged
=
true
;
this
.
changeDetectorRef
.
markForCheck
();
this
.
changeDetectorRef
.
detectChanges
();
return
;
return
;
}
}
...
@@ -662,6 +664,8 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy {
...
@@ -662,6 +664,8 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy {
}
}
this
.
save
.
emit
({
bgItem
,
hotZoneItemArr
});
this
.
save
.
emit
({
bgItem
,
hotZoneItemArr
});
this
.
hotZoneChanged
=
false
;
this
.
hotZoneChanged
=
false
;
this
.
changeDetectorRef
.
markForCheck
();
this
.
changeDetectorRef
.
detectChanges
();
}
}
getURL
(
url
:
string
)
{
getURL
(
url
:
string
)
{
...
...
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