Commit b1550397 authored by Chen Jiping's avatar Chen Jiping

完善

parent f4f58373
...@@ -49,10 +49,6 @@ ...@@ -49,10 +49,6 @@
<nz-card nzType="inner" style="margin-top:16px;" nzTitle="单词 {{i + 1}}"> <nz-card nzType="inner" style="margin-top:16px;" nzTitle="单词 {{i + 1}}">
<div nz-form id="word-anchor-{{i + 1}}"> <div nz-form id="word-anchor-{{i + 1}}">
<nz-form-item> <nz-form-item>
<nz-form-label [nzSpan]="6" nzFor="world">单词</nz-form-label>
<nz-form-control [nzSpan]="6">
<input type="text" nz-input placeholder="Please input word" [(ngModel)]="exercises.word" (blur)="save()">
</nz-form-control>
<nz-form-label [nzSpan]="6" nzFor="answerIndex">答案顺序</nz-form-label> <nz-form-label [nzSpan]="6" nzFor="answerIndex">答案顺序</nz-form-label>
<nz-form-control [nzSpan]="4"> <nz-form-control [nzSpan]="4">
<input type="number" max='4' min="1" nz-input [(ngModel)]="exercises.answerIndex" (blur)="save()"> <input type="number" max='4' min="1" nz-input [(ngModel)]="exercises.answerIndex" (blur)="save()">
...@@ -92,13 +88,21 @@ ...@@ -92,13 +88,21 @@
</nz-form-item> </nz-form-item>
<nz-form-item> <nz-form-item>
<nz-form-label [nzSpan]="6">单词拆分</nz-form-label> <nz-form-label [nzSpan]="6">单词拆分</nz-form-label>
<nz-form-control [nzSpan]="12"> <nz-form-control [nzSpan]="6">
<button nz-button nzType="dashed" class="add-btn" id="add-btn" <button nz-button nzType="dashed" class="add-btn" id="add-btn"
(click)="addLetter(exercises)"> (click)="addLetter(exercises)">
<i nz-icon nzType="plus-circle" nzTheme="outline"></i>添加 <i nz-icon nzType="plus-circle" nzTheme="outline"></i>添加
</button> </button>
</nz-form-control> </nz-form-control>
</nz-form-item> </nz-form-item>
<nz-form-item>
<nz-form-label [nzSpan]="6">单词预览</nz-form-label>
<nz-form-control [nzSpan]="6">
<span nz-text>
<label *ngFor="let letter of exercises.letters;let j = index" [ngStyle]="{'text-decoration':letter.isFill=='1'?'underline':'none','font-size':'40px'}">{{letter.val}}</label>
</span>
</nz-form-control>
</nz-form-item>
<nz-form-item> <nz-form-item>
<nz-form-control [nzOffset]="2" [nzSpan]="16"> <nz-form-control [nzOffset]="2" [nzSpan]="16">
<nz-table #lettersTable nzBordered nzTitle="按照单词填空需要进行拆分填写" [nzData]="exercises.letters" [nzShowPagination]=false> <nz-table #lettersTable nzBordered nzTitle="按照单词填空需要进行拆分填写" [nzData]="exercises.letters" [nzShowPagination]=false>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment