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