Commit d4654e4e authored by yu's avatar yu

表单类型保存

parent 61e1b717
...@@ -104,12 +104,12 @@ ...@@ -104,12 +104,12 @@
选项类型: 选项类型:
</div> </div>
<div style="margin-top: 5px;"> <div style="margin-top: 5px;">
<nz-radio-group [(ngModel)]="option.type"> <nz-radio-group [(ngModel)]="option.type" (ngModelChange)="ngChange(i,j)">
<label nz-radio nzValue="img"> <label nz-radio nzValue="img">
<span [style]="{color:option.type=='img' ? '#169BD5':'#000'}">图片</span> <span [style]="{color:option.type=='img' ? '#169BD5':'#000'}">图片</span>
</label> </label>
<label nz-radio nzValue="text"> <label nz-radio nzValue="text">
<span [style]="{color:option.type=='text' ? '#169BD5':'#000'}">文字</span> <span [style]="{color:option.type=='txt' ? '#169BD5':'#000'}">文字</span>
</label> </label>
</nz-radio-group> </nz-radio-group>
</div> </div>
......
...@@ -75,4 +75,7 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O ...@@ -75,4 +75,7 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
}); });
this.save(); this.save();
} }
ngChange(i,j){
this.save();
}
} }
\ No newline at end of file
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