Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
YM5-16
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
YM5-16
Commits
84f5b73b
Commit
84f5b73b
authored
Mar 19, 2021
by
Chen Jiping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修复横线第一个值无法清空的问题
parent
572dd082
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
play.component.ts
src/app/play/play.component.ts
+11
-6
No files found.
src/app/play/play.component.ts
View file @
84f5b73b
...
@@ -939,11 +939,14 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -939,11 +939,14 @@ export class PlayComponent implements OnInit, OnDestroy {
this
.
curDragItem
.
bg
.
visible
=
true
;
this
.
curDragItem
.
bg
.
visible
=
true
;
let
lineIndex
=
this
.
curDragItem
.
lineIndex
;
let
lineIndex
=
this
.
curDragItem
.
lineIndex
;
if
(
lineIndex
&&
lineIndex
!=
-
1
){
if
(
lineIndex
!=
-
1
){
let
lineSpr
=
this
.
lineSprArr
[
lineIndex
];
let
lineSpr
=
this
.
lineSprArr
[
lineIndex
];
lineSpr
.
hideLabel
();
if
(
lineSpr
){
lineSpr
.
answered
=
false
;
lineSpr
.
hideLabel
();
this
.
curDragItem
.
lineIndex
=
-
1
;
lineSpr
.
answered
=
false
;
this
.
curDragItem
.
lineIndex
=
-
1
;
}
}
}
this
.
oldPos
=
{
x
:
this
.
mx
,
y
:
this
.
my
};
this
.
oldPos
=
{
x
:
this
.
mx
,
y
:
this
.
my
};
...
@@ -1086,7 +1089,7 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -1086,7 +1089,7 @@ export class PlayComponent implements OnInit, OnDestroy {
let
lineSpr
;
let
lineSpr
;
let
lineIndex
=
0
;
let
lineIndex
=
-
1
;
for
(
let
i
=
0
;
i
<
this
.
lineSprArr
.
length
;
++
i
)
{
for
(
let
i
=
0
;
i
<
this
.
lineSprArr
.
length
;
++
i
)
{
...
@@ -1100,6 +1103,8 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -1100,6 +1103,8 @@ export class PlayComponent implements OnInit, OnDestroy {
}
}
letterItem
.
lineIndex
=
lineIndex
;
if
(
!
lineSpr
||
lineSpr
.
answered
)
{
if
(
!
lineSpr
||
lineSpr
.
answered
)
{
back
();
back
();
return
;
return
;
...
@@ -1111,7 +1116,7 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -1111,7 +1116,7 @@ export class PlayComponent implements OnInit, OnDestroy {
letterItem
.
bg
.
x
=
lineSpr
.
bg
.
x
+
(
letterItem
.
bg
.
width
-
letterItem
.
bg
.
width
)
/
2
;
letterItem
.
bg
.
x
=
lineSpr
.
bg
.
x
+
(
letterItem
.
bg
.
width
-
letterItem
.
bg
.
width
)
/
2
;
letterItem
.
bg
.
y
=
lineSpr
.
bg
.
y
+
(
letterItem
.
bg
.
height
-
letterItem
.
bg
.
height
)
/
2
;
letterItem
.
bg
.
y
=
lineSpr
.
bg
.
y
+
(
letterItem
.
bg
.
height
-
letterItem
.
bg
.
height
)
/
2
;
letterItem
.
bg
.
visible
=
false
;
letterItem
.
bg
.
visible
=
false
;
letterItem
.
lineIndex
=
lineIndex
;
let
val
=
letterItem
.
data
.
val
;
let
val
=
letterItem
.
data
.
val
;
lineSpr
.
showLabel
(
val
);
lineSpr
.
showLabel
(
val
);
...
...
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