fengxiang
2018-07-11 a3a8c23b196980732a795713a5eb5fe0c7075bf9
src/app/routes/delon/form/form.component.ts
New file
@@ -0,0 +1,32 @@
import { Component, OnInit, ViewChild } from '@angular/core';
import { _HttpClient } from '@delon/theme';
import { SimpleTableColumn, SimpleTableComponent } from '@delon/abc';
import { SFSchema } from '@delon/form';
@Component({
  selector: 'app-delon-form',
  templateUrl: './form.component.html',
})
export class DelonFormComponent implements OnInit {
  params: any = {};
  url = `/user`;
  @ViewChild('st') st: SimpleTableComponent;
  searchSchema: SFSchema = {
    properties: {
      no: {
        type: 'string',
        title: '编号',
      },
    },
  };
  columns: SimpleTableColumn[] = [
    { title: '编号', index: 'no' },
    { title: '调用次数', type: 'number', index: 'callNo' },
    { title: '头像', type: 'img', width: '50px', index: 'avatar' },
    { title: '时间', type: 'date', index: 'updatedAt' },
  ];
  constructor(private http: _HttpClient) {}
  ngOnInit() {}
}