提交 164f892c 编写于 作者: W wq1234wq

产品Form

上级 0d0b07d5
<p>produceform works!</p>
<page-header [breadcrumb]="phNgContent" [title]="title">
<ng-template #phNgContent class> </ng-template>
<nz-card [nzBordered]="false">
<form nz-form [formGroup]="form" (ngSubmit)="submit()" se-container="1" labelWidth="200">
<se label="名称" error="名称不能为空或者空白字符" required>
<input nz-input formControlName="name" placeholder="名称" />
</se>
<se label="设备类型" error="设备类型" required>
<nz-select formControlName="deviceType" placeholder="设备类型">
<nz-option nzValue="Device" nzLabel="设备"></nz-option>
<nz-option nzValue="Gateway" nzLabel="网关"></nz-option>
</nz-select>
</se>
<se label="超时" error="超时" required>
<nz-input-number formControlName="timeout" [nzMin]="0" [nzStep]="1"></nz-input-number>
</se>
<se label="认证方式" error="认证方式" required>
<nz-select formControlName="identityType" placeholder="设备类型">
<nz-option nzValue="AccessToken" nzLabel="AccessToken"></nz-option>
<nz-option nzValue="X509Certificate" nzLabel="X509Certificate"></nz-option>
</nz-select>
</se>
<se>
<input nz-input formControlName="id" type="hidden" />
<button nz-button type="reset" (click)="close()">取消</button>
<button nz-button nzType="primary" [disabled]="form.invalid" type="submit" [nzLoading]="submitting">保存</button>
</se>
</form>
</nz-card>
</page-header>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册