import { AfterViewInit, ChangeDetectorRef, Component, OnChanges, OnInit, ViewChild } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { SFComponent, SFSchema, SFSchemaEnumType, SFUISchema } from '@delon/form'; import { _HttpClient } from '@delon/theme'; import { NzModalRef } from 'ng-zorro-antd/modal'; import { map } from 'rxjs/operators'; @Component({ selector: 'app-choose-famifiar-set-captain', templateUrl: './set-captain.component.html' }) export class PublishchooseFamifiarSetCaptainComponent implements OnInit { @ViewChild('sf', { static: false }) sf!: SFComponent; schema!: SFSchema; ui!: SFUISchema; i: any; constructor(public http: _HttpClient, private cdr: ChangeDetectorRef, private route: ActivatedRoute) {} ngOnInit(): void { this.initSF(); } initSF() { this.schema = { properties: { name: { type: 'string', title: '车队长手机号' } }, required: ['name'] }; this.ui = { '*': { spanLabelFixed: 120, grid: { span: 24 } } }; } close() {} save() {} }