mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
refactor(input): deprecate accept property (#25501)
This commit is contained in:
10
core/src/components.d.ts
vendored
10
core/src/components.d.ts
vendored
@ -1002,7 +1002,8 @@ export namespace Components {
|
|||||||
}
|
}
|
||||||
interface IonInput {
|
interface IonInput {
|
||||||
/**
|
/**
|
||||||
* If the value of the type attribute is `"file"`, then this attribute will indicate the types of files that the server accepts, otherwise it will be ignored. The value must be a comma-separated list of unique content type specifiers.
|
* This attribute is ignored.
|
||||||
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
"accept"?: string;
|
"accept"?: string;
|
||||||
/**
|
/**
|
||||||
@ -1078,7 +1079,7 @@ export namespace Components {
|
|||||||
*/
|
*/
|
||||||
"mode"?: "ios" | "md";
|
"mode"?: "ios" | "md";
|
||||||
/**
|
/**
|
||||||
* If `true`, the user can enter more than one value. This attribute applies when the type attribute is set to `"email"` or `"file"`, otherwise it is ignored.
|
* If `true`, the user can enter more than one value. This attribute applies when the type attribute is set to `"email"`, otherwise it is ignored.
|
||||||
*/
|
*/
|
||||||
"multiple"?: boolean;
|
"multiple"?: boolean;
|
||||||
/**
|
/**
|
||||||
@ -4928,7 +4929,8 @@ declare namespace LocalJSX {
|
|||||||
}
|
}
|
||||||
interface IonInput {
|
interface IonInput {
|
||||||
/**
|
/**
|
||||||
* If the value of the type attribute is `"file"`, then this attribute will indicate the types of files that the server accepts, otherwise it will be ignored. The value must be a comma-separated list of unique content type specifiers.
|
* This attribute is ignored.
|
||||||
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
"accept"?: string;
|
"accept"?: string;
|
||||||
/**
|
/**
|
||||||
@ -5000,7 +5002,7 @@ declare namespace LocalJSX {
|
|||||||
*/
|
*/
|
||||||
"mode"?: "ios" | "md";
|
"mode"?: "ios" | "md";
|
||||||
/**
|
/**
|
||||||
* If `true`, the user can enter more than one value. This attribute applies when the type attribute is set to `"email"` or `"file"`, otherwise it is ignored.
|
* If `true`, the user can enter more than one value. This attribute applies when the type attribute is set to `"email"`, otherwise it is ignored.
|
||||||
*/
|
*/
|
||||||
"multiple"?: boolean;
|
"multiple"?: boolean;
|
||||||
/**
|
/**
|
||||||
|
@ -53,7 +53,8 @@ export class Input implements ComponentInterface {
|
|||||||
@Prop({ reflect: true }) color?: Color;
|
@Prop({ reflect: true }) color?: Color;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If the value of the type attribute is `"file"`, then this attribute will indicate the types of files that the server accepts, otherwise it will be ignored. The value must be a comma-separated list of unique content type specifiers.
|
* This attribute is ignored.
|
||||||
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
@Prop() accept?: string;
|
@Prop() accept?: string;
|
||||||
|
|
||||||
@ -143,7 +144,7 @@ export class Input implements ComponentInterface {
|
|||||||
@Prop() minlength?: number;
|
@Prop() minlength?: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If `true`, the user can enter more than one value. This attribute applies when the type attribute is set to `"email"` or `"file"`, otherwise it is ignored.
|
* If `true`, the user can enter more than one value. This attribute applies when the type attribute is set to `"email"`, otherwise it is ignored.
|
||||||
*/
|
*/
|
||||||
@Prop() multiple?: boolean;
|
@Prop() multiple?: boolean;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user