Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
ngt_video
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
ngt_video
Commits
d124eef9
Commit
d124eef9
authored
Oct 03, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 表单
parent
81531605
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
9 deletions
+36
-9
defaultData.js
assets/ngt_video/Script/defaultData.js
+3
-1
form.component.css
form/src/app/form/form.component.css
+0
-1
form.component.html
form/src/app/form/form.component.html
+25
-6
form.component.ts
form/src/app/form/form.component.ts
+8
-1
No files found.
assets/ngt_video/Script/defaultData.js
View file @
d124eef9
...
...
@@ -2,7 +2,9 @@
export
const
defaultData
=
{
"
title
"
:
"
Hello Apples
"
,
"
endImgAni
"
:
{
"
tipSwitch
"
:
1
,
"
audio
"
:
""
,
"
imgAni
"
:
{
"
ske
"
:
{
"
url
"
:
"
https://teach.cdn.ireadabc.com/8a5825bc51a32f13ddb55d3065d713a9.json
"
,
"
name
"
:
"
动画用图川阅阅奖励_ske.json
"
...
...
form/src/app/form/form.component.css
View file @
d124eef9
...
...
@@ -4,7 +4,6 @@
.model-content
{
width
:
100%
;
height
:
100%
;
}
.radioPaire
{
...
...
form/src/app/form/form.component.html
View file @
d124eef9
<div
class=
"model-content"
>
<br>
<span
style=
"font-size: 20px; padding-left: 20px;"
>
标题:
</span>
<input
type=
"text"
style=
"width: 300px;"
nz-input
[(
ngModel
)]="
item
.
title
"
(
blur
)="
save
()"
>
<div>
<span
style=
"font-size: 20px;"
>
标题:
</span><input
type=
"text"
nz-input
[(
ngModel
)]="
item
.
title
"
(
blur
)="
save
()"
>
<span
style=
"font-size: 20px;"
>
提示动画:
</span>
<app-upload-dragon-bone
style=
"width: 100%"
(
save
)="
onDragonBoneSave
($
event
,
item
)"
[
skeJsonData
]="
item
.
endImgAni
.
ske
"
[
texJsonData
]="
item
.
endImgAni
.
tex
"
[
texPngData
]="
item
.
endImgAni
.
png
"
>
<br>
<br>
<span
style=
"padding-left: 20px;font-size: 20px;"
>
提示开关:
</span>
<nz-radio-group
[
ngModel
]="
item
.
tipSwitch
"
(
ngModelChange
)="
customRadioChange
($
event
,
item
,'
tipSwitch
')"
style=
"font-size: 20px; display: inline-block;"
>
<label
nz-radio
nzValue=
"1"
>
开
</label>
<label
nz-radio
nzValue=
"0"
>
关
</label>
</nz-radio-group>
<br>
<br>
<div
*
ngIf=
"item.tipSwitch == 1"
>
<div>
<span
style=
"font-size: 20px; padding-left: 20px;"
>
提示音频:
</span>
<app-audio-recorder
[
audioUrl
]="
item
.
audio
"
style=
"display: inline-block;"
(
audioUploaded
)="
onAudioUploadSuccess
($
event
,
'
audio
',
item
)"
>
</app-audio-recorder>
</div>
<br>
<span
style=
"font-size: 20px; padding-left: 20px;"
>
提示动画:
</span>
<app-upload-dragon-bone
style=
"width: 100%"
(
save
)="
onDragonBoneSave
($
event
,
item
)"
style=
"display: inline-block;"
[
skeJsonData
]="
item
.
imgAni
.
ske
"
[
texJsonData
]="
item
.
imgAni
.
tex
"
[
texPngData
]="
item
.
imgAni
.
png
"
>
</app-upload-dragon-bone>
</div>
...
...
form/src/app/form/form.component.ts
View file @
d124eef9
...
...
@@ -17,7 +17,9 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
item
=
{
title
:
""
,
endImgAni
:
{
tipSwitch
:
1
,
audio
:
""
,
imgAni
:
{
ske
:
{},
tex
:
{},
png
:
{}
...
...
@@ -46,4 +48,9 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
this
.
save
();
}
customRadioChange
(
e
,
item
,
key
)
{
item
[
key
]
=
e
;
this
.
save
();
}
}
\ No newline at end of file
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