Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dfzx_cocos_pinjuzi
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
dfzx_cocos_pinjuzi
Commits
9690cbbb
Commit
9690cbbb
authored
Jun 09, 2021
by
LMZ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 隐藏阴影
parent
dfc9857d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
angular.json
form/angular.json
+5
-2
form.component.html
form/src/app/form/form.component.html
+4
-0
form.component.ts
form/src/app/form/form.component.ts
+2
-0
No files found.
form/angular.json
View file @
9690cbbb
...
...
@@ -128,5 +128,8 @@
}
}
},
"defaultProject"
:
"ng-template-generator"
}
"defaultProject"
:
"ng-template-generator"
,
"cli"
:
{
"analytics"
:
false
}
}
\ No newline at end of file
form/src/app/form/form.component.html
View file @
9690cbbb
...
...
@@ -2,6 +2,10 @@
<div
style=
"padding: 10px; width: 800px;"
>
<div
style=
"margin-top: 50px;"
>
<label
nz-checkbox
[(
ngModel
)]="
item
.
isHideShadow
"
(
ngModelChange
)="
save
()"
style=
"margin-left: 5px;"
>
隐藏阴影
</label>
</div>
<div
*
ngFor=
"let it of item.groupArr; let i = index"
style=
"border: 1px solid #ccc; border-radius: 10px; margin-top: 50px; display: flex; align-items: center; flex-direction: column;"
>
<div
style=
"display: flex; align-items: center; justify-content: center; padding: 10px;"
>
...
...
form/src/app/form/form.component.ts
View file @
9690cbbb
...
...
@@ -44,6 +44,8 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
this
.
item
=
data
;
}
this
.
item
=
JSON
.
parse
(
'
{"groupArr":[{"ques":"","optionArr":[{"text":"AAaa","isEmpty":true,"audio_url":"http://staging-teach.cdn.ireadabc.com/c42408cda175ea4b754b47bba6eeb692.mp3"},{"text":"bbb"},{"text":"ccc","isEmpty":true,"audio_url":"http://staging-teach.cdn.ireadabc.com/3c070a33d021725219ab7eec9e60cb39.mp3"},{"text":"ddddd"},{"text":"ee"},{"text":"fff"}],"wrongArr":[{"text":"zzz"},{"text":"yyyyy"},{"text":"ccc"},{"text":"vvv"},{"text":"bbb"},{"text":"nnnnnn"}],"audio_url":"http://staging-teach.cdn.ireadabc.com/a4d27ad173a95823d4b8ec82363c5aa0.mp3","word_audio_url":"http://staging-teach.cdn.ireadabc.com/85cff126986f5cc11b05e95181da5869.mp3"},{"ques":"","optionArr":[{"text":"aa"},{"text":"cc","isEmpty":true,"audio_url":"http://staging-teach.cdn.ireadabc.com/baae6b4c92d8a95e184d6d18542e0d21.mp3"},{"text":"d"},{"text":"bbbb","isEmpty":true,"audio_url":"http://staging-teach.cdn.ireadabc.com/79a67cfeb1fee086076bc7f46e1524f1.mp3"}],"wrongArr":[{"text":"b2"},{"text":"eee"},{"text":"fff"},{"text":"ggg"},{"text":"hhh"},{"text":"ggg"},{"text":"ccc"}],"pic_url":"http://staging-teach.cdn.ireadabc.com/f6f4bbef497409fef3c8f1d375893829.png","audio_url":"http://staging-teach.cdn.ireadabc.com/440cf9d57752b30691d90ed565e8c924.mp3","word_audio_url":"http://staging-teach.cdn.ireadabc.com/5285e1e88a26a08783757e9c43a8653f.mp3"},{"ques":"","optionArr":[{"text":"wwwwwwwwwww"},{"text":"cc","isEmpty":true}],"wrongArr":[{"text":"v"},{"text":"v"},{"text":"x"},{"text":"z"}],"audio_url":"http://staging-teach.cdn.ireadabc.com/a5fa20e0c6024421b0d9a7007c303503.mp3","word_audio_url":"http://staging-teach.cdn.ireadabc.com/5285e1e88a26a08783757e9c43a8653f.mp3"}]}
'
);
this
.
init
();
this
.
changeDetectorRef
.
markForCheck
();
this
.
changeDetectorRef
.
detectChanges
();
...
...
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