Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JM04-3
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
JM04-3
Commits
92947c0f
Commit
92947c0f
authored
Jul 29, 2021
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix
parent
4eec376a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
form.component.html
src/app/form/form.component.html
+1
-1
form.component.ts
src/app/form/form.component.ts
+2
-2
play.component.ts
src/app/play/play.component.ts
+6
-0
No files found.
src/app/form/form.component.html
View file @
92947c0f
...
...
@@ -73,7 +73,7 @@
<nz-form-control
[
nzSpan
]="
20
"
>
<div
*
ngFor=
"let oneRow of grid; let x = index"
class=
"clearfix"
>
<div
*
ngFor=
"let oneGrid of oneRow; let y = index"
style=
"float: left; padding: 2px;"
>
<input
style=
"width: 38px"
(
focus
)="
selectContent
($
event
)"
class=
"inputBlock"
[
class
]="{
current:
oneGrid
.
index
.
indexOf
(
currentSet
)!=
-1
}"
[
maxLength
]="
1
"
type=
"text"
nz-input
[(
ngModel
)]="
oneGrid
.
text
"
(
blur
)="
handeGridChange
($
event
,
oneGrid
,
x
,
y
)"
>
<input
style=
"width: 38px"
(
focus
)="
selectContent
($
event
)"
class=
"inputBlock"
[
class
]="{
current:
oneGrid
.
index
&&
oneGrid
.
index
.
indexOf
(
currentSet
)!=
-1
}"
[
maxLength
]="
1
"
type=
"text"
nz-input
[(
ngModel
)]="
oneGrid
.
text
"
(
blur
)="
handeGridChange
($
event
,
oneGrid
,
x
,
y
)"
>
</div>
</div>
</nz-form-control>
...
...
src/app/form/form.component.ts
View file @
92947c0f
...
...
@@ -144,7 +144,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
for
(
let
i
=
0
;
i
<
row
;
i
++
)
{
_grid
[
i
]
=
[];
for
(
let
j
=
0
;
j
<
col
;
j
++
)
{
_grid
[
i
].
push
({
index
:
-
1
,
text
:
""
});
_grid
[
i
].
push
({
index
:
[]
,
text
:
""
});
}
}
...
...
@@ -292,7 +292,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
this
.
grid
.
forEach
(
row
=>
{
row
.
forEach
(
item
=>
{
if
(
this
.
checkIndex
(
item
.
index
,
this
.
currentSet
))
{
item
.
index
=
-
1
;
item
.
index
=
[]
;
item
.
text
=
""
;
}
});
...
...
src/app/play/play.component.ts
View file @
92947c0f
...
...
@@ -365,6 +365,12 @@ export class PlayComponent implements OnInit, OnDestroy {
})
questionText
.
ref
.
text
=
"
a fish whose head look like those of a horse
"
if
(
questionText
.
ref
.
width
>
1440
)
{
questionText
.
ref
.
setScaleXY
(
this
.
g_mapScale
*
1440
/
questionText
.
ref
.
width
);
}
else
{
questionText
.
ref
.
setScaleXY
(
this
.
g_mapScale
);
}
element
.
out
=
(
callback
)
=>
{
return
tweenChange
(
element
.
ref
,
{
y
:
-
1000
},
1
,
()
=>
{
callback
&&
callback
()
...
...
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