Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Z_05_nxuan1
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
Z_05_nxuan1
Commits
a6346bad
Commit
a6346bad
authored
Sep 04, 2020
by
huoshizhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 选择的字母按照《小星星》换行
parent
b48f6f91
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
3 deletions
+41
-3
form.component.html
form/src/app/form/form.component.html
+39
-3
form.component.ts
form/src/app/form/form.component.ts
+2
-0
No files found.
form/src/app/form/form.component.html
View file @
a6346bad
...
@@ -12,8 +12,8 @@
...
@@ -12,8 +12,8 @@
</div>
</div>
<div
style=
"float: none;clear: both;"
>
</div>
<div
style=
"float: none;clear: both;"
>
</div>
</div>
</div>
<div
class=
"border"
style=
" width: 520px;"
>
<
!-- <
div class="border" style=" width: 520px;">
<span
style=
"height: 30px; font-size: 18px;"
>
可选字母:
</span>
<span style="height: 30px; font-size: 18px;">可选字母
(点击下方字母选择)
:</span>
<br>
<br>
<a (click)="addLetter('Q')" style="font-size: 50px; width: 50px;">Q </a>
<a (click)="addLetter('Q')" style="font-size: 50px; width: 50px;">Q </a>
<a (click)="addLetter('W')" style="font-size: 50px; width: 50px;">W </a>
<a (click)="addLetter('W')" style="font-size: 50px; width: 50px;">W </a>
...
@@ -43,7 +43,43 @@
...
@@ -43,7 +43,43 @@
<a (click)="addLetter('B')" style="font-size: 50px;">B </a>
<a (click)="addLetter('B')" style="font-size: 50px;">B </a>
<a (click)="addLetter('N')" style="font-size: 50px;">N </a>
<a (click)="addLetter('N')" style="font-size: 50px;">N </a>
<a (click)="addLetter('M')" style="font-size: 50px;">M </a>
<a (click)="addLetter('M')" style="font-size: 50px;">M </a>
<br>
</div> -->
<div
class=
"border"
style=
"width: 350px;"
>
<span
style=
"height: 30px; font-size: 18px;"
>
可选字母(点击下方字母选择):
</span>
<br>
<a
(
click
)="
addLetter
('
A
')"
style=
"font-size: 50px;"
>
A
</a>
<a
(
click
)="
addLetter
('
B
')"
style=
"font-size: 50px;"
>
B
</a>
<a
(
click
)="
addLetter
('
C
')"
style=
"font-size: 50px;"
>
C
</a>
<a
(
click
)="
addLetter
('
D
')"
style=
"font-size: 50px;"
>
D
</a>
<a
(
click
)="
addLetter
('
E
')"
style=
"font-size: 50px;"
>
E
</a>
<a
(
click
)="
addLetter
('
F
')"
style=
"font-size: 50px;"
>
F
</a>
<a
(
click
)="
addLetter
('
G
')"
style=
"font-size: 50px;"
>
G
</a>
<br>
<a
(
click
)="
addLetter
('
H
')"
style=
"font-size: 50px;"
>
H
</a>
<a
(
click
)="
addLetter
('
I
')"
style=
"font-size: 50px;"
>
I
</a>
<a
(
click
)="
addLetter
('
J
')"
style=
"font-size: 50px;"
>
J
</a>
<a
(
click
)="
addLetter
('
K
')"
style=
"font-size: 50px;"
>
K
</a>
<a
(
click
)="
addLetter
('
L
')"
style=
"font-size: 50px;"
>
L
</a>
<a
(
click
)="
addLetter
('
M
')"
style=
"font-size: 50px;"
>
M
</a>
<a
(
click
)="
addLetter
('
N
')"
style=
"font-size: 50px;"
>
N
</a>
<br>
<a
(
click
)="
addLetter
('
O
')"
style=
"font-size: 50px;"
>
O
</a>
<a
(
click
)="
addLetter
('
P
')"
style=
"font-size: 50px;"
>
P
</a>
<a
(
click
)="
addLetter
('
Q
')"
style=
"font-size: 50px;"
>
Q
</a>
<a
(
click
)="
addLetter
('
R
')"
style=
"font-size: 50px;"
>
R
</a>
<a
(
click
)="
addLetter
('
S
')"
style=
"font-size: 50px;"
>
S
</a>
<a
(
click
)="
addLetter
('
T
')"
style=
"font-size: 50px;"
>
T
</a>
<br>
<a
(
click
)="
addLetter
('
U
')"
style=
"font-size: 50px;"
>
U
</a>
<a
(
click
)="
addLetter
('
V
')"
style=
"font-size: 50px;"
>
V
</a>
<a
(
click
)="
addLetter
('
W
')"
style=
"font-size: 50px;"
>
W
</a>
<a
(
click
)="
addLetter
('
X
')"
style=
"font-size: 50px;"
>
X
</a>
<a
(
click
)="
addLetter
('
Y
')"
style=
"font-size: 50px;"
>
Y
</a>
<a
(
click
)="
addLetter
('
Z
')"
style=
"font-size: 50px;"
>
Z
</a>
<br>
</div>
</div>
<!-- <div class="border" style=" width: 520px; height: 120px;">
<!-- <div class="border" style=" width: 520px; height: 120px;">
<span style="height: 30px; font-size: 18px;">单词音频:</span>
<span style="height: 30px; font-size: 18px;">单词音频:</span>
...
...
form/src/app/form/form.component.ts
View file @
a6346bad
...
@@ -41,10 +41,12 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
...
@@ -41,10 +41,12 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
addLetter
(
letter
)
{
addLetter
(
letter
)
{
this
.
item
.
letterList
.
push
(
letter
);
this
.
item
.
letterList
.
push
(
letter
);
this
.
save
();
}
}
removeLetter
(
idx
)
{
removeLetter
(
idx
)
{
this
.
item
.
letterList
.
splice
(
idx
,
1
);
this
.
item
.
letterList
.
splice
(
idx
,
1
);
this
.
save
();
}
}
ngOnChanges
()
{
ngOnChanges
()
{
...
...
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