1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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() {}
| }
|
|