Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
YM5-15
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-15
Commits
ca6721f6
Commit
ca6721f6
authored
Mar 14, 2021
by
Chen Jiping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修复句子背景显示高度
parent
7a700602
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
form.component.html
src/app/form/form.component.html
+4
-4
Exercises.spreat.ts
src/app/play/Exercises.spreat.ts
+3
-1
No files found.
src/app/form/form.component.html
View file @
ca6721f6
...
...
@@ -78,7 +78,7 @@
</app-audio-recorder>
</nz-form-control>
</nz-form-item>
<nz-divider
nzText=
"
点击下方字母选择{{ m == 0 ? '点击单词选择正确选项':'点击单词选择错误选项
'}}"
nzOrientation=
"left"
></nz-divider>
<nz-divider
nzText=
"
{{ m == 0 ? '点击单词首尾字母设置正确答案':'点击单词首尾字母设置错误答案
'}}"
nzOrientation=
"left"
></nz-divider>
<nz-form-item>
<nz-form-control
[
nzSpan
]="
20
"
>
<div
*
ngFor=
"let letter of answer.letterArr; let j = index"
style=
"float: left;"
>
...
...
@@ -93,7 +93,7 @@
</div>
</nz-form-control>
</nz-form-item>
<nz-divider
nzText=
"点击字母变绿"
nzOrientation=
"left"
></nz-divider>
<nz-divider
nzText=
"点击字母
设置
变绿"
nzOrientation=
"left"
></nz-divider>
<nz-form-item>
<nz-form-control
[
nzSpan
]="
20
"
>
<div
*
ngFor=
"let letter of answer.letterArr; let j = index"
style=
"float: left;"
>
...
...
@@ -115,13 +115,13 @@
</div>
</nz-card>
<ng-template
#
actionAdd
>
<button
nz-button
nzType=
"dashed"
[
disabled
]="
item
.
exercisesArr
.
length =
=
4
?
true
:
false
"
class=
"add-btn"
<button
nz-button
nzType=
"dashed"
[
disabled
]="
item
.
exercisesArr
.
length =
=
3
?
true
:
false
"
class=
"add-btn"
id=
"add-btn"
(
click
)="
addExercisesItem
(
item
)"
>
<i
nz-icon
nzType=
"plus-circle"
nzTheme=
"outline"
></i>
添加
</button>
</ng-template>
<ng-template
#
actionSetting
>
<button
nz-button
nzType=
"dashed"
[
disabled
]="
item
.
exercisesArr
.
length =
=
4
?
true
:
false
"
class=
"add-btn"
<button
nz-button
nzType=
"dashed"
[
disabled
]="
item
.
exercisesArr
.
length =
=
3
?
true
:
false
"
class=
"add-btn"
id=
"add-btn"
(
click
)="
addExercisesItem
(
item
)"
>
<i
nz-icon
nzType=
"plus-circle"
nzTheme=
"outline"
></i>
添加
</button>
...
...
src/app/play/Exercises.spreat.ts
View file @
ca6721f6
...
...
@@ -60,7 +60,9 @@ export class Exercises {
let
h
=
140
*
this
.
scaleY
;
h
=
this
.
answer
.
height
>
h
?
this
.
answer
.
height
:
h
;
let
h1
=
this
.
answer
.
height
+
90
*
this
.
scaleY
h
=
h1
>
h
?
h1
:
h
;
this
.
bg
.
setSize
(
this
.
bgWidth
,
h
);
...
...
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