diff --git a/en/application-dev/reference/arkui-ts/ts-basic-components-textpicker.md b/en/application-dev/reference/arkui-ts/ts-basic-components-textpicker.md index c77fe53b56a3900c82b9a69ba8ed68824e0999d3..d995c8213360200087233f9d636d7bdb6d1a2410 100644 --- a/en/application-dev/reference/arkui-ts/ts-basic-components-textpicker.md +++ b/en/application-dev/reference/arkui-ts/ts-basic-components-textpicker.md @@ -1,7 +1,7 @@ # TextPicker -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** +> **NOTE**
> This component is supported since API version 8. Updates will be marked with a superscript to indicate their earliest API version. @@ -25,10 +25,10 @@ TextPicker(value: {range: string[], selected?: number}) Creates a text picker based on the selection range specified by **range**. - Parameter - | Name | Type | Mandatory | Default Value | Description | + | Name | Type | Mandatory | Default Value | Description | | -------- | -------- | -------- | -------- | -------- | | range | string[] | Yes | - | Data selection range of the picker. | - | selected | number | No | First element | Index value of the selected item in the array. | + | selected | number | No | - | Index value of the selected item in the array. By default, the first element is selected. | ## Attributes diff --git a/en/application-dev/reference/arkui-ts/ts-basic-components-texttimer.md b/en/application-dev/reference/arkui-ts/ts-basic-components-texttimer.md index 9664340b21efcc4e5784f2a32cc84e1023a98843..60c972c916e14ea7fc65bd455d49a0575b26e8f5 100644 --- a/en/application-dev/reference/arkui-ts/ts-basic-components-texttimer.md +++ b/en/application-dev/reference/arkui-ts/ts-basic-components-texttimer.md @@ -1,7 +1,7 @@ # TextTimer -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** +> **NOTE**
> This component is supported since API version 8. Updates will be marked with a superscript to indicate their earliest API version. @@ -23,10 +23,10 @@ None TextTimer(options: { isCountDown?: boolean, count?: number, controller?: TextTimerController }) - Parameters - | Name | Type | Mandatory | Default Value | Description | + | Name | Type | Mandatory | Default Value | Description | | -------- | -------- | -------- | -------- | -------- | | isCountDown | boolean | No | false | Whether to count down. | - | count | number | No | 60000 | Countdown time, in milliseconds. This parameter is valid only when **isCountDown** is set to **true**.
- If the value of **count** is less than or equal to 0, the default value is used.
- If the value of **count** is greater than 0, it is used. | + | count | number | No | 60000 | Countdown time, in milliseconds. This parameter is valid only when **isCountDown** is set to **true**.
- If the specified value is less than or equal to 0, the default value is used.
- If the specified value is greater than 0, the value is used. | | controller | [TextTimerController](#texttimercontroller) | No | null | **<TextTimer>** controller. | ## Attributes diff --git a/en/application-dev/reference/arkui-ts/ts-basic-components-timepicker.md b/en/application-dev/reference/arkui-ts/ts-basic-components-timepicker.md index 43f8b6eeb6ac8a18d219829390627c4fe20e4780..0c8193971e4b765b36e7064a2041ec9b646c9332 100644 --- a/en/application-dev/reference/arkui-ts/ts-basic-components-timepicker.md +++ b/en/application-dev/reference/arkui-ts/ts-basic-components-timepicker.md @@ -1,6 +1,6 @@ # TimePicker -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** +> **NOTE**
> This component is supported since API version 8. Updates will be marked with a superscript to indicate their earliest API version. diff --git a/en/application-dev/reference/arkui-ts/ts-basic-components-toggle.md b/en/application-dev/reference/arkui-ts/ts-basic-components-toggle.md index 776fa7633bdff72b2669c2eeddbb292972a5760b..a27d7f1469ff88fcc85b845117e1aa1b8c9cea50 100644 --- a/en/application-dev/reference/arkui-ts/ts-basic-components-toggle.md +++ b/en/application-dev/reference/arkui-ts/ts-basic-components-toggle.md @@ -1,7 +1,7 @@ # Toggle -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** +> **NOTE**
> This component is supported since API version 8. Updates will be marked with a superscript to indicate their earliest API version. @@ -20,14 +20,14 @@ None Toggle(options: { type: ToggleType, isOn?: boolean }) - Parameters - | Name | Type | Mandatory | Default Value | Description | + | Name | Type | Mandatory | Default Value | Description | | -------- | -------- | -------- | -------- | -------- | | type | ToggleType | Yes | - | Type of the toggle. | - | isOn | boolean | No | false | Initial state of the toggle.
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
> If **isOn** is not set during component creation, the selected state can be retained during component reuse. If **isOn** is set, the selected state needs to be retained during component reuse after the selected state is recorded using an event method. | + | isOn | boolean | No | false | Initial state of the toggle.
**NOTE**
If **isOn** is not set during component creation, the selected state can be retained during component reuse. If **isOn** is set, the selected state needs to be retained during component reuse after the selected state is recorded using an event method. | - ToggleType enums - | Name | Description | + | Name | Description | | -------- | -------- | | Checkbox | A checkbox is provided. The text setting of the child component does not take effect. If the text setting is required, you can place the **<Text>** component and the current component in the layout component. | | Button | A button is provided. If the text setting is available, the corresponding text content is displayed inside the button. | @@ -36,15 +36,15 @@ Toggle(options: { type: ToggleType, isOn?: boolean }) ## Attributes - | Name | Type | Default Value | Description | +| Name | Type | Default Value | Description | | -------- | -------- | -------- | -------- | | selectedColor | Color | - | Background color of the toggle when it is enabled. | -| switchPointColor | Color | - | Color of the circular slider of the **Switch** type.
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
> This attribute is valid only when type is set to **ToggleType.Switch**. | +| switchPointColor | Color | - | Color of the circular slider of the **Switch** type.
**NOTE**
This attribute is valid only when type is set to **ToggleType.Switch**. | ## Events - | Name | Description | +| Name | Description | | -------- | -------- | | onChange(callback: (isOn: boolean) => void) | Triggered when the switch status changes. | diff --git a/zh-cn/application-dev/reference/apis/js-apis-Context.md b/zh-cn/application-dev/reference/apis/js-apis-Context.md index 24d14b3ea588689bc71576560e246809bae87e7d..f912aa5edab82c173fbec1f54c2e3440ec2b0a6a 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-Context.md +++ b/zh-cn/application-dev/reference/apis/js-apis-Context.md @@ -491,7 +491,7 @@ getCallingBundle(): Promise\ | 类型 | 说明 | | --------------- | ------------------------- | -| Promise\ | 调用ability的包名称 | +| Promise\ | 调用ability的包名称。 | **示例:** @@ -544,7 +544,7 @@ getCacheDir(): Promise\ | 类型 | 说明 | | --------------- | ------------------------- | -| Promise\ | 获取该应用程序的内部存储目录 | +| Promise\ | 获取该应用程序的内部存储目录。 | **示例:** @@ -758,7 +758,7 @@ getHapModuleInfo(): Promise\ | 类型 | 说明 | | --------------- | ------------------------- | -| Promise\<[HapModuleInfo](#hapmoduleinfo)> | Promise形式返回应用的ModuleInfo对象。 | +| Promise\<[HapModuleInfo](#hapmoduleinfo)> | 返回应用的ModuleInfo对象。 | **示例:** @@ -834,7 +834,7 @@ getAbilityInfo(callback: AsyncCallback\): void | 名称 | 类型 | 必填 | 描述 | | -------- | ---------------------- | ---- | ------------------------- | -| callback | AsyncCallback\<[AbilityInfo](#abilityInfo)> | 是 |回调函数,可以在回调函数中处理接口返回值,返回当前归属Ability详细信息。| +| callback | AsyncCallback\<[AbilityInfo](#abilityInfo)> | 是 | 回调函数,可以在回调函数中处理接口返回值,返回当前归属Ability详细信息。| **示例:** @@ -886,7 +886,7 @@ getApplicationContext(): Context | 类型 | 说明 | | --------- |------ | -| Context |返回应用上下文信息。 | +| Context | 返回应用上下文信息。 | **示例:** @@ -920,27 +920,27 @@ Hap模块信息 | 名称 | 类型 | 可读 | 可写 | 说明 | | ------ | ------ | ------ | ------ | ------ | -| name | string | 是 | 否 | 模块名称 | -| description | string | 是 | 否 | 模块描述信息 | -| descriptionId | number | 是 | 否 | 描述信息ID | -| icon | string | 是 | 否 | 模块图标 | -| label | string | 是 | 否 | 模块标签 | -| labelId | number | 是 | 否 | 模块标签ID | -| iconId | number | 是 | 否 | 模块图标ID | -| backgroundImg | string | 是 | 否 | 模块背景图片 | -| supportedModes | number | 是 | 否 | 模块支持的模式 | -| reqCapabilities | Array | 是 | 否 | 模块运行需要的能力 | -| deviceTypes | Array | 是 | 否 | 支持运行的设备类型 | -| abilityInfo | Array | 是 | 否 | Ability信息 | -| moduleName | string | 是 | 否 | 模块名 | -| mainAbilityName | string | 是 | 否 | 入口Ability名称 | -| installationFree | boolean | 是 | 否 | 是否支持免安装 | -| mainElementName | string | 是 | 否 | 入口ability信息 | +| name | string | 是 | 否 | 模块名称。 | +| description | string | 是 | 否 | 模块描述信息。 | +| descriptionId | number | 是 | 否 | 描述信息ID。 | +| icon | string | 是 | 否 | 模块图标。 | +| label | string | 是 | 否 | 模块标签。 | +| labelId | number | 是 | 否 | 模块标签ID。 | +| iconId | number | 是 | 否 | 模块图标ID。 | +| backgroundImg | string | 是 | 否 | 模块背景图片。 | +| supportedModes | number | 是 | 否 | 模块支持的模式。 | +| reqCapabilities | Array | 是 | 否 | 模块运行需要的能力。 | +| deviceTypes | Array | 是 | 否 | 支持运行的设备类型。 | +| abilityInfo | Array | 是 | 否 | Ability信息。 | +| moduleName | string | 是 | 否 | 模块名。 | +| mainAbilityName | string | 是 | 否 | 入口Ability名称。 | +| installationFree | boolean | 是 | 否 | 是否支持免安装。 | +| mainElementName | string | 是 | 否 | 入口ability信息。 | ## AppVersionInfo7+ | 名称 | 类型 | 可读 | 可写 | 说明 | | ------ | ------ | ------| ------ | ------ | -| appName | string | 是 | 否 | 模块名称 | -| versionCode | number | 是 | 否 | 模块描述信息 | -| versionName | string | 是 | 否 | 描述信息ID | +| appName | string | 是 | 否 | 模块名称。 | +| versionCode | number | 是 | 否 | 模块描述信息。 | +| versionName | string | 是 | 否 | 描述信息ID。 |