Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
ym-23
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-23
Commits
08138e40
Commit
08138e40
authored
Jun 08, 2020
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 序号添加和展示
parent
af450371
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
form.component.html
src/app/form/form.component.html
+4
-4
play.component.ts
src/app/play/play.component.ts
+1
-3
No files found.
src/app/form/form.component.html
View file @
08138e40
...
@@ -37,16 +37,16 @@
...
@@ -37,16 +37,16 @@
<h5
style=
"width: 100%; line-height: 40px; text-align: center;"
>
句组-{{i+1}}
</h5>
<h5
style=
"width: 100%; line-height: 40px; text-align: center;"
>
句组-{{i+1}}
</h5>
<div
nz-form
>
<div
nz-form
>
<nz-form-item>
<nz-form-item>
<nz-radio-group
[(
ngModel
)]="
it
.
left
.
num
"
(
ngModelChange
)="
save
()"
>
<nz-radio-group
[(
ngModel
)]="
it
.
left
.
num
"
(
ngModelChange
)="
save
()"
style=
"margin-left: 9%"
>
<label
nz-radio
nzValue=
"Y"
>
有
</label>
<label
nz-radio
nzValue=
"Y"
>
有
</label>
<label
nz-radio
nzValue=
"N"
>
无
</label>
<label
nz-radio
nzValue=
"N"
>
无
</label>
</nz-radio-group>
</nz-radio-group>
<div
*
ngIf=
"it.
num== 'Y'"
style=
"width: 33
%"
>
<div
*
ngIf=
"it.
left.num== 'Y'"
style=
"width: 33%; margin-left: 9
%"
>
<nz-form-label
nzFor=
"xuhao"
>
序号
</nz-form-label>
<nz-form-label
nzFor=
"xuhao"
>
序号
</nz-form-label>
<input
style=
"width: 20%; margin-bottom: 0.5vw"
type=
"text"
nz-input
placeholder=
""
[(
ngModel
)]="
it
.
xuhao
"
(
blur
)="
saveItem
()"
>
<input
style=
"width: 20%; margin-bottom: 0.5vw"
type=
"text"
nz-input
placeholder=
""
[(
ngModel
)]="
it
.
xuhao
"
(
blur
)="
saveItem
()"
>
</div>
</div>
<div
*
ngIf=
"it.num== 'N'"
style=
"width: 80%"
>
<div
*
ngIf=
"it.
left.
num== 'N'"
style=
"width: 80%"
>
<br>
<br>
</div>
</div>
...
...
src/app/play/play.component.ts
View file @
08138e40
...
@@ -88,7 +88,6 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -88,7 +88,6 @@ export class PlayComponent implements OnInit, OnDestroy {
guide
:
MySprite
;
guide
:
MySprite
;
wordArr
wordArr
musicArr
=
[];
musicArr
=
[];
number
=
0
;
juziWidth
juziWidth
word_bg_groups
=
[];
word_bg_groups
=
[];
word_show_index
;
word_show_index
;
...
@@ -725,8 +724,7 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -725,8 +724,7 @@ export class PlayComponent implements OnInit, OnDestroy {
if
(
this
.
data
.
wordArr
[
index
].
left
.
num
==
'
Y
'
)
{
if
(
this
.
data
.
wordArr
[
index
].
left
.
num
==
'
Y
'
)
{
// 加一个序号
// 加一个序号
let
letter_num
=
new
Label
();
let
letter_num
=
new
Label
();
this
.
number
++
;
letter_num
.
text
=
this
.
data
.
wordArr
[
index
].
xuhao
+
"
.
"
;
letter_num
.
text
=
this
.
number
+
"
.
"
;
letter_num
.
textAlign
=
'
left
'
;
letter_num
.
textAlign
=
'
left
'
;
// letter_num.fontSize = word_content.word_font_size ? word_content.word_font_size : 110;
// letter_num.fontSize = word_content.word_font_size ? word_content.word_font_size : 110;
letter_num
.
fontSize
=
40
;
letter_num
.
fontSize
=
40
;
...
...
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