mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 14:13:45 +00:00
!10373 【ArkUI】【基础能力】TextArea支持自动填充类型
Merge pull request !10373 from xinking129/TextArea_auto_fill_type
This commit is contained in:
commit
a2ecf2d9ed
221
api/@internal/component/ets/text_area.d.ts
vendored
221
api/@internal/component/ets/text_area.d.ts
vendored
@ -396,6 +396,205 @@ declare enum TextAreaType {
|
||||
NUMBER_DECIMAL = 12,
|
||||
}
|
||||
|
||||
/**
|
||||
* Declare the content type of input box
|
||||
*
|
||||
* @enum { number }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
declare enum ContentType {
|
||||
/**
|
||||
* User name content type.
|
||||
*
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
USER_NAME = 0,
|
||||
|
||||
/**
|
||||
* Password content type.
|
||||
*
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
PASSWORD = 1,
|
||||
|
||||
/**
|
||||
* New password content type.
|
||||
*
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
NEW_PASSWORD = 2,
|
||||
|
||||
/**
|
||||
* Full street address content type.
|
||||
*
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
FULL_STREET_ADDRESS = 3,
|
||||
|
||||
/**
|
||||
* House number content type.
|
||||
*
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
HOUSE_NUMBER = 4,
|
||||
|
||||
/**
|
||||
* District address content type.
|
||||
*
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
DISTRICT_ADDRESS = 5,
|
||||
|
||||
/**
|
||||
* City address content type.
|
||||
*
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
CITY_ADDRESS = 6,
|
||||
|
||||
/**
|
||||
* Province address content type.
|
||||
*
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
PROVINCE_ADDRESS = 7,
|
||||
|
||||
/**
|
||||
* Country address content type.
|
||||
*
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
COUNTRY_ADDRESS = 8,
|
||||
|
||||
/**
|
||||
* Person full name content type.
|
||||
*
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
PERSON_FULL_NAME = 9,
|
||||
|
||||
/**
|
||||
* Person last name content type.
|
||||
*
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
PERSON_LAST_NAME = 10,
|
||||
|
||||
/**
|
||||
* Person first name content type.
|
||||
*
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
PERSON_FIRST_NAME = 11,
|
||||
|
||||
/**
|
||||
* Phone number content type.
|
||||
*
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
PHONE_NUMBER = 12,
|
||||
|
||||
/**
|
||||
* Phone country code content type.
|
||||
*
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
PHONE_COUNTRY_CODE = 13,
|
||||
|
||||
/**
|
||||
* Full phone number content type.
|
||||
*
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
FULL_PHONE_NUMBER = 14,
|
||||
|
||||
/**
|
||||
* Email address content type.
|
||||
*
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
EMAIL_ADDRESS = 15,
|
||||
|
||||
/**
|
||||
* Bank card number content type.
|
||||
*
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
BANK_CARD_NUMBER = 16,
|
||||
|
||||
/**
|
||||
* ID card number content type.
|
||||
*
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
ID_CARD_NUMBER = 17,
|
||||
|
||||
/**
|
||||
* Nickname content type.
|
||||
*
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
NICKNAME = 23,
|
||||
|
||||
/**
|
||||
* Detail info without street content type.
|
||||
*
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
DETAIL_INFO_WITHOUT_STREET = 24,
|
||||
|
||||
/**
|
||||
* Format address content type.
|
||||
*
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
FORMAT_ADDRESS = 25
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the attribute functions of TextArea.
|
||||
*
|
||||
@ -1294,6 +1493,28 @@ declare class TextAreaAttribute extends CommonMethod<TextAreaAttribute> {
|
||||
*/
|
||||
type(value: TextAreaType): TextAreaAttribute;
|
||||
|
||||
/**
|
||||
* Sets whether enable auto fill or not.
|
||||
*
|
||||
* @param { boolean } value - Indicates the flag whether autofill is enabled.
|
||||
* @returns { TextAreaAttribute }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
enableAutoFill(value: boolean): TextAreaAttribute;
|
||||
|
||||
/**
|
||||
* Called when the auto fill type is set.
|
||||
*
|
||||
* @param { ContentType } contentType - Indicates autofill type.
|
||||
* @returns { TextAreaAttribute }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
contentType(contentType: ContentType): TextAreaAttribute;
|
||||
|
||||
/**
|
||||
* Set font feature.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user