diff --git a/src/components/radio/nz-radio-button.component.ts b/src/components/radio/nz-radio-button.component.ts index 6cec0700518..747abfc66a5 100644 --- a/src/components/radio/nz-radio-button.component.ts +++ b/src/components/radio/nz-radio-button.component.ts @@ -24,8 +24,8 @@ import { NzRadioComponent } from './nz-radio.component'; ] }) export class NzRadioButtonComponent extends NzRadioComponent implements OnInit { - private _radioButtonDisabled = false; - private _radioButtonChecked = false; + _checked = false; + _disabled = false; _prefixCls = 'ant-radio-button'; _innerPrefixCls = `${this._prefixCls}-inner`; _inputPrefixCls = `${this._prefixCls}-input`; @@ -33,22 +33,22 @@ export class NzRadioButtonComponent extends NzRadioComponent implements OnInit { @Input() @HostBinding('class.ant-radio-button-wrapper-disabled') set nzDisabled(value: boolean) { - this._radioButtonDisabled = toBoolean(value); + this._disabled = toBoolean(value); this.setClassMap(); } get nzDisabled(): boolean { - return this._radioButtonDisabled; + return this._disabled; } @Input() @HostBinding('class.ant-radio-button-wrapper-checked') set nzChecked(value: boolean) { - this._radioButtonChecked = toBoolean(value); + this._checked = toBoolean(value); this.setClassMap(); } get nzChecked(): boolean { - return this._radioButtonChecked; + return this._checked; } } diff --git a/src/components/radio/nz-radio.component.ts b/src/components/radio/nz-radio.component.ts index 7f07d24749f..1f9b8fd6101 100644 --- a/src/components/radio/nz-radio.component.ts +++ b/src/components/radio/nz-radio.component.ts @@ -37,9 +37,9 @@ import { NzRadioGroupComponent } from './nz-radio-group.component'; ] }) export class NzRadioComponent implements OnInit, ControlValueAccessor { - private _checked = false; - private _disabled = false; private _focused = false; + _checked = false; + _disabled = false; _el: HTMLElement; _classMap; _value: string;