Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
ym_018
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_018
Commits
0d375485
Commit
0d375485
authored
Feb 12, 2020
by
Chen Jiping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复问题
parent
d56ce3df
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
18 deletions
+9
-18
form.component.html
src/app/form/form.component.html
+3
-18
form.component.ts
src/app/form/form.component.ts
+6
-0
No files found.
src/app/form/form.component.html
View file @
0d375485
<div
class=
"model-content"
>
<div
class=
"model-content"
id=
"model-content"
>
<div
nz-row
>
<div
nz-col
nzOffset=
"2"
[
nzSpan
]="
16
"
>
<div
nz-row
>
...
...
@@ -30,12 +30,10 @@
<nz-divider
nzText=
"单词信息"
nzOrientation=
"left"
></nz-divider>
<nz-form-item>
<nz-form-control
[
nzSpan
]="
6
"
nzOffset=
"3"
class=
"add-btn-box"
>
<nz-affix
[
nzOffsetTop
]="
120
"
>
<button
nz-button
nzType=
"dashed"
nzTooltipTitle=
"添加单词"
nzTooltipPlacement=
"right"
class=
"add-btn"
id=
"add-btn"
<button
nz-button
nzType=
"dashed"
nzTooltipTitle=
"添加单词"
nzTooltipPlacement=
"right"
class=
"add-btn"
id=
"add-btn"
(
click
)="
addWordItem
()"
nz-tooltip
>
<i
nz-icon
nzType=
"plus-circle"
nzTheme=
"outline"
></i>
添加
</button>
</nz-affix>
</button>
</nz-form-control>
</nz-form-item>
<nz-form-item>
...
...
@@ -72,19 +70,6 @@
</div>
</div>
</div>
<div
nz-col
nzOffset=
"2"
[
nzSpan
]="
4
"
>
<nz-affix
style=
"position: absolute; margin-top: 100px;margin-right: 10px;"
>
<nz-anchor>
<nz-link
nzHref=
"#title-anchor"
nzTitle=
"标题"
></nz-link>
<nz-link
nzHref=
"#word-anchor"
nzTitle=
"单词信息"
>
<nz-link
*
ngFor=
"let it of item.words; let i = index"
nzHref=
"#word-anchor-{{i}}"
nzTitle=
"单词 {{i + 1}}"
>
</nz-link>
</nz-link>
</nz-anchor>
</nz-affix>
</div>
</div>
</div>
...
...
src/app/form/form.component.ts
View file @
0d375485
...
...
@@ -25,6 +25,12 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
this
.
item
=
{};
this
.
item
.
title
=
{
t_val
:
'
1
'
};
this
.
item
.
words
=
this
.
word_arr
;
// 获取存储的数据
(
<
any
>
window
).
courseware
.
getData
((
data
)
=>
{
...
...
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