Skip to content

Commit

Permalink
fix(module:radio): add solid button style (#1924)
Browse files Browse the repository at this point in the history
  • Loading branch information
wendzhue authored and hsuanxyz committed Aug 19, 2018
1 parent 30498c8 commit 5ded2c6
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
15 changes: 15 additions & 0 deletions components/radio/demo/solid.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
order: 9
title:
zh-CN: 填底的按钮样式
en-US: Solid radio button
---

## zh-CN

实色填底的单选按钮样式。

## en-US

Solid radio button style.

18 changes: 18 additions & 0 deletions components/radio/demo/solid.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { Component } from '@angular/core';

@Component({
selector: 'nz-demo-radio-solid',
template: `
<div>
<nz-radio-group [(ngModel)]="radioValue" [nzButtonStyle]="'solid'">
<label nz-radio-button nzValue="A">Hangzhou</label>
<label nz-radio-button nzValue="B">Shanghai</label>
<label nz-radio-button nzValue="C">Beijing</label>
<label nz-radio-button nzValue="D">Chengdu</label>
</nz-radio-group>
</div>
`
})
export class NzDemoRadioSolidComponent {
radioValue = 'A';
}

0 comments on commit 5ded2c6

Please sign in to comment.