File tree 4 files changed +28
-12
lines changed
components/color-picker/demo
4 files changed +28
-12
lines changed Original file line number Diff line number Diff line change 7
7
8
8
## zh-CN
9
9
10
- 最简单的用法 。
10
+ 设置为禁用状态 。
11
11
12
12
## en-US
13
13
Original file line number Diff line number Diff line change @@ -7,7 +7,14 @@ import { Component } from '@angular/core';
7
7
<ng-template #flipFlop>
8
8
<button nz-button nzType="primary" [style.background-color]="color">Color</button>
9
9
</ng-template>
10
- `
10
+ ` ,
11
+ styles : [
12
+ `
13
+ button {
14
+ border: none;
15
+ }
16
+ `
17
+ ]
11
18
} )
12
19
export class NzDemoColorPickerFlipFlopComponent {
13
20
color = '#1677ff' ;
Original file line number Diff line number Diff line change @@ -3,14 +3,23 @@ import { Component } from '@angular/core';
3
3
@Component ( {
4
4
selector : 'nz-demo-color-picker-format' ,
5
5
template : `
6
- <nz-color-picker nzFormat="hex" [(ngModel)]="hex"></nz-color-picker> HEX: {{ hex }}
7
- <br />
8
- <br />
9
- <nz-color-picker nzFormat="hsb" [(ngModel)]="hsb"></nz-color-picker> HSB: {{ hsb }}
10
- <br />
11
- <br />
12
- <nz-color-picker nzFormat="rgb" [(ngModel)]="rgb"></nz-color-picker> RGB: {{ rgb }}
13
- `
6
+ <div class="format"> <nz-color-picker nzFormat="hex" [(ngModel)]="hex"></nz-color-picker> HEX: {{ hex }} </div>
7
+ <div class="format"> <nz-color-picker nzFormat="hsb" [(ngModel)]="hsb"></nz-color-picker> HSB: {{ hsb }} </div>
8
+ <div class="format"> <nz-color-picker nzFormat="rgb" [(ngModel)]="rgb"></nz-color-picker> RGB: {{ rgb }} </div>
9
+ ` ,
10
+ styles : [
11
+ `
12
+ .format {
13
+ display: flex;
14
+ align-items: center;
15
+ margin-bottom: 12px;
16
+ }
17
+
18
+ nz-color-picker {
19
+ margin-right: 8px;
20
+ }
21
+ `
22
+ ]
14
23
} )
15
24
export class NzDemoColorPickerFormatComponent {
16
25
hex : string = '#1677ff' ;
Original file line number Diff line number Diff line change 7
7
8
8
## zh-CN
9
9
10
- 最简单的用法 。
10
+ 渲染触发器的默认文本, ` nzShowText ` 为 ` true ` 时生效 。
11
11
12
12
## en-US
13
13
14
- Show color text.
14
+ The default text of the rendering trigger, effective when ` nzShowText ` is ` true ` .
You can’t perform that action at this time.
0 commit comments