diff --git a/en/application-dev/application-dev-website.md b/en/application-dev/application-dev-website.md index 9220e1592f5251d39254f00413166c0ab99f112e..66073d584466a78ae44c6e8fffa2fa46e358bf66 100644 --- a/en/application-dev/application-dev-website.md +++ b/en/application-dev/application-dev-website.md @@ -306,8 +306,7 @@ - [Event Parameter](reference/arkui-js/js-components-custom-event-parameter.md) - [slot](reference/arkui-js/js-components-custom-slot.md) - [Lifecycle Definition](reference/arkui-js/js-components-custom-lifecycle.md) - - Appendix - - [Type Attributes](reference/arkui-js/js-appendix-types.md) + - [Type Attributes](reference/arkui-js/js-appendix-types.md) - Compent Reference (TypeScript-based Declarative Development Paradigm) - Components - Universal Components @@ -364,24 +363,34 @@ - [DataPanel](reference/arkui-ts/ts-basic-components-datapanel.md) - [DatePicker](reference/arkui-ts/ts-basic-components-datepicker.md) - [Divider](reference/arkui-ts/ts-basic-components-divider.md) + - [Gauge](reference/arkui-ts/ts-basic-components-gauge.md) - [Image](reference/arkui-ts/ts-basic-components-image.md) - [ImageAnimator](reference/arkui-ts/ts-basic-components-imageanimator.md) - [LoadingProgress](reference/arkui-ts/ts-basic-components-loadingprogress.md) - [Marquee](reference/arkui-ts/ts-basic-components-marquee.md) + - [PatternLock](reference/arkui-ts/ts-basic-components-patternlock.md) + - [PluginComponent](reference/arkui-ts/ts-basic-components-plugincomponent.md) - [Progress](reference/arkui-ts/ts-basic-components-progress.md) - [QRCode](reference/arkui-ts/ts-basic-components-qrcode.md) - [Radio](reference/arkui-ts/ts-basic-components-radio.md) - [Rating](reference/arkui-ts/ts-basic-components-rating.md) + - [RichText](reference/arkui-ts/ts-basic-components-richtext.md) + - [Search](reference/arkui-ts/ts-basic-components-search.md) - [Select](reference/arkui-ts/ts-basic-components-select.md) - [Slider](reference/arkui-ts/ts-basic-components-slider.md) - [Span](reference/arkui-ts/ts-basic-components-span.md) + - [Stepper](reference/arkui-ts/ts-basic-components-stepper.md) + - [StepperItem](reference/arkui-ts/ts-basic-components-stepperitem.md) - [Text](reference/arkui-ts/ts-basic-components-text.md) - [TextArea](reference/arkui-ts/ts-basic-components-textarea.md) + - [TextClock](reference/arkui-ts/ts-basic-components-textclock.md) - [TextInput](reference/arkui-ts/ts-basic-components-textinput.md) + - [TextPicker](reference/arkui-ts/ts-basic-components-textpicker.md) - [TextTimer](reference/arkui-ts/ts-basic-components-texttimer.md) + - [TimePicker](reference/arkui-ts/ts-basic-components-timepicker.md) - [Toggle](reference/arkui-ts/ts-basic-components-toggle.md) - - [TextClock](reference/arkui-ts/ts-basic-components-textclock.md) - [Web](reference/arkui-ts/ts-basic-components-web.md) + - [Xcomponent](reference/arkui-ts/ts-basic-components-xcomponent.md) - Container Components - [AlphabetIndexer](reference/arkui-ts/ts-container-alphabet-indexer.md) - [Badge](reference/arkui-ts/ts-container-badge.md) @@ -397,6 +406,7 @@ - [Navigator](reference/arkui-ts/ts-container-navigator.md) - [Navigation](reference/arkui-ts/ts-container-navigation.md) - [Panel](reference/arkui-ts/ts-container-panel.md) + - [Refresh](reference/arkui-ts/ts-container-refresh.md) - [Row](reference/arkui-ts/ts-container-row.md) - [RowSplit](reference/arkui-ts/ts-container-rowsplit.md) - [Scroll](reference/arkui-ts/ts-container-scroll.md) @@ -406,7 +416,6 @@ - [Swiper](reference/arkui-ts/ts-container-swiper.md) - [Tabs](reference/arkui-ts/ts-container-tabs.md) - [TabContent](reference/arkui-ts/ts-container-tabcontent.md) - - [Refresh](reference/arkui-ts/ts-container-refresh.md) - Media Components - [Video](reference/arkui-ts/ts-media-components-video.md) - Drawing Components @@ -438,7 +447,6 @@ - [Matrix Transformation](reference/arkui-ts/ts-matrix-transformation.md) - [Interpolation Calculation](reference/arkui-ts/ts-interpolation-calculation.md) - Global UI Methods - - [Image Cache](reference/arkui-ts/ts-methods-image-cache.md) - Dialog Box - [Alert Dialog Box](reference/arkui-ts/ts-methods-alert-dialog-box.md) - [Action Sheet](reference/arkui-ts/ts-methods-action-sheet.md) @@ -446,8 +454,7 @@ - [Date Picker Dialog Box](reference/arkui-ts/ts-methods-datepicker-dialog.md) - [Text Picker Dialog Box](reference/arkui-ts/ts-methods-textpicker-dialog.md) - [Menu](reference/arkui-ts/ts-methods-menu.md) - - Appendix - - [Built-in Enums](reference/arkui-ts/ts-appendix-enums.md) + - [Built-in Enums](reference/arkui-ts/ts-appendix-enums.md) - APIs - Ability Framework - [FeatureAbility Module](reference/apis/js-apis-featureAbility.md) diff --git a/en/application-dev/reference/apis/js-apis-resource-manager.md b/en/application-dev/reference/apis/js-apis-resource-manager.md index 7af90e99d9b1b57f167acb10de07c8bffbc5875c..e5e05092630126119a870b5e8e430d62abaac43b 100644 --- a/en/application-dev/reference/apis/js-apis-resource-manager.md +++ b/en/application-dev/reference/apis/js-apis-resource-manager.md @@ -1,4 +1,4 @@ -Resource Management +# Resource Management > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
> The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version. @@ -19,9 +19,9 @@ Obtains the **ResourceManager** object of this application. This method uses a c **System capability**: SystemCapability.Global.ResourceManager **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ---------------------------------------- | ---- | ----------------------------- | -| callback | AsyncCallback<[ResourceManager](#resourcemanager)> | Yes | Callback used to return the **ResourceManager** object obtained.| +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | --------- | ---------------------------------------- | +| callback | AsyncCallback<[ResourceManager](#resourcemanager)> | Yes | Callback used to return the **ResourceManager** object obtained. | **Example** ``` @@ -50,10 +50,10 @@ Obtains the **ResourceManager** object of an application. This method uses an as **System capability**: SystemCapability.Global.ResourceManager **Parameters** -| Name | Type | Mandatory | Description | -| ---------- | ---------------------------------------- | ---- | ----------------------------- | -| bundleName | string | Yes | Bundle name of the target application. | -| callback | AsyncCallback<[ResourceManager](#resourcemanager)> | Yes | Callback used to return the **ResourceManager** object obtained.| +| Name | Type | Mandatory | Description | +| ---------- | ---------------------------------------- | --------- | ---------------------------------------- | +| bundleName | string | Yes | Bundle name of the target application. | +| callback | AsyncCallback<[ResourceManager](#resourcemanager)> | Yes | Callback used to return the **ResourceManager** object obtained. | **Example** ``` @@ -71,9 +71,9 @@ Obtains the **ResourceManager** object of this application. This method uses a p **System capability**: SystemCapability.Global.ResourceManager **Return value** -| Type | Description | -| ---------------------------------------- | ----------------- | -| Promise<[ResourceManager](#resourcemanager)> | Promise used to return the **ResourceManager** object obtained.| +| Type | Description | +| ---------------------------------------- | ---------------------------------------- | +| Promise<[ResourceManager](#resourcemanager)> | Promise used to return the **ResourceManager** object obtained. | **Example** ``` @@ -100,14 +100,14 @@ Obtains the **ResourceManager** object of an application. This method uses a pro **System capability**: SystemCapability.Global.ResourceManager **Parameters** -| Name | Type | Mandatory | Description | -| ---------- | ------ | ---- | ------------- | -| bundleName | string | Yes | Bundle name of the target application.| +| Name | Type | Mandatory | Description | +| ---------- | ------ | --------- | -------------------------------------- | +| bundleName | string | Yes | Bundle name of the target application. | **Return value** -| Type | Description | -| ---------------------------------------- | ------------------ | -| Promise<[ResourceManager](#resourcemanager)> | Promise used to return the **ResourceManager** object obtained.| +| Type | Description | +| ---------------------------------------- | ---------------------------------------- | +| Promise<[ResourceManager](#resourcemanager)> | Promise used to return the **ResourceManager** object obtained. | **Example** ``` @@ -125,10 +125,10 @@ Enumerates the screen directions. **System capability**: SystemCapability.Global.ResourceManager -| Name | Default Value | Description | -| -------------------- | ---- | ---- | -| DIRECTION_VERTICAL | 0 | Portrait | -| DIRECTION_HORIZONTAL | 1 | Landscape | +| Name | Default Value | Description | +| -------------------- | ------------- | ----------- | +| DIRECTION_VERTICAL | 0 | Portrait | +| DIRECTION_HORIZONTAL | 1 | Landscape | ## DeviceType @@ -137,14 +137,14 @@ Enumerates the device types. **System capability**: SystemCapability.Global.ResourceManager -| Name | Default Value | Description | -| -------------------- | ---- | ---- | -| DEVICE_TYPE_PHONE | 0x00 | Mobile phone. | -| DEVICE_TYPE_TABLET | 0x01 | Tablet. | -| DEVICE_TYPE_CAR | 0x02 | Automobile. | -| DEVICE_TYPE_PC | 0x03 | Computer. | -| DEVICE_TYPE_TV | 0x04 | TV. | -| DEVICE_TYPE_WEARABLE | 0x06 | Wearable. | +| Name | Default Value | Description | +| -------------------- | ------------- | ------------- | +| DEVICE_TYPE_PHONE | 0x00 | Mobile phone. | +| DEVICE_TYPE_TABLET | 0x01 | Tablet. | +| DEVICE_TYPE_CAR | 0x02 | Automobile. | +| DEVICE_TYPE_PC | 0x03 | Computer. | +| DEVICE_TYPE_TV | 0x04 | TV. | +| DEVICE_TYPE_WEARABLE | 0x06 | Wearable. | ## ScreenDensity @@ -153,14 +153,14 @@ Enumerates the screen density types. **System capability**: SystemCapability.Global.ResourceManager -| Name | Default Value | Description | -| -------------- | ---- | ---------- | -| SCREEN_SDPI | 120 | Screen density with small-scale dots per inch (SDPI). | -| SCREEN_MDPI | 160 | Screen density with medium-scale dots per inch (MDPI). | -| SCREEN_LDPI | 240 | Screen density with large-scale dots per inch (LDPI). | -| SCREEN_XLDPI | 320 | Screen density with extra-large-scale dots per inch (XLDPI). | -| SCREEN_XXLDPI | 480 | Screen density with extra-extra-large-scale dots per inch (XXLDPI). | -| SCREEN_XXXLDPI | 640 | Screen density with extra-extra-extra-large-scale dots per inch (XXXLDPI).| +| Name | Default Value | Description | +| -------------- | ------------- | ---------------------------------------- | +| SCREEN_SDPI | 120 | Screen density with small-scale dots per inch (SDPI). | +| SCREEN_MDPI | 160 | Screen density with medium-scale dots per inch (MDPI). | +| SCREEN_LDPI | 240 | Screen density with large-scale dots per inch (LDPI). | +| SCREEN_XLDPI | 320 | Screen density with extra-large-scale dots per inch (XLDPI). | +| SCREEN_XXLDPI | 480 | Screen density with extra-extra-large-scale dots per inch (XXLDPI). | +| SCREEN_XXXLDPI | 640 | Screen density with extra-extra-extra-large-scale dots per inch (XXXLDPI). | ## Configuration @@ -170,10 +170,10 @@ Defines the device configuration. **System capability**: SystemCapability.Global.ResourceManager -| Name | Type | Readable | Writable | Description | -| --------- | ----------------------- | ---- | ---- | -------- | -| direction | [Direction](#direction) | Yes | No | Screen direction of the device.| -| locale | string | Yes | No | Current system language. | +| Name | Type | Readable | Writable | Description | +| --------- | ----------------------- | -------- | -------- | ------------------------------- | +| direction | [Direction](#direction) | Yes | No | Screen direction of the device. | +| locale | string | Yes | No | Current system language. | ## DeviceCapability @@ -183,10 +183,10 @@ Defines the device capability. **System capability**: SystemCapability.Global.ResourceManager -| Name | Type | Readable | Writable | Description | -| ------------- | ------------------------------- | ---- | ---- | -------- | -| screenDensity | [ScreenDensity](#screendensity) | Yes | No | Screen density of the device.| -| deviceType | [DeviceType](#devicetype) | Yes | No | Type of the device. | +| Name | Type | Readable | Writable | Description | +| ------------- | ------------------------------- | -------- | -------- | ----------------------------- | +| screenDensity | [ScreenDensity](#screendensity) | Yes | No | Screen density of the device. | +| deviceType | [DeviceType](#devicetype) | Yes | No | Type of the device. | ## RawFileDescriptor8+ @@ -194,11 +194,11 @@ Defines the device capability. Defines the descriptor information of the raw file.
**System capability**: SystemCapability.Global.ResourceManager -| Name | Type | Description | -| ------ | ------ | ------------------ | -| fd | number | Descriptor of a raw file.| -| offset | number | Offset to the start position of the raw file. | -| length | number | Length of the raw file. | +| Name | Type | Description | +| ------ | ------ | ---------------------------------------- | +| fd | number | Descriptor of a raw file. | +| offset | number | Offset to the start position of the raw file. | +| length | number | Length of the raw file. | ## ResourceManager @@ -220,10 +220,10 @@ Obtains the string corresponding to the specified resource ID. This method uses **System capability**: SystemCapability.Global.ResourceManager **Parameters** -| Name | Type | Mandatory | Description | -| -------- | --------------------------- | ---- | --------------- | -| resId | number | Yes | Resource ID. | -| callback | AsyncCallback<string> | Yes | Callback used to return the string obtained.| +| Name | Type | Mandatory | Description | +| -------- | --------------------------- | --------- | ---------------------------------------- | +| resId | number | Yes | Resource ID. | +| callback | AsyncCallback<string> | Yes | Callback used to return the string obtained. | **Example** ``` @@ -248,14 +248,14 @@ Obtains the string corresponding to the specified resource ID. This method uses **System capability**: SystemCapability.Global.ResourceManager **Parameters** -| Name | Type | Mandatory | Description | -| ----- | ------ | ---- | ----- | -| resId | number | Yes | Resource ID.| +| Name | Type | Mandatory | Description | +| ----- | ------ | --------- | ------------ | +| resId | number | Yes | Resource ID. | **Return value** -| Type | Description | -| --------------------- | ----------- | -| Promise<string> | Promise used to return the string obtained.| +| Type | Description | +| --------------------- | ---------------------------------------- | +| Promise<string> | Promise used to return the string obtained. | **Example** ``` @@ -278,10 +278,10 @@ Obtains the array of strings corresponding to the specified resource ID. This me **System capability**: SystemCapability.Global.ResourceManager **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ---------------------------------------- | ---- | ----------------- | -| resId | number | Yes | Resource ID. | -| callback | AsyncCallback<Array<string>> | Yes | Callback used to return the obtained array of strings.| +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | --------- | ---------------------------------------- | +| resId | number | Yes | Resource ID. | +| callback | AsyncCallback<Array<string>> | Yes | Callback used to return the obtained array of strings. | **Example** ``` @@ -306,14 +306,14 @@ Obtains the array of strings corresponding to the specified resource ID. This me **System capability**: SystemCapability.Global.ResourceManager **Parameters** -| Name | Type | Mandatory | Description | -| ----- | ------ | ---- | ----- | -| resId | number | Yes | Resource ID.| +| Name | Type | Mandatory | Description | +| ----- | ------ | --------- | ------------ | +| resId | number | Yes | Resource ID. | **Return value** -| Type | Description | -| ---------------------------------- | ------------- | -| Promise<Array<string>> | Promise used to return the array of strings obtained.| +| Type | Description | +| ---------------------------------- | ---------------------------------------- | +| Promise<Array<string>> | Promise used to return the array of strings obtained. | **Example** ``` @@ -336,10 +336,10 @@ Obtains the content of the media file corresponding to the specified resource ID **System capability**: SystemCapability.Global.ResourceManager **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ------------------------------- | ---- | ------------------ | -| resId | number | Yes | Resource ID. | -| callback | AsyncCallback<Uint8Array> | Yes | Callback used to return the content of the media file obtained.| +| Name | Type | Mandatory | Description | +| -------- | ------------------------------- | --------- | ---------------------------------------- | +| resId | number | Yes | Resource ID. | +| callback | AsyncCallback<Uint8Array> | Yes | Callback used to return the content of the media file obtained. | **Example** ``` @@ -364,14 +364,14 @@ Obtains the content of the media file corresponding to the specified resource ID **System capability**: SystemCapability.Global.ResourceManager **Parameters** -| Name | Type | Mandatory | Description | -| ----- | ------ | ---- | ----- | -| resId | number | Yes | Resource ID.| +| Name | Type | Mandatory | Description | +| ----- | ------ | --------- | ------------ | +| resId | number | Yes | Resource ID. | **Return value** -| Type | Description | -| ------------------------- | -------------- | -| Promise<Uint8Array> | Promise used to return the content of the media file obtained.| +| Type | Description | +| ------------------------- | ---------------------------------------- | +| Promise<Uint8Array> | Promise used to return the content of the media file obtained. | **Example** ``` @@ -394,10 +394,10 @@ Obtains the Base64 code of the image corresponding to the specified resource ID. **System capability**: SystemCapability.Global.ResourceManager **Parameters** -| Name | Type | Mandatory | Description | -| -------- | --------------------------- | ---- | ------------------------ | -| resId | number | Yes | Resource ID. | -| callback | AsyncCallback<string> | Yes | Callback used to return the Base64 code of the image obtained.| +| Name | Type | Mandatory | Description | +| -------- | --------------------------- | --------- | ---------------------------------------- | +| resId | number | Yes | Resource ID. | +| callback | AsyncCallback<string> | Yes | Callback used to return the Base64 code of the image obtained. | **Example** ``` @@ -422,14 +422,14 @@ Obtains the Base64 code of the image corresponding to the specified resource ID. **System capability**: SystemCapability.Global.ResourceManager **Parameters** -| Name | Type | Mandatory | Description | -| ----- | ------ | ---- | ----- | -| resId | number | Yes | Resource ID.| +| Name | Type | Mandatory | Description | +| ----- | ------ | --------- | ------------ | +| resId | number | Yes | Resource ID. | **Return value** -| Type | Description | -| --------------------- | -------------------- | -| Promise<string> | Promise used to return the Base64 code of the image obtained.| +| Type | Description | +| --------------------- | ---------------------------------------- | +| Promise<string> | Promise used to return the Base64 code of the image obtained. | **Example** ``` @@ -452,9 +452,9 @@ Obtains the device configuration. This method uses an asynchronous callback to r **System capability**: SystemCapability.Global.ResourceManager **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ---------------------------------------- | ---- | ------------------------- | -| callback | AsyncCallback<[Configuration](#configuration)> | Yes | Callback used to return the obtained device configuration.| +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | --------- | ---------------------------------------- | +| callback | AsyncCallback<[Configuration](#configuration)> | Yes | Callback used to return the obtained device configuration. | **Example** ``` @@ -479,9 +479,9 @@ Obtains the device configuration. This method uses a promise to return the resul **System capability**: SystemCapability.Global.ResourceManager **Return value** -| Type | Description | -| ---------------------------------------- | ---------------- | -| Promise<[Configuration](#configuration)> | Promise used to return the device configuration.| +| Type | Description | +| ---------------------------------------- | ---------------------------------------- | +| Promise<[Configuration](#configuration)> | Promise used to return the device configuration. | **Example** ``` @@ -504,9 +504,9 @@ Obtains the device capability. This method uses an asynchronous callback to retu **System capability**: SystemCapability.Global.ResourceManager **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ---------------------------------------- | ---- | ---------------------------- | -| callback | AsyncCallback<[DeviceCapability](#devicecapability)> | Yes | Callback used to return the obtained device capability.| +| Name | Type | Mandatory | Description | +| -------- | ---------------------------------------- | --------- | ---------------------------------------- | +| callback | AsyncCallback<[DeviceCapability](#devicecapability)> | Yes | Callback used to return the obtained device capability. | **Example** ``` @@ -531,9 +531,9 @@ Obtains the device capability. This method uses a promise to return the result. **System capability**: SystemCapability.Global.ResourceManager **Return value** -| Type | Description | -| ---------------------------------------- | ------------------- | -| Promise<[DeviceCapability](#devicecapability)> | Promise used to return the obtained device capability.| +| Type | Description | +| ---------------------------------------- | ---------------------------------------- | +| Promise<[DeviceCapability](#devicecapability)> | Promise used to return the obtained device capability. | **Example** ``` @@ -556,11 +556,11 @@ Obtains the specified number of singular-plural strings corresponding to the spe **System capability**: SystemCapability.Global.ResourceManager **Parameters** -| Name | Type | Mandatory | Description | -| -------- | --------------------------- | ---- | ------------------------------- | -| resId | number | Yes | Resource ID. | -| num | number | Yes | Number that determines the plural or singular form. | -| callback | AsyncCallback<string> | Yes | Callback used to return the singular-plural string obtained.| +| Name | Type | Mandatory | Description | +| -------- | --------------------------- | --------- | ---------------------------------------- | +| resId | number | Yes | Resource ID. | +| num | number | Yes | Number that determines the plural or singular form. | +| callback | AsyncCallback<string> | Yes | Callback used to return the singular-plural string obtained. | **Example** ``` @@ -585,15 +585,15 @@ Obtains the specified number of singular-plural strings corresponding to the spe **System capability**: SystemCapability.Global.ResourceManager **Parameters** -| Name | Type | Mandatory | Description | -| ----- | ------ | ---- | ----- | -| resId | number | Yes | Resource ID.| -| num | number | Yes | Number that determines the plural or singular form. | +| Name | Type | Mandatory | Description | +| ----- | ------ | --------- | ---------------------------------------- | +| resId | number | Yes | Resource ID. | +| num | number | Yes | Number that determines the plural or singular form. | **Return value** -| Type | Description | -| --------------------- | ------------------------- | -| Promise<string> | Promise used to return the singular-plural string obtained.| +| Type | Description | +| --------------------- | ---------------------------------------- | +| Promise<string> | Promise used to return the singular-plural string obtained. | **Example** ``` @@ -615,10 +615,10 @@ Obtains the content of the raw file in the specified path. This method uses an a **System capability**: SystemCapability.Global.ResourceManager **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ------------------------------- | ---- | ----------------------- | -| path | string | Yes | Path of the raw file. | -| callback | AsyncCallback<Uint8Array> | Yes | Callback used to return the raw file content, in byte arrays.| +| Name | Type | Mandatory | Description | +| -------- | ------------------------------- | --------- | ---------------------------------------- | +| path | string | Yes | Path of the raw file. | +| callback | AsyncCallback<Uint8Array> | Yes | Callback used to return the raw file content, in byte arrays. | **Example** ``` @@ -642,14 +642,14 @@ Obtains the content of the raw file in the specified path. This method uses a pr **System capability**: SystemCapability.Global.ResourceManager **Parameters** -| Name | Type | Mandatory | Description | -| ---- | ------ | ---- | ----------- | -| path | string | Yes | Path of the raw file.| +| Name | Type | Mandatory | Description | +| ---- | ------ | --------- | --------------------- | +| path | string | Yes | Path of the raw file. | **Return value** -| Type | Description | -| ------------------------- | ----------- | -| Promise<Uint8Array> | Promise used to return the raw file content, in byte arrays.| +| Type | Description | +| ------------------------- | ---------------------------------------- | +| Promise<Uint8Array> | Promise used to return the raw file content, in byte arrays. | **Example** ``` @@ -671,10 +671,10 @@ Obtains the descriptor of the raw file in the specified path. This method uses a **System capability**: SystemCapability.Global.ResourceManager **Parameters** -| Name | Type | Mandatory | Description | -| -------- | ---------------------------------------- | ---- | -------------------------------- | -| path | string | Yes | Path of the raw file. | -| callback | AsyncCallback<[RawFileDescriptor](#rawfiledescriptor8+ - -- **[Type Attributes](js-appendix-types.md)** - - diff --git a/en/application-dev/reference/arkui-js/js-components-basic.md b/en/application-dev/reference/arkui-js/js-components-basic.md deleted file mode 100644 index f45b29fc2c17e08c2198ed598f5ddb07bf5308e8..0000000000000000000000000000000000000000 --- a/en/application-dev/reference/arkui-js/js-components-basic.md +++ /dev/null @@ -1,57 +0,0 @@ -# Basic Components - -- **[button](js-components-basic-button.md)** - -- **[chart](js-components-basic-chart.md)** - -- **[divider](js-components-basic-divider.md)** - -- **[image](js-components-basic-image.md)** - -- **[image-animator](js-components-basic-image-animator.md)** - -- **[input](js-components-basic-input.md)** - -- **[label](js-components-basic-label.md)** - -- **[marquee](js-components-basic-marquee.md)** - -- **[menu](js-components-basic-menu.md)** - -- **[option](js-components-basic-option.md)** - -- **[picker](js-components-basic-picker.md)** - -- **[picker-view](js-components-basic-picker-view.md)** - -- **[piece](js-components-basic-piece.md)** - -- **[progress](js-components-basic-progress.md)** - -- **[qrcode](js-components-basic-qrcode.md)** - -- **[rating](js-components-basic-rating.md)** - -- **[richtext](js-components-basic-richtext.md)** - -- **[search](js-components-basic-search.md)** - -- **[select](js-components-basic-select.md)** - -- **[slider](js-components-basic-slider.md)** - -- **[span](js-components-basic-span.md)** - -- **[switch](js-components-basic-switch.md)** - -- **[text](js-components-basic-text.md)** - -- **[textarea](js-components-basic-textarea.md)** - -- **[toolbar](js-components-basic-toolbar.md)** - -- **[toolbar-item](js-components-basic-toolbar-item.md)** - -- **[toggle](js-components-basic-toggle.md)** - - diff --git a/en/application-dev/reference/arkui-js/js-components-canvas.md b/en/application-dev/reference/arkui-js/js-components-canvas.md deleted file mode 100644 index ffc337dc7eff4415dc24a5ab9212e19ddc792be8..0000000000000000000000000000000000000000 --- a/en/application-dev/reference/arkui-js/js-components-canvas.md +++ /dev/null @@ -1,20 +0,0 @@ -# Canvas Components - -- **[canvas](js-components-canvas-canvas.md)** - -- **[CanvasRenderingContext2D](js-components-canvas-canvasrenderingcontext2d.md)** - -- **[Image](js-components-canvas-image.md)** - -- **[CanvasGradient](js-components-canvas-canvasgradient.md)** - -- **[ImageData](js-components-canvas-imagedata.md)** - -- **[Path2D](js-components-canvas-path2d.md)** - -- **[ImageBitmap](js-components-canvas-imagebitmap.md)** - -- **[OffscreenCanvas](js-components-canvas-offscreencanvas.md)** - -- **[OffscreenCanvasRenderingContext2D](js-offscreencanvasrenderingcontext2d.md)** - diff --git a/en/application-dev/reference/arkui-js/js-components-common-transition.md b/en/application-dev/reference/arkui-js/js-components-common-transition.md index 09bc84c24156c80426cbc9a09800459d577626df..876d80a6f6a21ea5987290ccb8ad9e8cd05151a7 100644 --- a/en/application-dev/reference/arkui-js/js-components-common-transition.md +++ b/en/application-dev/reference/arkui-js/js-components-common-transition.md @@ -8,18 +8,18 @@ ### Attributes -| Name| Type| Default Value| Description| -| -------- | -------- | -------- | -------- | -| shareid | string | -| Used for the transition of shared elements and takes effect only when it is configured.**list-item**, **image**, **text**, **button**, and **label** components are supported for the transition of shared elements.| +| Name | Type | Default Value | Description | +| ------- | ------ | ------------- | ---------------------------------------- | +| shareid | string | - | Used for the transition of shared elements and takes effect only when it is configured.**list-item**, **image**, **text**, **button**, and **label** components are supported for the transition of shared elements. | ### Styles -| Name| Type| Default Value| Description| -| -------- | -------- | -------- | -------- | -| shared-transition-effect | string | exchange | Entry style of a shared element during transition.
- **exchange** (default): The source page element is moved to the position of the target page element and is zoomed in or out properly.
- **static**: The position of the target page element remains unchanged. You can configure the opacity animation. Currently, only the static effect configured on the target page takes effect.| -| shared-transition-name | string | - | During the transition, the style configured on the target page takes effect preferentially. This style is used to configure the animation effect of shared elements. The animation effect is an animation sequence defined by **@keyframes** supporting transform and opacity animations. If the effect of shared elements conflicts with the custom animation, the latter is used.| -| shared-transition-timing-function | string | friction | During the transition, the style configured on the target page takes effect preferentially. This style defines the difference curve during the transition of shared elements. If it is not configured, the friction curve is used.| +| Name | Type | Default Value | Description | +| --------------------------------- | ------ | ------------- | ---------------------------------------- | +| shared-transition-effect | string | exchange | Entry style of a shared element during transition.
- **exchange** (default): The source page element is moved to the position of the target page element and is zoomed in or out properly.
- **static**: The position of the target page element remains unchanged. You can configure the opacity animation. Currently, only the static effect configured on the target page takes effect. | +| shared-transition-name | string | - | During the transition, the style configured on the target page takes effect preferentially. This style is used to configure the animation effect of shared elements. The animation effect is an animation sequence defined by **@keyframes** supporting transform and opacity animations. If the effect of shared elements conflicts with the custom animation, the latter is used. | +| shared-transition-timing-function | string | friction | During the transition, the style configured on the target page takes effect preferentially. This style defines the difference curve during the transition of shared elements. If it is not configured, the friction curve is used. | ### Important Notes @@ -118,9 +118,9 @@ export default { ### Styles -| Name| Type| Default Value| Description| -| -------- | -------- | -------- | -------- | -| transition-effect | string | - | Whether a component on the current page displays the transition effect during a card transition. Available values are as follows:
- **unfold**: The component will move upwards by one card height if the component is located above the card tapped by the user, or move downwards by one card height if the component is located below the card.
- **none**: No transition effect is displayed.| +| Name | Type | Default Value | Description | +| ----------------- | ------ | ------------- | ---------------------------------------- | +| transition-effect | string | - | Whether a component on the current page displays the transition effect during a card transition. Available values are as follows:
- **unfold**: The component will move upwards by one card height if the component is located above the card tapped by the user, or move downwards by one card height if the component is located below the card.
- **none**: No transition effect is displayed. | ### Example @@ -214,12 +214,12 @@ export default { ### Styles -| Name| Type| Default Value| Description| -| -------- | -------- | -------- | -------- | -| transition-enter | string | - | Works with **@keyframes** and supports transform and opacity animations. For details, see [Attributes available for the @keyframes rule](../arkui-js/js-components-common-animation.md).| -| transition-exit | string | - | Works with **@keyframes** and supports transform and opacity animations. For details, see [Attributes available for the @keyframes rule](../arkui-js/js-components-common-animation.md).| -| transition-duration | string | Follows the default page transition time of the device| The unit can be s or ms. The default unit is ms. If no value is specified, the default value is used. | -| transition-timing-function | string | friction | Speed curve of the transition animation, which makes the animation more fluent. For details, see the description of **animation-timing-function **in [Animation Styles](../arkui-js/js-components-common-animation.md).| +| Name | Type | Default Value | Description | +| -------------------------- | ------ | ---------------------------------------- | ---------------------------------------- | +| transition-enter | string | - | Works with **@keyframes** and supports transform and opacity animations. For details, see [Attributes available for the @keyframes rule](../arkui-js/js-components-common-animation.md). | +| transition-exit | string | - | Works with **@keyframes** and supports transform and opacity animations. For details, see [Attributes available for the @keyframes rule](../arkui-js/js-components-common-animation.md). | +| transition-duration | string | Follows the default page transition time of the device | The unit can be s or ms. The default unit is ms. If no value is specified, the default value is used. | +| transition-timing-function | string | friction | Speed curve of the transition animation, which makes the animation more fluent. For details, see the description of **animation-timing-function **in [Animation Styles](../arkui-js/js-components-common-animation.md). | ### Important Notes @@ -255,7 +255,7 @@ export default { import router from '@system.router'; export default { data: { - + }, jump() { router.push({ @@ -283,13 +283,13 @@ export default { transition-duration: 5s; transition-timing-function: friction; } - + @keyframes go_page { from { opacity: 0; transform: translate(0px) rotate(60deg) scale(1.0); } - + to { opacity: 1; transform: translate(100px) rotate(360deg) scale(1.0); @@ -300,7 +300,7 @@ export default { opacity: 1; transform: translate(200px) rotate(60deg) scale(2); } - + to { opacity: 0; transform: translate(200px) rotate(360deg) scale(2); @@ -308,7 +308,6 @@ export default { } ``` - 2. Page2 @@ -325,7 +324,7 @@ export default { import router from '@system.router'; export default { data: { - + }, jumpBack() { router.back() @@ -342,7 +341,7 @@ export default { width: 100%; height: 100%; } - + .move_page { width: 100px; height: 100px; @@ -352,7 +351,7 @@ export default { transition-duration: 5s; transition-timing-function: ease; } - + @keyframes go_page { from { opacity: 0; @@ -363,7 +362,7 @@ export default { transform:translate(100px) rotate(180deg) scale(2.0); } } - + @keyframes exit_page { from { opacity: 1; @@ -375,5 +374,5 @@ export default { } } ``` - + ![transition](figures/transition.gif) diff --git a/en/application-dev/reference/arkui-js/js-components-common.md b/en/application-dev/reference/arkui-js/js-components-common.md deleted file mode 100644 index 504bd5619b22110b6405187969f8eac0a8fa459b..0000000000000000000000000000000000000000 --- a/en/application-dev/reference/arkui-js/js-components-common.md +++ /dev/null @@ -1,23 +0,0 @@ -# Common - -- **[Universal Attributes](js-components-common-attributes.md)** - -- **[Universal Styles](js-components-common-styles.md)** - -- **[Universal Events](js-components-common-events.md)** - -- **[Universal Methods](js-components-common-methods.md)** - -- **[Animation Styles](js-components-common-animation.md)** - -- **[Gradient Styles](js-components-common-gradient.md)** - -- **[Transition Styles](js-components-common-transition.md)** - -- **[Media Query](js-components-common-mediaquery.md)** - -- **[Custom Font Styles](js-components-common-customizing-font.md)** - -- **[Atomic Layout](js-components-common-atomic-layout.md)** - - diff --git a/en/application-dev/reference/arkui-js/js-components-container.md b/en/application-dev/reference/arkui-js/js-components-container.md deleted file mode 100644 index b9044baeb3d182e4e724ff9c2f79f898e56363a8..0000000000000000000000000000000000000000 --- a/en/application-dev/reference/arkui-js/js-components-container.md +++ /dev/null @@ -1,37 +0,0 @@ -# Container Component - -- **[badge](js-components-container-badge.md)** - -- **[dialog](js-components-container-dialog.md)** - -- **[div](js-components-container-div.md)** - -- **[form](js-components-container-form.md)** - -- **[list](js-components-container-list.md)** - -- **[list-item](js-components-container-list-item.md)** - -- **[list-item-group](js-components-container-list-item-group.md)** - -- **[panel](js-components-container-panel.md)** - -- **[popup](js-components-container-popup.md)** - -- **[refresh](js-components-container-refresh.md)** - -- **[stack](js-components-container-stack.md)** - -- **[stepper](js-components-container-stepper.md)** - -- **[stepper-item](js-components-container-stepper-item.md)** - -- **[swiper](js-components-container-swiper.md)** - -- **[tabs](js-components-container-tabs.md)** - -- **[tab-bar](js-components-container-tab-bar.md)** - -- **[tab-content](js-components-container-tab-content.md)** - - diff --git a/en/application-dev/reference/arkui-js/js-components-custom.md b/en/application-dev/reference/arkui-js/js-components-custom.md deleted file mode 100644 index 496a31fd7ec670877c57c061d6d36e5847e54ce4..0000000000000000000000000000000000000000 --- a/en/application-dev/reference/arkui-js/js-components-custom.md +++ /dev/null @@ -1,15 +0,0 @@ -# Custom Components - -- **[Basic Usage](js-components-custom-basic-usage.md)** - -- **[Custom Events](js-components-custom-events.md)** - -- **[props](js-components-custom-props.md)** - -- **[Event Parameter](js-components-custom-event-parameter.md)** - -- **[slot](js-components-custom-slot.md)** - -- **[Lifecycle Definition](js-components-custom-lifecycle.md)** - - diff --git a/en/application-dev/reference/arkui-js/js-components-grid.md b/en/application-dev/reference/arkui-js/js-components-grid.md deleted file mode 100644 index f976ab6390f92db9f35f43add166a3a965da0b82..0000000000000000000000000000000000000000 --- a/en/application-dev/reference/arkui-js/js-components-grid.md +++ /dev/null @@ -1,11 +0,0 @@ -# Grid - -- **[Basic Concepts](js-components-grid-basic-concepts.md)** - -- **[grid-container](js-components-grid-container.md)** - -- **[grid-row](js-components-grid-row.md)** - -- **[grid-col](js-components-grid-col.md)** - - diff --git a/en/application-dev/reference/arkui-js/js-components-media.md b/en/application-dev/reference/arkui-js/js-components-media.md deleted file mode 100644 index a2a2ad64fbca0a794f76d2903a78d5081f754a40..0000000000000000000000000000000000000000 --- a/en/application-dev/reference/arkui-js/js-components-media.md +++ /dev/null @@ -1,5 +0,0 @@ -# Media Components - -- **[video](js-components-media-video.md)** - - diff --git a/en/application-dev/reference/arkui-js/js-components.md b/en/application-dev/reference/arkui-js/js-components.md deleted file mode 100644 index 048e5afb46e3d8765ede56525ebe1de808b6ec48..0000000000000000000000000000000000000000 --- a/en/application-dev/reference/arkui-js/js-components.md +++ /dev/null @@ -1,16 +0,0 @@ -# Components - -- **[Common](js-components-common.md)** - -- **[Container Component](js-components-container.md)** - -- **[Basic Components](js-components-basic.md)** - -- **[Media Components](js-components-media.md)** - -- **[Canvas Components ](js-components-canvas.md)** - -- **[Grid](js-components-grid.md)** - -- **[SVG Components](js-svg.md)** - diff --git a/en/application-dev/reference/arkui-js/js-svg.md b/en/application-dev/reference/arkui-js/js-svg.md deleted file mode 100644 index abf0fae5933cb46b8f1df7ff150aad7e4fd2a05a..0000000000000000000000000000000000000000 --- a/en/application-dev/reference/arkui-js/js-svg.md +++ /dev/null @@ -1,33 +0,0 @@ -# SVG Components - -- **[Universal Attributes](js-components-svg-common-attributes.md)** - -- **[svg](js-components-svg.md)** - -- **[rect](js-components-svg-rect.md)** - -- **[circle](js-components-svg-circle.md)** - -- **[ellipse](js-components-svg-ellipse.md)** - -- **[path](js-components-svg-path.md)** - -- **[line](js-components-svg-line.md)** - -- **[polyline](js-components-svg-polyline.md)** - -- **[polygon](js-components-svg-polygon.md)** - -- **[text](js-components-svg-text.md)** - -- **[tspan](js-components-svg-tspan.md)** - -- **[textPath](js-components-svg-textpath.md)** - -- **[animate](js-components-svg-animate.md)** - -- **[animateMotion](js-components-svg-animatemotion.md)** - -- **[animateTransform](js-components-svg-animatetransform.md)** - - diff --git a/en/application-dev/reference/arkui-ts/Readme-EN.md b/en/application-dev/reference/arkui-ts/Readme-EN.md index 2944b62d07492a0b13e5dfe214d53dd7f5ff69db..0dabd2d791e50c968336d6abf7d336f7a9972740 100644 --- a/en/application-dev/reference/arkui-ts/Readme-EN.md +++ b/en/application-dev/reference/arkui-ts/Readme-EN.md @@ -2,7 +2,7 @@ - Components - Universal Components - - [Universal Events](ts-universal-event-index.md) + - Universal Events - [Click Event](ts-universal-events-click.md) - [Touch Event](ts-universal-events-touch.md) - [Show/Hide Event](ts-universal-events-show-hide.md) @@ -11,7 +11,7 @@ - [Focus Event](ts-universal-focus-event.md) - [Mouse Event](ts-universal-mouse-key.md) - [Component Area Change Event](ts-universal-component-area-change-event.md) - - [Universal Attributes](ts-universal-attributes-index.md) + - Universal Attributes - [Size](ts-universal-attributes-size.md) - [Location](ts-universal-attributes-location.md) - [Layout Constraints](ts-universal-attributes-layout-constraints.md) @@ -139,7 +139,6 @@ - [Matrix Transformation](ts-matrix-transformation.md) - [Interpolation Calculation](ts-interpolation-calculation.md) - Global UI Methods - - [Image Cache](ts-methods-image-cache.md) - Pop-up Window - [Alert Dialog Box](ts-methods-alert-dialog-box.md) - [Action Sheet](ts-methods-action-sheet.md) diff --git a/en/application-dev/reference/arkui-ts/ts-container-column.md b/en/application-dev/reference/arkui-ts/ts-container-column.md index 09b477964abe9bfe171fbbd4bfaa267cf7a1bb11..c2e9e856a502b08f76fe470949209402e3f20ef5 100644 --- a/en/application-dev/reference/arkui-ts/ts-container-column.md +++ b/en/application-dev/reference/arkui-ts/ts-container-column.md @@ -24,24 +24,24 @@ Column(value:{space?: Length}) - Parameters - | Name | Type | Mandatory | Default Value | Description | - | -------- | -------- | -------- | -------- | -------- | - | space | Length | No | 0 | Space between any two adjacent child components in the vertical layout. | + | Name | Type | Mandatory | Default Value | Description | + | ----- | ------ | --------- | ------------- | ---------------------------------------- | + | space | Length | No | 0 | Space between any two adjacent child components in the vertical layout. | ## Attributes -| Name | Type | Default Value | Description | -| -------- | -------- | -------- | -------- | -| alignItems | HorizontalAlign | HorizontalAlign.Center | Alignment mode of child components in the horizontal direction. | -| justifyContent8+ | [FlexAlign](ts-container-flex.md) | FlexAlign.Start | Alignment mode of child components in the vertical direction. | +| Name | Type | Default Value | Description | +| --------------------------- | --------------------------------- | ---------------------- | ---------------------------------------- | +| alignItems | HorizontalAlign | HorizontalAlign.Center | Alignment mode of child components in the horizontal direction. | +| justifyContent8+ | [FlexAlign](ts-container-flex.md) | FlexAlign.Start | Alignment mode of child components in the vertical direction. | - HorizontalAlign enums - | Name | Description | - | -------- | -------- | - | Start | Aligned with the start edge in the same direction as the language in use. | - | Center | Center alignment. This is the default alignment mode. | - | End | Aligned with the end edge in the same direction as the language in use. | + | Name | Description | + | ------ | ---------------------------------------- | + | Start | Aligned with the start edge in the same direction as the language in use. | + | Center | Center alignment. This is the default alignment mode. | + | End | Aligned with the end edge in the same direction as the language in use. | ## Example @@ -86,4 +86,4 @@ struct ColumnExample { } ``` -![](figures/column.png) +![](figures/Column.png) diff --git a/en/application-dev/reference/arkui-ts/ts-universal-attributes-index.md b/en/application-dev/reference/arkui-ts/ts-universal-attributes-index.md deleted file mode 100644 index b565b5df7a66ceff61d1fe67d004ac9a385dd91b..0000000000000000000000000000000000000000 --- a/en/application-dev/reference/arkui-ts/ts-universal-attributes-index.md +++ /dev/null @@ -1,53 +0,0 @@ -# Universal Attributes - - - -- **[Size](ts-universal-attributes-size.md)** - -- **[Location](ts-universal-attributes-location.md)** - -- **[Layout Constraints](ts-universal-attributes-layout-constraints.md)** - -- **[Flex Layout](ts-universal-attributes-flex-layout.md)** - -- **[Border](ts-universal-attributes-border.md)** - -- **[Background](ts-universal-attributes-background.md)** - -- **[Opacity](ts-universal-attributes-opacity.md)** - -- **[Visibility](ts-universal-attributes-visibility.md)** - -- **[Enable/Disable](ts-universal-attributes-enable.md)** - -- **[Overlay](ts-universal-attributes-overlay.md)** - -- **[Z-order Control](ts-universal-attributes-z-order.md)** - -- **[Transformation](ts-universal-attributes-transformation.md)** - -- **[Image Effect Configuration](ts-universal-attributes-image-effect.md)** - -- **[Shape Clipping](ts-universal-attributes-sharp-clipping.md)** - -- **[Text Style](ts-universal-attributes-text-style.md)** - -- **[Grid](ts-universal-attributes-grid.md)** - -- **[Gradient Color](ts-universal-attributes-gradient-color.md)** - -- **[Popup Control](ts-universal-attributes-popup.md)** - -- **[Menu Control](ts-universal-attributes-menu.md)** - -- **[Click Control](ts-universal-attributes-click.md)** - -- **[Focus Control](ts-universal-attributes-focus.md)** - -- **[Hover Effect](ts-universal-attributes-hover-effect.md)** - -- **[Component ID](ts-universal-attributes-component-id.md)** - -- **[Touch Target](ts-universal-attributes-touch-target.md)** - -- **[Polymorphic Style](ts-universal-attributes-polymorphic-style.md)** \ No newline at end of file diff --git a/en/application-dev/reference/arkui-ts/ts-universal-events-index.md b/en/application-dev/reference/arkui-ts/ts-universal-events-index.md deleted file mode 100644 index fd2340deb9b335116650a2c24ce3b84469143ab3..0000000000000000000000000000000000000000 --- a/en/application-dev/reference/arkui-ts/ts-universal-events-index.md +++ /dev/null @@ -1,19 +0,0 @@ -# Universal Events - - - -- **[Click Event](ts-universal-events-click.md)** - -- **[Touch Event](ts-universal-events-touch.md)** - -- **[Show/Hide Event](ts-universal-events-show-hide.md)** - -- **[Drag/Drop Event](ts-universal-events-drag-drop.md)** - -- **[Key Event](ts-universal-events-key.md)** - -- **[Focus Event](ts-universal-focus-event.md)** - -- **[Mouse Event](ts-universal-mouse-key.md)** - -- **[Component Area Change Event](ts-universal-component-area-change-event.md)** \ No newline at end of file diff --git a/en/application-dev/website.md b/en/application-dev/website.md index eb691d662140bf91c8452bf60191cfeaa0a2abfb..e7fe0c8f453f6d103c1f2dd4911ee941d09ac094 100644 --- a/en/application-dev/website.md +++ b/en/application-dev/website.md @@ -106,15 +106,15 @@ - [Example: Component Creation and Re-Initialization](ui/ts-component-creation-re-initialization.md) - Syntactic Sugar - [@Decorator](ts-syntactic-sugar-decorator.md) - + - [Chain Call](ts-syntactic-sugar-chaining.md) - + - [struct](ts-syntactic-sugar-struct.md) - + - [Instantiating a struct Without the new Keyword](ts-instantiating-a-struct-without-new-keyword.md) - + - [Using a Separate Line for New Component](ts-using-a-separate-line-for-new-component.md) - + - [Restrictions on Using TypeScript for Generators](ts-restrictions-for-generators.md) - Experiencing the Declarative UI - [Creating a Declarative UI Project](ui/ui-ts-creating-project.md) @@ -279,8 +279,7 @@ - [Event Parameter](reference/arkui-js/js-components-custom-event-parameter.md) - [slot](reference/arkui-js/js-components-custom-slot.md) - [Lifecycle Definition](reference/arkui-js/js-components-custom-lifecycle.md) - - Appendix - - [Type Attributes](reference/arkui-js/js-appendix-types.md) + - [Type Attributes](reference/arkui-js/js-appendix-types.md) - Compent Reference (TypeScript-based Declarative Development Paradigm) - Components - Universal Components @@ -401,8 +400,7 @@ - [Image Cache](reference/arkui-ts/ts-methods-image-cache.md) - [Media Query](reference/arkui-ts/ts-methods-media-query.md) - [List Selection Dialog Box](reference/arkui-ts/ts-methods-action-sheet.md) - - Appendix - - [Built-in Enums](reference/arkui-ts/ts-appendix-enums.md) + - [Built-in Enums](reference/arkui-ts/ts-appendix-enums.md) - APIs - Ability Framework - [FeatureAbility Module](reference/apis/js-apis-featureAbility.md) diff --git a/zh-cn/application-dev/application-dev-website.md b/zh-cn/application-dev/application-dev-website.md index e236929ca710a2fdae502875cbc06819e8115d0b..b24e83fb301cd178933b75915580363c5d8ba7c5 100644 --- a/zh-cn/application-dev/application-dev-website.md +++ b/zh-cn/application-dev/application-dev-website.md @@ -1,12 +1,12 @@ - [应用开发导读](application-dev-guide.md) - 快速开始 - + - 快速入门 - [前言](quick-start/start-overview.md) - [使用eTS语言开发](quick-start/start-with-ets.md) - [使用JS语言开发(传统代码方式)](quick-start/start-with-js.md) - [使用JS语言开发(低代码方式)](quick-start/start-with-js-low-code.md) - + - 开发基础知识 - [应用开发包结构说明](quick-start/package-structure.md) - [资源文件的分类](quick-start/basic-resource-file-categories.md) @@ -362,8 +362,7 @@ - [事件参数](reference/arkui-js/js-components-custom-event-parameter.md) - [slot插槽](reference/arkui-js/js-components-custom-slot.md) - [生命周期定义](reference/arkui-js/js-components-custom-lifecycle.md) - - 附录 - - [类型说明](reference/arkui-js/js-appendix-types.md) + - [类型说明](reference/arkui-js/js-appendix-types.md) - 组件参考(基于TS扩展的声明式开发范式) - 组件 - 通用 @@ -420,24 +419,33 @@ - [DataPanel](reference/arkui-ts/ts-basic-components-datapanel.md) - [DatePicker](reference/arkui-ts/ts-basic-components-datepicker.md) - [Divider](reference/arkui-ts/ts-basic-components-divider.md) + - [Gauge](reference/arkui-ts/ts-basic-components-gauge.md) - [Image](reference/arkui-ts/ts-basic-components-image.md) - [ImageAnimator](reference/arkui-ts/ts-basic-components-imageanimator.md) - [LoadingProgress](reference/arkui-ts/ts-basic-components-loadingprogress.md) + - [Marquee](reference/arkui-ts/ts-basic-components-marquee.md) + - [PatternLock](reference/arkui-ts/ts-basic-components-patternlock.md) + - [PluginComponent](reference/arkui-ts/ts-basic-components-pluginComponent.md) - [Progress](reference/arkui-ts/ts-basic-components-progress.md) - [QRCode](reference/arkui-ts/ts-basic-components-qrcode.md) - [Radio](reference/arkui-ts/ts-basic-components-radio.md) - [Rating](reference/arkui-ts/ts-basic-components-rating.md) + - [RichText](reference/arkui-ts/ts-basic-components-richtext.md) + - [Search](reference/arkui-ts/ts-basic-components-search.md) - [Select](reference/arkui-ts/ts-basic-components-select.md) - [Slider](reference/arkui-ts/ts-basic-components-slider.md) + - [Stepper](reference/arkui-ts/ts-basic-components-stepper.md) + - [StepperItem](reference/arkui-ts/ts-basic-components-stepperitem.md) - [Span](reference/arkui-ts/ts-basic-components-span.md) - [Text](reference/arkui-ts/ts-basic-components-text.md) - [TextArea](reference/arkui-ts/ts-basic-components-textarea.md) - [TextInput](reference/arkui-ts/ts-basic-components-textinput.md) - [TextPicker](reference/arkui-ts/ts-basic-components-textpicker.md) - [TextTimer](reference/arkui-ts/ts-basic-components-texttimer.md) + - [TimePicker](reference/arkui-ts/ts-basic-components-timepicker.md) - [Toggle](reference/arkui-ts/ts-basic-components-toggle.md) - - [TextClock](reference/arkui-ts/ts-basic-components-textclock.md) - [Web](reference/arkui-ts/ts-basic-components-web.md) + - [Xcomponent](reference/arkui-ts/ts-basic-components-xcomponent.md) - 容器组件 - [AlphabetIndexer](reference/arkui-ts/ts-container-alphabet-indexer.md) - [Badge](reference/arkui-ts/ts-container-badge.md) @@ -453,6 +461,7 @@ - [Navigator](reference/arkui-ts/ts-container-navigator.md) - [Navigation](reference/arkui-ts/ts-basic-components-navigation.md) - [Panel](reference/arkui-ts/ts-container-panel.md) + - [Refresh](reference/arkui-ts/ts-container-refresh.md) - [Row](reference/arkui-ts/ts-container-row.md) - [RowSplit](reference/arkui-ts/ts-container-rowsplit.md) - [Scroll](reference/arkui-ts/ts-container-scroll.md) @@ -462,7 +471,6 @@ - [Swiper](reference/arkui-ts/ts-container-swiper.md) - [Tabs](reference/arkui-ts/ts-container-tabs.md) - [TabContent](reference/arkui-ts/ts-container-tabcontent.md) - - [Refresh](reference/arkui-ts/ts-container-refresh.md) - 媒体组件 - [Video](reference/arkui-ts/ts-media-components-video.md) - 绘制组件 @@ -501,8 +509,7 @@ - [日期时间选择弹窗](reference/arkui-ts/ts-methods-datepicker-dialog.md) - [文本选择弹窗](reference/arkui-ts/ts-methods-textpicker-dialog.md) - [菜单](reference/arkui-ts/ts-methods-menu.md) - - 附录 - - [文档中涉及到的内置枚举值](reference/arkui-ts/ts-appendix-enums.md) + - [文档中涉及到的内置枚举值](reference/arkui-ts/ts-appendix-enums.md) - 接口参考 - Ability框架 - [FeatureAbility模块](reference/apis/js-apis-featureAbility.md) diff --git a/zh-cn/application-dev/reference/arkui-ts/Readme-CN.md b/zh-cn/application-dev/reference/arkui-ts/Readme-CN.md index 6089ea601b7359d4da3f4222874d1133616c1f09..834c066c5e0b9b0d0dde4a9b63b029246e28d55a 100644 --- a/zh-cn/application-dev/reference/arkui-ts/Readme-CN.md +++ b/zh-cn/application-dev/reference/arkui-ts/Readme-CN.md @@ -2,7 +2,7 @@ - 组件 - 通用 - - [通用事件](ts-universal-events-index.md) + - 通用事件 - [点击事件](ts-universal-events-click.md) - [触摸事件](ts-universal-events-touch.md) - [挂载卸载事件](ts-universal-events-show-hide.md) @@ -11,7 +11,7 @@ - [焦点事件](ts-universal-focus-event.md) - [鼠标事件](ts-universal-mouse-key.md) - [组件区域变化事件](ts-universal-component-area-change-event.md) - - [通用属性](ts-universal-attributes-index.md) + - 通用属性 - [尺寸设置](ts-universal-attributes-size.md) - [位置设置](ts-universal-attributes-location.md) - [布局约束](ts-universal-attributes-layout-constraints.md) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textarea.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textarea.md index 71f0dd32abe162f2e8c1524482fa691640e12d22..f860a751b5d7a6c6c0e7bdcb7350b0a6dc590e56 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textarea.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textarea.md @@ -22,40 +22,40 @@ TextArea(value?:{placeholder?: string controller?: TextAreaController}) - 参数 - | 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | - | -------- | -------- | -------- | -------- | -------- | - | placeholder | string | 否 | - | 无输入时的提示文本。 | - | controller8+ | [TextAreaController](#textareacontroller8) | 否 | - | 设置TextArea控制器。 | + | 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | + | ----------------------- | ---------------------------------------- | ---- | ---- | -------------- | + | placeholder | string | 否 | - | 无输入时的提示文本。 | + | controller8+ | [TextAreaController](#textareacontroller8) | 否 | - | 设置TextArea控制器。 | ## 属性 -除支持[通用属性](ts-universal-attributes-index.md)外,还支持以下属性: +除支持通用属性外,还支持以下属性: -| 名称 | 参数类型 | 默认值 | 描述 | -| -------- | -------- | -------- | -------- | -| placeholderColor | Color | - | 设置placeholder文本颜色。 | -| placeholderFont | {
size?: number,
weight?:number \| [FontWeight](ts-universal-attributes-text-style.md),
family?: string,
style?: [FontStyle](ts-universal-attributes-text-style.md)
} | - | 设置placeholder文本样式:
- size: 设置文本尺寸,Length为number类型时,使用fp单位。
- weight: 设置文本的字体粗细,number类型取值[100, 900],取值间隔为100,默认为400,取值越大,字体越粗。
- family: 设置文本的字体列表。使用多个字体,使用','进行分割,优先级按顺序生效,例如:'Arial, sans-serif'。
- style: 设置文本的字体样式。 | -| textAlign | TextAlign | Start | 设置文本水平对齐方式。 | -| caretColor | Color | - | 设置输入框光标颜色。 | -| inputFilter8+ | {
value: [ResourceStr](../../ui/ts-types.md)8+,
error?: (value: string)
} | - | 通过正则表达式设置输入过滤器。满足表达式的输入允许显示,不满足的输入被忽略。仅支持单个字符匹配,不支持字符串匹配。例如:^(?=.\*\d)(?=.\*[a-z])(?=.\*[A-Z]).{8,10}$,不支持过滤8到10位的强密码。
- value:设置正则表达式。
- error:正则匹配失败时,返回被忽略的内容。 | +| 名称 | 参数类型 | 默认值 | 描述 | +| ------------------------ | ---------------------------------------- | ----- | ---------------------------------------- | +| placeholderColor | Color | - | 设置placeholder文本颜色。 | +| placeholderFont | {
size?: number,
weight?:number \| [FontWeight](ts-universal-attributes-text-style.md),
family?: string,
style?: [FontStyle](ts-universal-attributes-text-style.md)
} | - | 设置placeholder文本样式:
- size: 设置文本尺寸,Length为number类型时,使用fp单位。
- weight: 设置文本的字体粗细,number类型取值[100, 900],取值间隔为100,默认为400,取值越大,字体越粗。
- family: 设置文本的字体列表。使用多个字体,使用','进行分割,优先级按顺序生效,例如:'Arial, sans-serif'。
- style: 设置文本的字体样式。 | +| textAlign | TextAlign | Start | 设置文本水平对齐方式。 | +| caretColor | Color | - | 设置输入框光标颜色。 | +| inputFilter8+ | {
value: [ResourceStr](../../ui/ts-types.md)8+,
error?: (value: string)
} | - | 通过正则表达式设置输入过滤器。满足表达式的输入允许显示,不满足的输入被忽略。仅支持单个字符匹配,不支持字符串匹配。例如:^(?=.\*\d)(?=.\*[a-z])(?=.\*[A-Z]).{8,10}$,不支持过滤8到10位的强密码。
- value:设置正则表达式。
- error:正则匹配失败时,返回被忽略的内容。 | - TextAlign枚举说明 - | 名称 | 描述 | - | -------- | -------- | - | Start | 水平对齐首部。 | - | Center | 水平居中对齐。 | - | End | 水平对齐尾部。 | + | 名称 | 描述 | + | ------ | ------- | + | Start | 水平对齐首部。 | + | Center | 水平居中对齐。 | + | End | 水平对齐尾部。 | ## 事件 -| 名称 | 功能描述 | -| -------- | -------- | -| onChange(callback: (value: string) => void) | 输入发生变化时,触发回调。 | -| onCopy8+(callback:(value: string) => void) | 长按输入框内部区域弹出剪贴板后,点击剪切板复制按钮,触发回调。
value:复制的文本内容。 | -| onCut8+(callback:(value: string) => void) | 长按输入框内部区域弹出剪贴板后,点击剪切板剪切按钮,触发回调。
value:剪切的文本内容。 | -| onPaste8+(callback:(value: string) => void) | 长按输入框内部区域弹出剪贴板后,点击剪切板粘贴按钮,触发回调。
value:粘贴的文本内容。 | +| 名称 | 功能描述 | +| ---------------------------------------- | ---------------------------------------- | +| onChange(callback: (value: string) => void) | 输入发生变化时,触发回调。 | +| onCopy8+(callback:(value: string) => void) | 长按输入框内部区域弹出剪贴板后,点击剪切板复制按钮,触发回调。
value:复制的文本内容。 | +| onCut8+(callback:(value: string) => void) | 长按输入框内部区域弹出剪贴板后,点击剪切板剪切按钮,触发回调。
value:剪切的文本内容。 | +| onPaste8+(callback:(value: string) => void) | 长按输入框内部区域弹出剪贴板后,点击剪切板粘贴按钮,触发回调。
value:粘贴的文本内容。 | ## TextAreaController8+ @@ -75,9 +75,9 @@ caretPosition(value: number): void 设置输入光标的位置。 - 参数 - | 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | - | -------- | -------- | -------- | -------- | -------- | - | value | number | 是 | - | 从字符串开始到光标所在位置的字符长度。 | + | 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | + | ----- | ------ | ---- | ---- | ------------------- | + | value | number | 是 | - | 从字符串开始到光标所在位置的字符长度。 | ## 示例 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textinput.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textinput.md index e9398d127b771246c7260f201f2ca38c1ed52552..2a45556e43462bb6fdf754427eb01529fbcbc52f 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textinput.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textinput.md @@ -22,55 +22,55 @@ TextInput(value?:{placeholder?: string controller?: TextInputController}) - 参数 - | 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | - | -------- | -------- | -------- | -------- | -------- | - | placeholder | string | 否 | - | 无输入时的提示文本。 | - | controller8+ | [TextInputController](#textinputcontroller8) | 否 | - | 设置TextInput控制器。 | + | 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | + | ----------------------- | ---------------------------------------- | ---- | ---- | --------------- | + | placeholder | string | 否 | - | 无输入时的提示文本。 | + | controller8+ | [TextInputController](#textinputcontroller8) | 否 | - | 设置TextInput控制器。 | ## 属性 -除支持[通用属性](ts-universal-attributes-index.md)外,还支持以下属性: +除支持通用属性外,还支持以下属性: -| 名称 | 参数类型 | 默认值 | 描述 | -| -------- | -------- | -------- | -------- | -| type | InputType | InputType.Normal | 设置输入框类型。 | -| placeholderColor | Color | - | 设置placeholder颜色。 | -| placeholderFont | {
size?: Length,
weight?: number\|[FontWeight](ts-universal-attributes-text-style.md),
family?: string,
style?: [FontStyle](ts-universal-attributes-text-style.md)
} | - | 设置placeholder文本样式:
- size: 设置文本尺寸,Length为number类型时,使用fp单位。
- weight: 设置文本的字体粗细,number类型取值[100, 900],取值间隔为100,默认为400,取值越大,字体越粗。
- family: 设置文本的字体列表。使用多个字体,使用','进行分割,优先级按顺序生效。例如:'Arial, sans-serif'。
- style: 设置文本的字体样式。 | -| enterKeyType | EnterKeyType | EnterKeyType.Done | 设置输入法回车键类型。 | -| caretColor | Color | - | 设置输入框光标颜色。 | -| maxLength | number | - | 设置文本的最大输入字符数。 | -| inputFilter8+ | {
value: [ResourceStr](../../ui/ts-types.md)8+,
error?: (value: string)
} | - | 正则表达式,满足表达式的输入允许显示,不满足正则表达式的输入被忽略。仅支持单个字符匹配,不支持字符串匹配。例如:^(?=.\*\d)(?=.\*[a-z])(?=.\*[A-Z]).{8,10}$,8到10位的强密码不支持过滤。
- value:设置正则表达式。
- error:正则匹配失败时,返回被忽略的内容。 | +| 名称 | 参数类型 | 默认值 | 描述 | +| ------------------------ | ---------------------------------------- | ----------------- | ---------------------------------------- | +| type | InputType | InputType.Normal | 设置输入框类型。 | +| placeholderColor | Color | - | 设置placeholder颜色。 | +| placeholderFont | {
size?: Length,
weight?: number\|[FontWeight](ts-universal-attributes-text-style.md),
family?: string,
style?: [FontStyle](ts-universal-attributes-text-style.md)
} | - | 设置placeholder文本样式:
- size: 设置文本尺寸,Length为number类型时,使用fp单位。
- weight: 设置文本的字体粗细,number类型取值[100, 900],取值间隔为100,默认为400,取值越大,字体越粗。
- family: 设置文本的字体列表。使用多个字体,使用','进行分割,优先级按顺序生效。例如:'Arial, sans-serif'。
- style: 设置文本的字体样式。 | +| enterKeyType | EnterKeyType | EnterKeyType.Done | 设置输入法回车键类型。 | +| caretColor | Color | - | 设置输入框光标颜色。 | +| maxLength | number | - | 设置文本的最大输入字符数。 | +| inputFilter8+ | {
value: [ResourceStr](../../ui/ts-types.md)8+,
error?: (value: string)
} | - | 正则表达式,满足表达式的输入允许显示,不满足正则表达式的输入被忽略。仅支持单个字符匹配,不支持字符串匹配。例如:^(?=.\*\d)(?=.\*[a-z])(?=.\*[A-Z]).{8,10}$,8到10位的强密码不支持过滤。
- value:设置正则表达式。
- error:正则匹配失败时,返回被忽略的内容。 | - EnterKeyType枚举说明 - | 名称 | 描述 | - | -------- | -------- | - | EnterKeyType.Go | 显示Go文本。 | - | EnterKeyType.Search | 显示为搜索样式。 | - | EnterKeyType.Send | 显示为发送样式。 | - | EnterKeyType.Next | 显示为下一个样式。 | - | EnterKeyType.Done | 标准样式。 | + | 名称 | 描述 | + | ------------------- | --------- | + | EnterKeyType.Go | 显示Go文本。 | + | EnterKeyType.Search | 显示为搜索样式。 | + | EnterKeyType.Send | 显示为发送样式。 | + | EnterKeyType.Next | 显示为下一个样式。 | + | EnterKeyType.Done | 标准样式。 | - InputType枚举说明 - | 名称 | 描述 | - | -------- | -------- | - | InputType.Normal | 基本输入模式。 | - | InputType.Password | 密码输入模式。 | - | InputType.Email | e-mail地址输入模式。 | - | InputType.Number | 纯数字输入模式。 | + | 名称 | 描述 | + | ------------------ | ------------- | + | InputType.Normal | 基本输入模式。 | + | InputType.Password | 密码输入模式。 | + | InputType.Email | e-mail地址输入模式。 | + | InputType.Number | 纯数字输入模式。 | ## 事件 -| 名称 | 功能描述 | -| -------- | -------- | -| onChange(value: string) => void | 输入发生变化时,触发回调。 | -| onSubmit(callback: (enterKey: EnterKeyType) => void) | 回车键或者软键盘回车键触发该回调,参数为当前软键盘回车键类型。 | -| onEditChanged(callback: (isEditing: boolean) => void)(deprecated) | 输入状态变化时,触发回调。 | -| onEditChange(callback: (isEditing: boolean) => void) 8+| 输入状态变化时,触发回调。 | -| onCopy8+(callback:(value: string) => void) | 长按输入框内部区域弹出剪贴板后,点击剪切板复制按钮,触发回调。
value:复制的文本内容。 | -| onCut8+(callback:(value: string) => void) | 长按输入框内部区域弹出剪贴板后,点击剪切板剪切按钮,触发回调。
value:剪切的文本内容。 | -| onPaste8+(callback:(value: string) => void) | 长按输入框内部区域弹出剪贴板后,点击剪切板粘贴按钮,触发回调。
value:粘贴的文本内容。 | +| 名称 | 功能描述 | +| ---------------------------------------- | ---------------------------------------- | +| onChange(value: string) => void | 输入发生变化时,触发回调。 | +| onSubmit(callback: (enterKey: EnterKeyType) => void) | 回车键或者软键盘回车键触发该回调,参数为当前软键盘回车键类型。 | +| onEditChanged(callback: (isEditing: boolean) => void)(deprecated) | 输入状态变化时,触发回调。 | +| onEditChange(callback: (isEditing: boolean) => void) 8+ | 输入状态变化时,触发回调。 | +| onCopy8+(callback:(value: string) => void) | 长按输入框内部区域弹出剪贴板后,点击剪切板复制按钮,触发回调。
value:复制的文本内容。 | +| onCut8+(callback:(value: string) => void) | 长按输入框内部区域弹出剪贴板后,点击剪切板剪切按钮,触发回调。
value:剪切的文本内容。 | +| onPaste8+(callback:(value: string) => void) | 长按输入框内部区域弹出剪贴板后,点击剪切板粘贴按钮,触发回调。
value:粘贴的文本内容。 | ### TextInputController8+ @@ -87,9 +87,9 @@ caretPosition(value: number): void 设置光标移动到指定位置。 - 参数 - | 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | - | -------- | -------- |-------- |-------- |-------- | - | value | number |是 | - |设置输入光标的位置。
value:从字符串开始到光标所在位置的字符长度。 | + | 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | + | ----- | ------ | ---- | ---- | ---------------------------------------- | + | value | number | 是 | - | 设置输入光标的位置。
value:从字符串开始到光标所在位置的字符长度。 | ## 示例 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-components-canvas-canvas.md b/zh-cn/application-dev/reference/arkui-ts/ts-components-canvas-canvas.md index c787303f5fd9e69d5a033d676ca9bb18ff83d0d3..ea1d29106df1db7eedb5b28b8cec9fd43f5a51d1 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-components-canvas-canvas.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-components-canvas-canvas.md @@ -18,21 +18,21 @@ Canvas(context: CanvasRenderingContext2D) - 参数 - | 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | - | ------- | ---------------------------------------------------------- | ---- | ------ | -------------------------------- | - | context | [CanvasRenderingContext2D](ts-canvasrenderingcontext2d.md) | 是 | - | 见CanvasRenderingContext2D对象。 | + | 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 | + | ------- | ---------------------------------------- | ---- | ---- | ---------------------------- | + | context | [CanvasRenderingContext2D](ts-canvasrenderingcontext2d.md) | 是 | - | 见CanvasRenderingContext2D对象。 | ## 属性 -支持[通用属性](ts-universal-attributes-index.md)。 +支持通用属性。 ## 事件 -除支持[通用事件](ts-universal-events-index.md)外,还支持如下事件: +除支持通用事件外,还支持如下事件: -| 名称 | 参数 | 描述 | -| ----------------------------- | ---- | ---------------------------------------- | -| onReady(callback: () => void) | 无 | 画布组件的事件回调,可以在此时进行绘制。 | +| 名称 | 参数 | 描述 | +| ----------------------------- | ---- | -------------------- | +| onReady(callback: () => void) | 无 | 画布组件的事件回调,可以在此时进行绘制。 | ## 示例 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-index.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-index.md deleted file mode 100644 index 669c73195512a689a49cd67170984d36483bedd7..0000000000000000000000000000000000000000 --- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-index.md +++ /dev/null @@ -1,51 +0,0 @@ -# 通用属性 - -- **[尺寸设置](ts-universal-attributes-size.md)** - -- **[位置设置](ts-universal-attributes-location.md)** - -- **[布局约束](ts-universal-attributes-layout-constraints.md)** - -- **[Flex布局](ts-universal-attributes-flex-layout.md)** - -- **[边框设置](ts-universal-attributes-border.md)** - -- **[背景设置](ts-universal-attributes-background.md)** - -- **[透明度设置](ts-universal-attributes-opacity.md)** - -- **[显隐控制](ts-universal-attributes-visibility.md)** - -- **[禁用控制](ts-universal-attributes-enable.md)** - -- **[浮层](ts-universal-attributes-overlay.md)** - -- **[Z序控制](ts-universal-attributes-z-order.md)** - -- **[图形变换](ts-universal-attributes-transformation.md)** - -- **[图像效果](ts-universal-attributes-image-effect.md)** - -- **[形状裁剪](ts-universal-attributes-sharp-clipping.md)** - -- **[文本样式设置](ts-universal-attributes-text-style.md)** - -- **[栅格设置](ts-universal-attributes-grid.md)** - -- **[颜色渐变](ts-universal-attributes-gradient-color.md)** - -- **[Popup控制](ts-universal-attributes-popup.md)** - -- **[Menu控制](ts-universal-attributes-menu.md)** - -- **[点击控制](ts-universal-attributes-click.md)** - -- **[焦点控制](ts-universal-attributes-focus.md)** - -- **[悬浮态效果](ts-universal-attributes-hover-effect.md)** - -- **[组件标识](ts-universal-attributes-component-id.md)** - -- **[触摸热区设置](ts-universal-attributes-touch-target.md)** - -- **[多态样式](ts-universal-attributes-polymorphic-style.md)** \ No newline at end of file diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-events-index.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-events-index.md deleted file mode 100644 index 7e4e932c92f89fb90e62ede96fe9a36cea90f402..0000000000000000000000000000000000000000 --- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-events-index.md +++ /dev/null @@ -1,18 +0,0 @@ -# 通用事件 - -- **[点击事件](ts-universal-events-click.md)** - -- **[触摸事件](ts-universal-events-touch.md)** - -- **[挂载卸载事件](ts-universal-events-show-hide.md)** - -- **[拖拽事件](ts-universal-events-drag-drop.md)** - -- **[按键事件](ts-universal-events-key.md)** - -- **[焦点事件](ts-universal-focus-event.md)** - -- **[鼠标事件](ts-universal-mouse-key.md)** - -- **[组件区域变化事件](ts-universal-component-area-change-event.md)** - diff --git a/zh-cn/application-dev/ui/ts-component-based-styles.md b/zh-cn/application-dev/ui/ts-component-based-styles.md index f12baf7957365fb1359099637858e15ab2e41db1..7bf23b92d5ad1c7b4176c1bc4d6206e39c97d310 100644 --- a/zh-cn/application-dev/ui/ts-component-based-styles.md +++ b/zh-cn/application-dev/ui/ts-component-based-styles.md @@ -2,7 +2,7 @@ -@Styles装饰器将新的属性函数添加到基本组件上,如Text、Column、Button等。当前@Styles仅支持[通用属性](../reference/arkui-ts/ts-universal-attributes-index.md)。通过@Styles装饰器可以快速定义并复用组件的自定义样式。 +@Styles装饰器将新的属性函数添加到基本组件上,如Text、Column、Button等。当前@Styles仅支持通用属性。通过@Styles装饰器可以快速定义并复用组件的自定义样式。 @Styles可以定义在组件内或组件外,在组件外定义时需带上function关键字,组件内定义时不需要。 diff --git a/zh-cn/application-dev/website.md b/zh-cn/application-dev/website.md index e7ebe8fb808dd859892bcd009a7c03b314e7e724..ac723dac4eeb9eaadf15f7c5f522d3ebfbb9aadb 100644 --- a/zh-cn/application-dev/website.md +++ b/zh-cn/application-dev/website.md @@ -2,17 +2,17 @@ - [应用开发导读](application-dev-guide.md) - 快速开始 - + - 快速入门 - [前言](quick-start/start-overview.md) - [使用eTS语言开发](quick-start/start-with-ets.md) - [使用JS语言开发(传统代码方式)](quick-start/start-with-js.md) - [使用JS语言开发(低代码方式)](quick-start/start-with-js-low-code.md) - + - 开发基础知识 - [应用开发包结构说明](quick-start/package-structure.md) - [资源文件的分类](quick-start/basic-resource-file-categories.md) - + - 开发 - Ability开发 - [Ability框架概述](ability/ability-brief.md) @@ -270,14 +270,14 @@ - [国际化开发概述](internationalization/international-overview.md) - [Intl开发指导](internationalization/intl-guidelines.md) - [I18n开发指导](internationalization/i18n-guidelines.md) - + - 工具 - [DevEco Studio(OpenHarmony)使用指南](quick-start/deveco-studio-user-guide-for-openharmony.md) - + - 示例教程 - [示例代码](https://gitee.com/openharmony/app_samples/blob/master/README_zh.md) - [Codelabs](https://gitee.com/openharmony/codelabs/blob/master/README.md) - + - API参考 - 组件参考(基于JS扩展的类Web开发范式) - 组件 @@ -378,8 +378,7 @@ - [事件参数](reference/arkui-js/js-components-custom-event-parameter.md) - [slot插槽](reference/arkui-js/js-components-custom-slot.md) - [生命周期定义](reference/arkui-js/js-components-custom-lifecycle.md) - - 附录 - - [类型说明](reference/arkui-js/js-appendix-types.md) + - [类型说明](reference/arkui-js/js-appendix-types.md) - 组件参考(基于TS扩展的声明式开发范式) - 组件 - 通用 @@ -451,6 +450,8 @@ - [Search](reference/arkui-ts/ts-basic-components-search.md) - [Select](reference/arkui-ts/ts-basic-components-select.md) - [Slider](reference/arkui-ts/ts-basic-components-slider.md) + - [Stepper](reference/arkui-ts/ts-basic-components-stepper.md) + - [StepperItem](reference/arkui-ts/ts-basic-components-stepperitem.md) - [Span](reference/arkui-ts/ts-basic-components-span.md) - [Text](reference/arkui-ts/ts-basic-components-text.md) - [TextArea](reference/arkui-ts/ts-basic-components-textarea.md) @@ -484,8 +485,6 @@ - [ScrollBar](reference/arkui-ts/ts-basic-components-scrollbar.md) - [SideBarContainer](reference/arkui-ts/ts-container-sidebarcontainer.md) - [Stack](reference/arkui-ts/ts-container-stack.md) - - [Stepper](reference/arkui-ts/ts-basic-components-stepper.md) - - [StepperItem](reference/arkui-ts/ts-basic-components-stepperitem.md) - [Swiper](reference/arkui-ts/ts-container-swiper.md) - [Tabs](reference/arkui-ts/ts-container-tabs.md) - [TabContent](reference/arkui-ts/ts-container-tabcontent.md)