Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
YM-22
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
YM-22
Commits
b1550397
Commit
b1550397
authored
Apr 27, 2020
by
Chen Jiping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善
parent
f4f58373
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
form.component.html
src/app/form/form.component.html
+9
-5
No files found.
src/app/form/form.component.html
View file @
b1550397
...
...
@@ -49,10 +49,6 @@
<nz-card
nzType=
"inner"
style=
"margin-top:16px;"
nzTitle=
"单词 {{i + 1}}"
>
<div
nz-form
id=
"word-anchor-{{i + 1}}"
>
<nz-form-item>
<nz-form-label
[
nzSpan
]="
6
"
nzFor=
"world"
>
单词
</nz-form-label>
<nz-form-control
[
nzSpan
]="
6
"
>
<input
type=
"text"
nz-input
placeholder=
"Please input word"
[(
ngModel
)]="
exercises
.
word
"
(
blur
)="
save
()"
>
</nz-form-control>
<nz-form-label
[
nzSpan
]="
6
"
nzFor=
"answerIndex"
>
答案顺序
</nz-form-label>
<nz-form-control
[
nzSpan
]="
4
"
>
<input
type=
"number"
max=
'4'
min=
"1"
nz-input
[(
ngModel
)]="
exercises
.
answerIndex
"
(
blur
)="
save
()"
>
...
...
@@ -92,13 +88,21 @@
</nz-form-item>
<nz-form-item>
<nz-form-label
[
nzSpan
]="
6
"
>
单词拆分
</nz-form-label>
<nz-form-control
[
nzSpan
]="
12
"
>
<nz-form-control
[
nzSpan
]="
6
"
>
<button
nz-button
nzType=
"dashed"
class=
"add-btn"
id=
"add-btn"
(
click
)="
addLetter
(
exercises
)"
>
<i
nz-icon
nzType=
"plus-circle"
nzTheme=
"outline"
></i>
添加
</button>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-label
[
nzSpan
]="
6
"
>
单词预览
</nz-form-label>
<nz-form-control
[
nzSpan
]="
6
"
>
<span
nz-text
>
<label
*
ngFor=
"let letter of exercises.letters;let j = index"
[
ngStyle
]="{'
text-decoration
'
:letter
.
isFill=
='1'?'underline':'none','font-size':'40px'}"
>
{{letter.val}}
</label>
</span>
</nz-form-control>
</nz-form-item>
<nz-form-item>
<nz-form-control
[
nzOffset
]="
2
"
[
nzSpan
]="
16
"
>
<nz-table
#
lettersTable
nzBordered
nzTitle=
"按照单词填空需要进行拆分填写"
[
nzData
]="
exercises
.
letters
"
[
nzShowPagination
]=
false
>
...
...
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