Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Z_06
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_06
Commits
7e8504ee
Commit
7e8504ee
authored
Aug 31, 2020
by
edz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 测试
parent
49b37202
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
18 deletions
+25
-18
form.component.css
form/src/app/form/form.component.css
+1
-1
form.component.html
form/src/app/form/form.component.html
+23
-17
form.component.ts
form/src/app/form/form.component.ts
+1
-0
No files found.
form/src/app/form/form.component.css
View file @
7e8504ee
...
...
@@ -13,7 +13,7 @@
padding
:
5px
;
margin
:
10px
;
width
:
300px
;
height
:
1
7
0px
;
height
:
1
9
0px
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
...
...
form/src/app/form/form.component.html
View file @
7e8504ee
...
...
@@ -3,16 +3,7 @@
<div
style=
"padding: 20px"
>
<!--<app-custom-hot-zone-->
<!--[bgItem]="bgItem"-->
<!--[hotZoneItemArr]="hotZoneItemArr"-->
<!--[customTypeGroupArr]="customTypeGroupArr"-->
<!--(save)="saveHotZone($event)"-->
<!-->-->
<!--</app-custom-hot-zone>-->
<div
style=
"margin-top: 30px;"
>
...
...
@@ -25,9 +16,9 @@
</div>
<h2>
组 - {{gIdx+1}}
</h2>
<div
style=
"display: flex; align-items: center;"
>
<span>
title:
</span>
<
input
type=
"text"
nz-input
[(
ngModel
)]="
g
.
text
"
(
blur
)="
save
()"
>
<input
type=
"text"
style=
"width: 40px; margin-left: 5px"
maxlength=
"1"
nz-input
[(
ngModel
)]="
g
.
letter
"
(
blur
)="
save
()"
>
<span>
title
letter
:
</span>
<
!-- <input type="text" nz-input [(ngModel)]="g.text" (blur)="save()"> --
>
<input
type=
"text"
style=
"width:
1
40px; margin-left: 5px"
maxlength=
"1"
nz-input
[(
ngModel
)]="
g
.
letter
"
(
blur
)="
save
()"
>
</div>
<app-audio-recorder
...
...
@@ -41,6 +32,17 @@
编辑拖拽项
</button>
<div
style=
"margin-top: 5px;"
>
<span>
场景:
</span>
<nz-radio-group
[(
ngModel
)]="
g
.
bg
"
>
<label
nz-radio
nzValue=
"1"
>
1
</label>
<label
nz-radio
nzValue=
"2"
>
2
</label>
<label
nz-radio
nzValue=
"3"
>
3
</label>
<label
nz-radio
nzValue=
"4"
>
4
</label>
</nz-radio-group>
</div>
</div>
<!--<div *ngFor="let it of picArr; let i = index" style="padding: 10px">-->
...
...
@@ -85,7 +87,7 @@
<nz-modal
[(
nzVisible
)]="
isShowPicPanel
"
nzWidth=
"90%"
nzTitle=
"编辑拖拽项"
(
nzOnCancel
)="
handleCancel
()"
(
nzOnOk
)="
handleOk
()"
>
<div
*
ngIf=
"curGroup"
style=
"display: flex; flex-wrap: wrap"
>
<div
*
ngFor=
"let it of curGroup.picArr; let i = index"
style=
"display: flex; align-items: center; flex-direction: column ; margin:5px; width: 240px; height: 2
00
px; border: 1px dashed #ccc; border-radius: 5px;"
>
<div
*
ngFor=
"let it of curGroup.picArr; let i = index"
style=
"display: flex; align-items: center; flex-direction: column ; margin:5px; width: 240px; height: 2
55
px; border: 1px dashed #ccc; border-radius: 5px;"
>
<div
style=
"position: absolute; width: 240px"
align=
"right"
>
<button
nz-button
nzType=
'danger'
(
click
)="
deletePic
(
i
)"
style=
" margin-right: 5px; width: 30px; height: 30px; display:flex; align-items:center; justify-content: center; "
>
X
</button>
...
...
@@ -95,7 +97,8 @@
图 - {{i+1}}
</h3>
<div>
<div
align=
"center"
>
<h4>
单词:{{it.word}}
</h4>
<nz-select
style=
"width: 50px;"
[(
ngModel
)]="
it
.
letter
"
(
ngModelChange
)="
lettersChange
($
event
)"
>
<nz-option
*
ngFor=
"let l of letters"
[
nzValue
]="
l
"
[
nzLabel
]="
l
"
></nz-option>
</nz-select>
...
...
@@ -104,8 +107,11 @@
</nz-select>
</div>
<div>
<div
style=
"width: 70%; height: 100px; margin-top: 5px"
>
<app-upload-image-with-preview
[
picUrl
]="
it
.
pic_url
"
(
imageUploaded
)="
onImageUploadSuccess
($
event
,
'
pic_url
',
it
)"
>
</app-upload-image-with-preview>
</div>
<app-audio-recorder
...
...
form/src/app/form/form.component.ts
View file @
7e8504ee
...
...
@@ -204,6 +204,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
title
:
''
,
letter
:
''
,
audio_url
:
''
,
bg
:
'
1
'
,
picArr
:
[],
};
}
...
...
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