mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
fix(all): lint errors
This commit is contained in:
@ -51,8 +51,8 @@ Since select uses the alert, action sheet and popover interfaces, options can be
|
||||
| `multiple` | `multiple` | If true, the select can accept multiple values. | `boolean` |
|
||||
| `name` | `name` | The name of the control, which is submitted with the form data. | `string` |
|
||||
| `okText` | `ok-text` | The text to display on the ok button. Default: `OK`. | `string` |
|
||||
| `placeholder` | `placeholder` | The text to display when the select is empty. | `string` |
|
||||
| `selectedText` | `selected-text` | The text to display instead of the selected option's value. | `string` |
|
||||
| `placeholder` | `placeholder` | The text to display when the select is empty. | `string`, `null` |
|
||||
| `selectedText` | `selected-text` | The text to display instead of the selected option's value. | `string`, `null` |
|
||||
| `value` | -- | the value of the select. | `any`, `null` |
|
||||
|
||||
|
||||
|
||||
@ -27,7 +27,7 @@ export class Select implements ComponentInterface {
|
||||
|
||||
@State() isExpanded = false;
|
||||
@State() keyFocus = false;
|
||||
@State() text?: string;
|
||||
@State() text?: string | null;
|
||||
|
||||
/**
|
||||
* The mode determines which platform styles to use.
|
||||
@ -53,7 +53,7 @@ export class Select implements ComponentInterface {
|
||||
/**
|
||||
* The text to display when the select is empty.
|
||||
*/
|
||||
@Prop() placeholder?: string;
|
||||
@Prop() placeholder?: string | null;
|
||||
|
||||
/**
|
||||
* The name of the control, which is submitted with the form data.
|
||||
@ -63,7 +63,7 @@ export class Select implements ComponentInterface {
|
||||
/**
|
||||
* The text to display instead of the selected option's value.
|
||||
*/
|
||||
@Prop() selectedText?: string;
|
||||
@Prop() selectedText?: string | null;
|
||||
|
||||
/**
|
||||
* If true, the select can accept multiple values.
|
||||
|
||||
Reference in New Issue
Block a user