forked from NG-ZORRO/ng-zorro-antd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
button-group.ts
62 lines (58 loc) 路 1.68 KB
/
button-group.ts
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import { Component } from '@angular/core';
@Component({
selector: 'nz-demo-button-button-group',
template: `
<h4>Basic</h4>
<nz-button-group>
<button nz-button>Cancel</button>
<button nz-button nzType="primary">OK</button>
</nz-button-group>
<nz-button-group>
<button nz-button nzType="default" disabled>L</button>
<button nz-button nzType="default" disabled>M</button>
<button nz-button nzType="default" disabled>R</button>
</nz-button-group>
<nz-button-group>
<button nz-button nzType="primary" disabled>L</button>
<button nz-button nzType="default" disabled>M</button>
<button nz-button nzType="default">M</button>
<button nz-button nzType="dashed" disabled>R</button>
</nz-button-group>
<h4>With Icon</h4>
<nz-button-group>
<button nz-button nzType="primary">
<span nz-icon nzType="left"></span>
Go back
</button>
<button nz-button nzType="primary">
Go forward
<span nz-icon nzType="right"></span>
</button>
</nz-button-group>
<nz-button-group>
<button nz-button nzType="primary"><span nz-icon nzType="cloud"></span></button>
<button nz-button nzType="primary"><span nz-icon nzType="cloud-download"></span></button>
</nz-button-group>
`,
styles: [
`
h4 {
margin: 16px 0;
font-size: 14px;
line-height: 1;
font-weight: normal;
}
h4:first-child {
margin-top: 0;
}
[nz-button] {
margin-bottom: 12px;
}
nz-button-group {
margin-bottom: 8px;
margin-right: 8px;
}
`
]
})
export class NzDemoButtonButtonGroupComponent {}