mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 15:07:13 +08:00
fix(prop): rename prop state to mutable
This commit is contained in:
@ -1,8 +1,7 @@
|
||||
import { Component, Element, Event, EventEmitter, HostElement, Prop , State} from '@stencil/core';
|
||||
|
||||
import { isCheckedProperty } from '../../utils/helpers';
|
||||
import { Radio } from './radio';
|
||||
|
||||
import { isCheckedProperty } from '../../utils/helpers';
|
||||
|
||||
/**
|
||||
* @name RadioGroup
|
||||
@ -80,12 +79,12 @@ export class RadioGroup {
|
||||
/*
|
||||
* @input {boolean} If true, the user cannot interact with this element. Default false.
|
||||
*/
|
||||
@Prop({ state: true }) disabled: boolean = false;
|
||||
@Prop({ mutable: true }) disabled: boolean = false;
|
||||
|
||||
/**
|
||||
* @input {string} the value of the radio.
|
||||
*/
|
||||
@Prop({ state: true }) value: string;
|
||||
@Prop({ mutable: true }) value: string;
|
||||
|
||||
|
||||
ionViewWillLoad() {
|
||||
|
||||
@ -1,8 +1,6 @@
|
||||
import { Component, CssClassMap, Element, Event, EventEmitter, Listen, Prop, PropDidChange, State } from '@stencil/core';
|
||||
|
||||
import { createThemedClasses } from '../../utils/theme';
|
||||
|
||||
import { RadioGroup } from './radio-group';
|
||||
|
||||
/**
|
||||
* @description
|
||||
@ -76,17 +74,17 @@ export class Radio {
|
||||
/*
|
||||
* @input {boolean} If true, the radio is checked. Default false.
|
||||
*/
|
||||
@Prop({ state: true }) checked: boolean = false;
|
||||
@Prop({ mutable: true }) checked: boolean = false;
|
||||
|
||||
/*
|
||||
* @input {boolean} If true, the user cannot interact with this element. Default false.
|
||||
*/
|
||||
@Prop({ state: true }) disabled: boolean = false;
|
||||
@Prop({ mutable: true }) disabled: boolean = false;
|
||||
|
||||
/**
|
||||
* @input {string} the value of the radio.
|
||||
*/
|
||||
@Prop({ state: true }) value: string;
|
||||
@Prop({ mutable: true }) value: string;
|
||||
|
||||
|
||||
ionViewWillLoad() {
|
||||
|
||||
@ -20,7 +20,7 @@ export class SelectOption {
|
||||
/**
|
||||
* @input {boolean} If true, the element is selected.
|
||||
*/
|
||||
@Prop({state: true}) selected: boolean = false;
|
||||
@Prop({ mutable: true }) selected: boolean = false;
|
||||
|
||||
/**
|
||||
* @input {string} The text value of the option.
|
||||
|
||||
Reference in New Issue
Block a user