mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 03:00:58 +08:00
fix(item): counter defaults to false to make upgrade easier (#24263)
This commit is contained in:
@ -555,7 +555,7 @@ ion-input,css-prop,--placeholder-opacity
|
|||||||
ion-item,shadow
|
ion-item,shadow
|
||||||
ion-item,prop,button,boolean,false,false,false
|
ion-item,prop,button,boolean,false,false,false
|
||||||
ion-item,prop,color,string | undefined,undefined,false,true
|
ion-item,prop,color,string | undefined,undefined,false,true
|
||||||
ion-item,prop,counter,boolean,true,false,false
|
ion-item,prop,counter,boolean,false,false,false
|
||||||
ion-item,prop,detail,boolean | undefined,undefined,false,false
|
ion-item,prop,detail,boolean | undefined,undefined,false,false
|
||||||
ion-item,prop,detailIcon,string,'chevron-forward',false,false
|
ion-item,prop,detailIcon,string,'chevron-forward',false,false
|
||||||
ion-item,prop,disabled,boolean,false,false,false
|
ion-item,prop,disabled,boolean,false,false,false
|
||||||
|
@ -107,7 +107,7 @@ export class Item implements ComponentInterface, AnchorInterface, ButtonInterfac
|
|||||||
/**
|
/**
|
||||||
* If `true`, a character counter will display the ratio of characters used and the total character limit. Only applies when the `maxlength` property is set on the inner `ion-input` or `ion-textarea`.
|
* If `true`, a character counter will display the ratio of characters used and the total character limit. Only applies when the `maxlength` property is set on the inner `ion-input` or `ion-textarea`.
|
||||||
*/
|
*/
|
||||||
@Prop() counter = true;
|
@Prop() counter = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* When using a router, it specifies the transition animation when navigating to
|
* When using a router, it specifies the transition animation when navigating to
|
||||||
|
@ -1933,7 +1933,7 @@ export default defineComponent({
|
|||||||
| ----------------- | ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- | ------------------- |
|
| ----------------- | ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- | ------------------- |
|
||||||
| `button` | `button` | If `true`, a button tag will be rendered and the item will be tappable. | `boolean` | `false` |
|
| `button` | `button` | If `true`, a button tag will be rendered and the item will be tappable. | `boolean` | `false` |
|
||||||
| `color` | `color` | The color to use from your application's color palette. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information on colors, see [theming](/docs/theming/basics). | `string \| undefined` | `undefined` |
|
| `color` | `color` | The color to use from your application's color palette. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information on colors, see [theming](/docs/theming/basics). | `string \| undefined` | `undefined` |
|
||||||
| `counter` | `counter` | If `true`, a character counter will display the ratio of characters used and the total character limit. Only applies when the `maxlength` property is set on the inner `ion-input` or `ion-textarea`. | `boolean` | `true` |
|
| `counter` | `counter` | If `true`, a character counter will display the ratio of characters used and the total character limit. Only applies when the `maxlength` property is set on the inner `ion-input` or `ion-textarea`. | `boolean` | `false` |
|
||||||
| `detail` | `detail` | If `true`, a detail arrow will appear on the item. Defaults to `false` unless the `mode` is `ios` and an `href` or `button` property is present. | `boolean \| undefined` | `undefined` |
|
| `detail` | `detail` | If `true`, a detail arrow will appear on the item. Defaults to `false` unless the `mode` is `ios` and an `href` or `button` property is present. | `boolean \| undefined` | `undefined` |
|
||||||
| `detailIcon` | `detail-icon` | The icon to use when `detail` is set to `true`. | `string` | `'chevron-forward'` |
|
| `detailIcon` | `detail-icon` | The icon to use when `detail` is set to `true`. | `string` | `'chevron-forward'` |
|
||||||
| `disabled` | `disabled` | If `true`, the user cannot interact with the item. | `boolean` | `false` |
|
| `disabled` | `disabled` | If `true`, the user cannot interact with the item. | `boolean` | `false` |
|
||||||
|
Reference in New Issue
Block a user