Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
d3fd703d
D
Docs
项目概览
OpenHarmony
/
Docs
大约 2 年 前同步成功
通知
161
Star
293
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
d3fd703d
编写于
5月 30, 2023
作者:
H
HelloCrease
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update docs
Signed-off-by:
N
HelloCrease
<
lian15@huawei.com
>
上级
41752668
变更
12
显示空白变更内容
内联
并排
Showing
12 changed file
with
220 addition
and
220 deletion
+220
-220
zh-cn/application-dev/reference/apis/Readme-CN.md
zh-cn/application-dev/reference/apis/Readme-CN.md
+5
-5
zh-cn/application-dev/reference/apis/js-apis-arkui-componentSnapshot.md
...ion-dev/reference/apis/js-apis-arkui-componentSnapshot.md
+25
-25
zh-cn/application-dev/reference/apis/js-apis-font.md
zh-cn/application-dev/reference/apis/js-apis-font.md
+8
-8
zh-cn/application-dev/reference/apis/js-apis-plugincomponent.md
...application-dev/reference/apis/js-apis-plugincomponent.md
+80
-80
zh-cn/application-dev/reference/arkui-js/Readme-CN.md
zh-cn/application-dev/reference/arkui-js/Readme-CN.md
+1
-1
zh-cn/application-dev/reference/arkui-ts/Readme-CN.md
zh-cn/application-dev/reference/arkui-ts/Readme-CN.md
+9
-9
zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-modal-transition.md
...ence/arkui-ts/ts-universal-attributes-modal-transition.md
+4
-4
zh-cn/application-dev/reference/arkui-ts/ts-universal-events-keyboardshortcut.md
...eference/arkui-ts/ts-universal-events-keyboardshortcut.md
+28
-28
zh-cn/application-dev/ui/Readme-CN.md
zh-cn/application-dev/ui/Readme-CN.md
+22
-22
zh-cn/application-dev/ui/arkts-event-overview.md
zh-cn/application-dev/ui/arkts-event-overview.md
+1
-1
zh-cn/application-dev/ui/ui-js-components-search.md
zh-cn/application-dev/ui/ui-js-components-search.md
+1
-1
zh-cn/application-dev/website.md
zh-cn/application-dev/website.md
+36
-36
未找到文件。
zh-cn/application-dev/reference/apis/Readme-CN.md
浏览文件 @
d3fd703d
...
...
@@ -182,17 +182,17 @@
-
UI界面
-
[
@ohos.animator (动画)
](
js-apis-animator.md
)
-
[
@ohos.arkui.componentSnapshot
(组件截图)
](
js-apis-arkui-componentSnapshot.md
)
-
[
@ohos.arkui.componentSnapshot
(组件截图)
](
js-apis-arkui-componentSnapshot.md
)
-
[
@ohos.arkui.drawableDescriptor (DrawableDescriptor)
](
js-apis-arkui-drawableDescriptor.md
)
-
[
@ohos.curves (插值计算)
](
js-apis-curve.md
)
-
[
@ohos.font(注册自定义字体)
](
js-apis-font.md
)
-
[
@ohos.font
(注册自定义字体)
](
js-apis-font.md
)
-
[
@ohos.matrix4 (矩阵变换)
](
js-apis-matrix4.md
)
-
[
@ohos.mediaquery (媒体查询)
](
js-apis-mediaquery.md
)
-
[
@ohos.pluginComponent(PluginComponentManager)
](
js-apis-plugincomponent.md
)
-
[
@ohos.pluginComponent
(PluginComponentManager)
](
js-apis-plugincomponent.md
)
-
[
@ohos.promptAction (弹窗)
](
js-apis-promptAction.md
)
-
[
@ohos.router (页面路由)
](
js-apis-router.md
)
-
[
@ohos.measure (文本计算)
](
js-apis-measure.md
)
-
[
@ohos.uiAppearance(用户界面外观)
](
js-apis-uiappearance.md
)
-
[
@ohos.uiAppearance
(用户界面外观)
](
js-apis-uiappearance.md
)
-
图形图像
-
[
@ohos.animation.windowAnimationManager (窗口动画管理)
](
js-apis-windowAnimationManager.md
)
...
...
zh-cn/application-dev/reference/apis/js-apis-arkui-componentSnapshot.md
浏览文件 @
d3fd703d
# @ohos.arkui.componentSnapshot
(组件截图)
# @ohos.arkui.componentSnapshot
(组件截图)
本模块提供获取组件截图的能力,包括已加载的组件的截图和没有加载的组件的截图。组件截图只能够截取组件大小的区域,如果组件的绘制超出了它的区域,或子组件的绘制超出了父组件的区域,这些在组件区域外绘制的内容不会在截图中呈现。
...
...
@@ -30,7 +30,7 @@ get(id: string, callback: AsyncCallback<image.PixelMap>): void
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
| -------- | ----------------------------------- | ---- | ----------------------------------------
--------------------------------------
|
| -------- | ----------------------------------- | ---- | ---------------------------------------- |
| id | string | 是 | 目标组件的
[
ID 标识
](
../arkui-ts/ts-universal-attributes-component-id.md#组件标识
)
|
| callback | AsyncCallback
<
image.PixelMap
>
| 是 | 截图返回结果的回调。 |
...
...
@@ -85,19 +85,19 @@ get(id: string): Promise<image.PixelMap>
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
| ----
--- | ------------------------------------------------------- | ---- |
-------------------- |
| ----
| ------ | ---- | --------------------
-------------------- |
| id | string | 是 | 目标组件的
[
ID 标识
](
../arkui-ts/ts-universal-attributes-component-id.md#组件标识
)
|
**返回值:**
| 类型 | 说明 |
| ----------------------------- | --------
------
|
| ----------------------------- | -------- |
| Promise
<
image.PixelMap
>
| 截图返回的结果。 |
**错误码:**
| 错误码ID | 错误信息 |
| ------
--
| ------------------- |
| ------ | ------------------- |
| 100001 | if id is not valid. |
**示例:**
...
...
@@ -155,7 +155,7 @@ createFromBuilder(builder: CustomBuilder, callback: AsyncCallback<image.PixelMap
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
| -------- | ----------------------------------------
--------------- | ---- | ----------
---------- |
| -------- | ----------------------------------------
| ---- |
---------- |
| builder |
[
CustomBuilder
](
../arkui-ts/ts-types.md#custombuilder8
)
| 是 | 自定义组件构建函数。 |
| callback | AsyncCallback
<
image.PixelMap
>
| 是 | 截图返回结果的回调。 |
...
...
@@ -221,19 +221,19 @@ createFromBuilder(builder: CustomBuilder): Promise<image.PixelMap>
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
| ------- | ----------------------------------------
--------------- | ---- | ----------
---------- |
| ------- | ----------------------------------------
| ---- |
---------- |
| builder |
[
CustomBuilder
](
../arkui-ts/ts-types.md#custombuilder8
)
| 是 | 自定义组件构建函数。 |
**返回值:**
| 类型 | 说明 |
| ----------------------------- | --------
------
|
| ----------------------------- | -------- |
| Promise
<
image.PixelMap
>
| 截图返回的结果。 |
**错误码:**
| 错误码ID | 错误信息 |
| ------
-- | -
---------------------------------------- |
| ------
|
---------------------------------------- |
| 100001 | if builder is not a valid build function. |
**示例:**
...
...
zh-cn/application-dev/reference/apis/js-apis-font.md
浏览文件 @
d3fd703d
# @ohos.font
(注册自定义字体)
# @ohos.font
(注册自定义字体)
本模块提供注册自定义字体。
...
...
@@ -23,13 +23,13 @@ registerFont(options: FontOptions): void
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
| ------- | --------------------------- | ---- | -----------
-----------
|
| ------- | --------------------------- | ---- | ----------- |
| options |
[
FontOptions
](
#fontoptions
)
| 是 | 注册的自定义字体信息。 |
## FontOptions
| 名称 | 类型 | 必填 | 说明 |
| ---------- | ------ | ---- | ------------
------------
|
| ---------- | ------ | ---- | ------------ |
| familyName | string | 是 | 设置注册的字体名称。 |
| familySrc | string | 是 | 设置注册字体文件的路径。 |
...
...
zh-cn/application-dev/reference/apis/js-apis-plugincomponent.md
浏览文件 @
d3fd703d
...
...
@@ -19,7 +19,7 @@ Plugin组件模板参数。
**系统能力:**
SystemCapability.ArkUI.ArkUI.Full
| 参数 | 类型 | 必填 | 描述 |
| ---------- | ------ | ---- | ----------------------
-----
|
| ---------- | ------ | ---- | ---------------------- |
| source | string | 是 | 组件模板名。 |
| bundleName | string | 是 | 提供者Ability的bundleName。 |
...
...
@@ -34,7 +34,7 @@ Plugin组件模板参数。
| 取值范围 | 说明 |
| --------------------- | --------------------
--------------------
|
| --------------------- | -------------------- |
| [key: string] | 关键字,数据类型为字符串,可取空字符串。 |
| number | 键值,表示值类型为数字。 |
| string | 键值,表示值类型为字符串,可取空字符串。 |
...
...
@@ -52,7 +52,7 @@ Plugin组件模板参数。
**系统能力:**
SystemCapability.ArkUI.ArkUI.Full
| 名称 | 类型 | 必填 | 说明 |
| --------- | ----------------------------------- | ---- | ----------------------------------------
----------------------
|
| --------- | ----------------------------------- | ---- | ---------------------------------------- |
| want |
[
Want
](
js-apis-application-want.md
)
| 是 | 组件使用者Ability信息。 |
| name | string | 是 | 组件名称。 |
| data |
[
KVObject
](
#kvobject
)
| 是 | 组件数据值。 |
...
...
@@ -70,7 +70,7 @@ Plugin组件模板参数。
**系统能力:**
SystemCapability.ArkUI.ArkUI.Full
| 名称 | 类型 | 必填 | 说明 |
| --------- | ----------------------------------- | ---- | ----------------------------------------
------------------------
|
| --------- | ----------------------------------- | ---- | ---------------------------------------- |
| owner |
[
Want
](
js-apis-application-want.md
)
| 是 | 组件提供方Ability信息。 |
| target |
[
Want
](
js-apis-application-want.md
)
| 是 | 组件使用者Ability信息。 |
| name | string | 是 | 组件名称。 |
...
...
@@ -87,7 +87,7 @@ Plugin组件模板参数。
**系统能力:**
SystemCapability.ArkUI.ArkUI.Full
| 名称 | 类型 | 必填 | 说明 |
| -------- | ----------------------------------- | ---- | ----------------------------------------
-----------------------------------------------------------------------------
|
| -------- | ----------------------------------- | ---- | ---------------------------------------- |
| want |
[
Want
](
js-apis-application-want.md
)
| 是 | 组件提供者Ability信息。 |
| name | string | 是 | 请求组件名称。 |
| data |
[
KVObject
](
#kvobject
)
| 是 | 附加数据。 |
...
...
@@ -104,7 +104,7 @@ Plugin组件模板参数。
**系统能力:**
SystemCapability.ArkUI.ArkUI.Full
| 名称 | 类型 | 必填 | 说明 |
| -------- | ----------------------------------- | ---- | ----------------------------------------
-----------------------------------------------------------------------------
|
| -------- | ----------------------------------- | ---- | ---------------------------------------- |
| owner |
[
Want
](
js-apis-application-want.md
)
| 是 | 组件使用者Ability信息。 |
| target |
[
Want
](
js-apis-application-want.md
)
| 是 | 组件提供者Ability信息。 |
| name | string | 是 | 请求组件名称。 |
...
...
@@ -118,7 +118,7 @@ PluginManager.Request方法时候接收到的回调结果。
**系统能力:**
SystemCapability.ArkUI.ArkUI.Full
| 名称 | 类型 | 必填 | 说明 |
| ----------------- | ----------------------------------------
----------- | ---- | -----
----- |
| ----------------- | ----------------------------------------
| ---- |
----- |
| componentTemplate |
[
PluginComponentTemplate
](
#plugincomponenttemplate
)
| 是 | 组件模板。 |
| data |
[
KVObject
](
#kvobject
)
| 是 | 组件数据。 |
| extraData |
[
KVObject
](
#kvobject
)
| 是 | 附加数据。 |
...
...
@@ -130,7 +130,7 @@ PluginManager.Request方法时候接收到的回调结果。
**系统能力:**
SystemCapability.ArkUI.ArkUI.Full
| 名称 | 类型 | 必填 | 说明 |
| --------- | --------------------- | ---- | -----
-----
|
| --------- | --------------------- | ---- | ----- |
| template | string | 否 | 组件模板。 |
| data |
[
KVObject
](
#kvobject
)
| 否 | 组件数据。 |
| extraData |
[
KVObject
](
#kvobject
)
| 否 | 附加数据。 |
...
...
@@ -145,7 +145,7 @@ OnPushEventCallback = (source: Want, template: PluginComponentTemplate, data: KV
**参数:**
| 参数 | 类型 | 必填 | 说明 |
| --------- | ----------------------------------------
----------- | ---- | ------------------
---------------------- |
| --------- | ----------------------------------------
| ---- |
---------------------- |
| source |
[
Want
](
js-apis-application-want.md
)
| 是 | Push请求发送方相关信息。 |
| template |
[
PluginComponentTemplate
](
#plugincomponenttemplate
)
| 是 | Push请求发送方相关信息请求组件模板名称。 |
| data |
[
KVObject
](
#kvobject
)
| 是 | 数据。 |
...
...
@@ -173,7 +173,7 @@ OnRequestEventCallback = (source: Want, name: string, data: KVObject) => Request
**参数:**
| 参数 | 类型 | 必填 | 说明 |
| --------- | ----------------------------------- | ---- | -----------------
----------
|
| --------- | ----------------------------------- | ---- | ----------------- |
| source |
[
Want
](
js-apis-application-want.md
)
| 是 | request请求发送方相关信息。 |
| name | string | 是 | 模板名称。 |
| extraData |
[
KVObject
](
#kvobject
)
| 是 | 附加数据。 |
...
...
@@ -201,7 +201,7 @@ push(param: PushParameters , callback: AsyncCallback<void>): void
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
| -------- | --------------------------------- | ---- | ------------
------------
|
| -------- | --------------------------------- | ---- | ------------ |
| param |
[
PushParameters
](
#pushparameters
)
| 是 | 组件使用者的详细信息。 |
| callback | AsyncCallback
<
void
>
| 是 | 此次接口调用的异步回调。 |
...
...
@@ -242,7 +242,7 @@ push(param: PushParameterForStage, callback: AsyncCallback<void>): void
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
| -------- | ----------------------------------------
------- | ---- | ------------
------------ |
| -------- | ----------------------------------------
| ---- |
------------ |
| param |
[
PushParameterForStage
](
#pushparameterforstage
)
| 是 | 组件使用者的详细信息。 |
| callback | AsyncCallback
<
void
>
| 是 | 此次接口调用的异步回调。 |
...
...
@@ -290,7 +290,7 @@ request(param: RequestParameters, callback: AsyncCallback<RequestCallbackPara
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
| -------- | ----------------------------------------
------------------------------------------------------ | ---- | -----------------------------
----------------------------------- |
| -------- | ----------------------------------------
| ---- |
----------------------------------- |
| param |
[
RequestParameters
](
#requestparameters
)
| 是 | 组件模板的详细请求信息。 |
| callback | AsyncCallback
<
[RequestCallbackParameters](#requestcallbackparameters)
\|
void
>
| 是 | 此次请求的异步回调,
通过回调接口的参数返回接受请求的数据。 |
...
...
@@ -333,7 +333,7 @@ request(param: RequestParameterForStage, callback: AsyncCallback<RequestCallb
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
| -------- | ----------------------------------------
------------------------------------------------------ | ---- | -----------------------------
----------------------------------- |
| -------- | ----------------------------------------
| ---- |
----------------------------------- |
| param |
[
RequestParameterForStage
](
#requestparameterforstage
)
| 是 | 组件模板的详细请求信息。 |
| callback | AsyncCallback
<
[RequestCallbackParameters](#requestcallbackparameters)
\|
void
>
| 是 | 此次请求的异步回调,
通过回调接口的参数返回接受请求的数据。 |
...
...
@@ -372,7 +372,7 @@ on(eventType: string, callback: OnPushEventCallback | OnRequestEventCallback ):
**参数:**
| 参数名 | 类型 | 必填 | 说明 |
| --------- | ----------------------------------------
------------------------------------------------------------------ | ---- | ----------------------------------------------------------------------------------------------------------------------
---------------------------------------- |
| --------- | ----------------------------------------
| ---- |
---------------------------------------- |
| eventType | string | 是 | 监听的事件类型,
可选值为:"push"
、"request"。
<br/>
"push”:指组件提供者向使用者主动推送数据。
<br/>
"request”:指组件使用者向提供者主动请求数据。 |
| callback |
[
OnPushEventCallback
](
#onpusheventcallback
)
\|
[
OnRequestEventCallback
](
#onrequesteventcallback
)
| 是 | 对应监听回调,push事件对应回调类型为
[
OnPushEventCallback
](
#onpusheventcallback
)
,request事件对应回调类型为
[
OnRequestEventCallback
](
#onrequesteventcallback
)
。 |
...
...
zh-cn/application-dev/reference/arkui-js/Readme-CN.md
浏览文件 @
d3fd703d
...
...
@@ -93,7 +93,7 @@
-
[
animateMotion
](
js-components-svg-animatemotion.md
)
-
[
animateTransform
](
js-components-svg-animatetransform.md
)
-
自定义组件
-
[
基本用法
](
js-components-custom-basic-usage.md
)
-
[
自定义组件的
基本用法
](
js-components-custom-basic-usage.md
)
-
[
数据传递与处理
](
js-components-custom-props.md
)
-
[
继承样式
](
js-components-custom-style.md
)
-
[
slot插槽
](
js-components-custom-slot.md
)
...
...
zh-cn/application-dev/reference/arkui-ts/Readme-CN.md
浏览文件 @
d3fd703d
...
...
@@ -40,12 +40,12 @@
-
[
触摸热区设置
](
ts-universal-attributes-touch-target.md
)
-
[
多态样式
](
ts-universal-attributes-polymorphic-style.md
)
-
[
触摸测试控制
](
ts-universal-attributes-hit-test-behavior.md
)
-
[
背景模糊设置
](
ts-universal-attributes-backgroundBlurStyle.md
)
-
[
组件背景模糊
](
ts-universal-attributes-backgroundBlurStyle.md
)
-
[
分布式迁移标识
](
ts-universal-attributes-restoreId.md
)
-
[
前景色设置
](
ts-universal-attributes-foreground-color.md
)
-
[
图像球面效果
设置
](
ts-universal-attributes-sphericalEffect.md
)
-
[
图像渐亮效果
设置
](
ts-universal-attributes-lightUpEffect.md
)
-
[
图像
像素扩展效果设置
](
ts-universal-attributes-pixelStretchEffect.md
)
-
[
图像球面效果
](
ts-universal-attributes-sphericalEffect.md
)
-
[
图像渐亮效果
](
ts-universal-attributes-lightUpEffect.md
)
-
[
图像
边缘像素扩展效果
](
ts-universal-attributes-pixelStretchEffect.md
)
-
模态转场设置
-
[
全屏模态转场
](
ts-universal-attributes-modal-transition.md
)
-
[
半模态转场
](
ts-universal-attributes-sheet-transition.md
)
...
...
@@ -69,7 +69,7 @@
-
[
DataPanel
](
ts-basic-components-datapanel.md
)
-
[
DatePicker
](
ts-basic-components-datepicker.md
)
-
[
Divider
](
ts-basic-components-divider.md
)
-
[
Form
c
omponent
](
ts-basic-components-formcomponent.md
)
-
[
Form
C
omponent
](
ts-basic-components-formcomponent.md
)
-
[
Gauge
](
ts-basic-components-gauge.md
)
-
[
Image
](
ts-basic-components-image.md
)
-
[
ImageAnimator
](
ts-basic-components-imageanimator.md
)
...
...
@@ -170,14 +170,14 @@
-
[
警告弹窗
](
ts-methods-alert-dialog-box.md
)
-
[
列表选择弹窗
](
ts-methods-action-sheet.md
)
-
[
自定义弹窗
](
ts-methods-custom-dialog-box.md
)
-
[
日期
选择
弹窗
](
ts-methods-datepicker-dialog.md
)
-
[
时间
选择
弹窗
](
ts-methods-timepicker-dialog.md
)
-
[
文本
选择
弹窗
](
ts-methods-textpicker-dialog.md
)
-
[
日期
滑动选择器
弹窗
](
ts-methods-datepicker-dialog.md
)
-
[
时间
滑动选择器
弹窗
](
ts-methods-timepicker-dialog.md
)
-
[
文本
滑动选择器
弹窗
](
ts-methods-textpicker-dialog.md
)
-
[
菜单
](
ts-methods-menu.md
)
-
[
自定义组件的生命周期
](
ts-custom-component-lifecycle.md
)
-
[
应用级变量的状态管理
](
ts-state-management.md
)
-
[
像素单位
](
ts-pixel-units.md
)
-
[
枚举说明
](
ts-appendix-enums.md
)
-
[
类型
说明
](
ts-types.md
)
-
[
类型
定义
](
ts-types.md
)
-
已停止维护的组件
-
[
GridContainer
](
ts-container-gridcontainer.md
)
zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-modal-transition.md
浏览文件 @
d3fd703d
# 全屏模态转场
设置
# 全屏模态转场
通过bindContentCover属性为组件绑定全屏模态页面,在组件插入和删除时可通过设置转场参数ModalTransition显示过渡动效。
...
...
@@ -9,7 +9,7 @@
## 属性
| 名称 | 参数 | 参数描述 |
| --------
| -------- |
-------- |
| --------
-------- | ---------------------------------------- | --------------------------------
-------- |
| bindContentCover | isShow: boolean,
<br>
builder:
[
CustomBuilder
](
ts-types.md#custombuilder8
)
,
<br>
type?:
[
ModalTransition
](
ts-types.md#modaltransition10
)
| 给组件绑定全屏模态页面,点击后显示模态页面。模态页面内容自定义,显示方式可设置无动画过渡,上下切换过渡以及透明渐变过渡方式。
<br/>
isShow: 必填,是否显示全屏模态页面。
<br/>
builder: 必填,配置全屏模态页面内容。
<br/>
type: 非必填,配置全屏模态页面的转场方式。 |
## 示例
...
...
zh-cn/application-dev/reference/arkui-ts/ts-universal-events-keyboardshortcut.md
浏览文件 @
d3fd703d
#
自定义快捷键
#
组件快捷键事件
开发者可以设置组件的自定义组合键,组合键的行为与click行为一致,组件在未获得焦点状态下也可以响应自定义组合键,每个组件可以设置多个组合键。
...
...
@@ -13,14 +13,14 @@ keyboardShortcut(value: string | [FunctionKey], keys: Array<[ModifierKey]>)
**参数:**
| 参数名 | 参数类型 | 必填 | 参数描述 |
| -----
- | ------------------------------------- | ---- | --------------------
---------------------------------------- |
| -----
| ------------------------------------- | ---- |
---------------------------------------- |
| value | string
\|
[
FunctionKey
](
#functionkey
)
| 是 | 热键的单个字符(可以通过键盘输入的字符)或
[
FunctionKey
](
#functionkey
)
。
<br/>
|
| keys | Array
<
[
ModifierKey
](
#modifierkey
)
>
| 是 | 热键组合。
<br/>
|
## ModifierKey
| 名称 | 描述 |
| ----- | ------------
-------
|
| ----- | ------------ |
| CTRL | 表示键盘上Ctrl键。 |
| SHIFT | 表示键盘上Shift键。 |
| ALT | 表示键盘上Alt键。 |
...
...
@@ -28,7 +28,7 @@ keyboardShortcut(value: string | [FunctionKey], keys: Array<[ModifierKey]>)
## FunctionKey
| 名称 | 描述 |
| ---- | ------------
---------
|
| ---- | ------------ |
| ESC | 表示键盘上ESC功能键。 |
| F1 | 表示键盘上F1功能键。 |
| F2 | 表示键盘上F2功能键。 |
...
...
@@ -46,7 +46,7 @@ keyboardShortcut(value: string | [FunctionKey], keys: Array<[ModifierKey]>)
## 快捷键使用注意事项
| 场景 | 快捷键处理逻辑 | 例子 |
| ----------------------------------------
-------------------- | -------------------------------------------------------- | --------------------
---------------------------------------- |
| ----------------------------------------
| ---------------------------------- |
---------------------------------------- |
| 所有支持onClick事件的组件 | 支持自定义组合键 | 无 |
| 自定义组合键要求 | 控制键Ctrl,Shift,Alt及它们的组合加上其它可输入字符按键 | Button('button1').keyboardShortcut('a',[ModifierKey.CTRL]) |
| 多个不同组件设置相同组合键 | 只响应结点树上的第一个组件、其它组件不响应快捷键。 | Button('button1').keyboardShortcut('a',[ModifierKey.CTRL])
<br
/>
Button('button2').keyboardShortcut('a',[ModifierKey.CTRL]) |
...
...
@@ -63,7 +63,7 @@ keyboardShortcut(value: string | [FunctionKey], keys: Array<[ModifierKey]>)
## 系统已有组合键
| 快捷键 | 组件 |
| -------------- | ----------------------------------------
--------------------
|
| -------------- | ---------------------------------------- |
| Ctrl + C |
[
Image
](
ts-basic-components-image.md
)
、
[
TextInput
](
ts-basic-components-textinput.md
)
、
[
TextArea
](
ts-basic-components-textarea.md
)
|
| Ctrl+ A |
[
TextInput
](
ts-basic-components-textinput.md
)
、
[
TextArea
](
ts-basic-components-textarea.md
)
|
| Ctrl+ V |
[
TextInput
](
ts-basic-components-textinput.md
)
、
[
TextArea
](
ts-basic-components-textarea.md
)
|
...
...
zh-cn/application-dev/ui/Readme-CN.md
浏览文件 @
d3fd703d
...
...
@@ -86,33 +86,33 @@
-
[
页面路由
](
ui-js-building-ui-routes.md
)
-
常见组件开发指导
-
容器组件
-
[
L
ist开发指导
](
ui-js-components-list.md
)
-
[
D
ialog开发指导
](
ui-js-components-dialog.md
)
-
[
F
orm开发指导
](
ui-js-components-form.md
)
-
[
S
tepper开发指导
](
ui-js-components-stepper.md
)
-
[
T
abs开发指导
](
ui-js-component-tabs.md
)
-
[
S
wiper开发指导
](
ui-js-components-swiper.md
)
-
[
l
ist开发指导
](
ui-js-components-list.md
)
-
[
d
ialog开发指导
](
ui-js-components-dialog.md
)
-
[
f
orm开发指导
](
ui-js-components-form.md
)
-
[
s
tepper开发指导
](
ui-js-components-stepper.md
)
-
[
t
abs开发指导
](
ui-js-component-tabs.md
)
-
[
s
wiper开发指导
](
ui-js-components-swiper.md
)
-
基础组件
-
[
T
ext开发指导
](
ui-js-components-text.md
)
-
[
I
nput开发指导
](
ui-js-components-input.md
)
-
[
B
utton开发指导
](
ui-js-components-button.md
)
-
[
P
icker开发指导
](
ui-js-components-picker.md
)
-
[
I
mage开发指导
](
ui-js-components-images.md
)
-
[
I
mage-animator开发指导
](
ui-js-components-image-animator.md
)
-
[
R
ating开发指导
](
ui-js-components-rating.md
)
-
[
S
lider开发指导
](
ui-js-components-slider.md
)
-
[
C
hart开发指导
](
ui-js-components-chart.md
)
-
[
S
witch开发指导
](
ui-js-components-switch.md
)
-
[
T
oolbar开发指导
](
ui-js-components-toolbar.md
)
-
[
M
enu开发指导
](
ui-js-components-menu.md
)
-
[
M
arquee开发指导
](
ui-js-components-marquee.md
)
-
[
Q
rcode开发指导
](
ui-js-components-qrcode.md
)
-
[
S
earch开发指导
](
ui-js-components-search.md
)
-
[
t
ext开发指导
](
ui-js-components-text.md
)
-
[
i
nput开发指导
](
ui-js-components-input.md
)
-
[
b
utton开发指导
](
ui-js-components-button.md
)
-
[
p
icker开发指导
](
ui-js-components-picker.md
)
-
[
i
mage开发指导
](
ui-js-components-images.md
)
-
[
i
mage-animator开发指导
](
ui-js-components-image-animator.md
)
-
[
r
ating开发指导
](
ui-js-components-rating.md
)
-
[
s
lider开发指导
](
ui-js-components-slider.md
)
-
[
c
hart开发指导
](
ui-js-components-chart.md
)
-
[
s
witch开发指导
](
ui-js-components-switch.md
)
-
[
t
oolbar开发指导
](
ui-js-components-toolbar.md
)
-
[
m
enu开发指导
](
ui-js-components-menu.md
)
-
[
m
arquee开发指导
](
ui-js-components-marquee.md
)
-
[
q
rcode开发指导
](
ui-js-components-qrcode.md
)
-
[
s
earch开发指导
](
ui-js-components-search.md
)
-
Canvas开发指导
-
[
Canvas对象
](
ui-js-components-canvas.md
)
-
[
CanvasRenderingContext2D对象
](
ui-js-components-canvasrenderingcontext2d.md
)
-
[
Path2D对象
](
ui-js-components-path2d.md
)
-
[
OffscreenCanvas对象
](
ui-js-components-offscreencanvas.md
)
-
[
OffscreenCanvas
RenderingContext2D
对象
](
ui-js-components-offscreencanvas.md
)
-
[
栅格布局
](
ui-js-components-grid.md
)
-
Svg开发指导
-
[
基础知识
](
ui-js-components-svg-overview.md
)
...
...
zh-cn/application-dev/ui/arkts-event-overview.md
浏览文件 @
d3fd703d
# 概述
#
交互事件
概述
交互事件按照触发类型来分类,包括触屏事件、键鼠事件和焦点事件。
...
...
zh-cn/application-dev/ui/ui-js-components-search.md
浏览文件 @
d3fd703d
# search
# search
开发指导
提供搜索框组件,用于提供用户搜索内容的输入区域,具体用法请参考
[
search
](
../reference/arkui-js/js-components-basic-search.md
)
。
...
...
zh-cn/application-dev/website.md
浏览文件 @
d3fd703d
...
...
@@ -328,33 +328,33 @@
-
[
页面路由
](
ui/ui-js-building-ui-routes.md
)
-
常见组件开发指导
-
容器组件
-
[
L
ist开发指导
](
ui/ui-js-components-list.md
)
-
[
D
ialog开发指导
](
ui/ui-js-components-dialog.md
)
-
[
F
orm开发指导
](
ui/ui-js-components-form.md
)
-
[
S
tepper开发指导
](
ui/ui-js-components-stepper.md
)
-
[
T
abs开发指导
](
ui/ui-js-component-tabs.md
)
-
[
S
wiper开发指导
](
ui/ui-js-components-swiper.md
)
-
[
l
ist开发指导
](
ui/ui-js-components-list.md
)
-
[
d
ialog开发指导
](
ui/ui-js-components-dialog.md
)
-
[
f
orm开发指导
](
ui/ui-js-components-form.md
)
-
[
s
tepper开发指导
](
ui/ui-js-components-stepper.md
)
-
[
t
abs开发指导
](
ui/ui-js-component-tabs.md
)
-
[
s
wiper开发指导
](
ui/ui-js-components-swiper.md
)
-
基础组件
-
[
T
ext开发指导
](
ui/ui-js-components-text.md
)
-
[
I
nput开发指导
](
ui/ui-js-components-input.md
)
-
[
B
utton开发指导
](
ui/ui-js-components-button.md
)
-
[
P
icker开发指导
](
ui/ui-js-components-picker.md
)
-
[
I
mage开发指导
](
ui/ui-js-components-images.md
)
-
[
I
mage-animator开发指导
](
ui/ui-js-components-image-animator.md
)
-
[
R
ating开发指导
](
ui/ui-js-components-rating.md
)
-
[
S
lider开发指导
](
ui/ui-js-components-slider.md
)
-
[
C
hart开发指导
](
ui/ui-js-components-chart.md
)
-
[
S
witch开发指导
](
ui/ui-js-components-switch.md
)
-
[
T
oolbar开发指导
](
ui/ui-js-components-toolbar.md
)
-
[
M
enu开发指导
](
ui/ui-js-components-menu.md
)
-
[
M
arquee开发指导
](
ui/ui-js-components-marquee.md
)
-
[
Q
rcode开发指导
](
ui/ui-js-components-qrcode.md
)
-
[
S
earch开发指导
](
ui/ui-js-components-search.md
)
-
[
t
ext开发指导
](
ui/ui-js-components-text.md
)
-
[
i
nput开发指导
](
ui/ui-js-components-input.md
)
-
[
b
utton开发指导
](
ui/ui-js-components-button.md
)
-
[
p
icker开发指导
](
ui/ui-js-components-picker.md
)
-
[
i
mage开发指导
](
ui/ui-js-components-images.md
)
-
[
i
mage-animator开发指导
](
ui/ui-js-components-image-animator.md
)
-
[
r
ating开发指导
](
ui/ui-js-components-rating.md
)
-
[
s
lider开发指导
](
ui/ui-js-components-slider.md
)
-
[
c
hart开发指导
](
ui/ui-js-components-chart.md
)
-
[
s
witch开发指导
](
ui/ui-js-components-switch.md
)
-
[
t
oolbar开发指导
](
ui/ui-js-components-toolbar.md
)
-
[
m
enu开发指导
](
ui/ui-js-components-menu.md
)
-
[
m
arquee开发指导
](
ui/ui-js-components-marquee.md
)
-
[
q
rcode开发指导
](
ui/ui-js-components-qrcode.md
)
-
[
s
earch开发指导
](
ui/ui-js-components-search.md
)
-
Canvas开发指导
-
[
Canvas对象
](
ui/ui-js-components-canvas.md
)
-
[
CanvasRenderingContext2D对象
](
ui/ui-js-components-canvasrenderingcontext2d.md
)
-
[
Path2D对象
](
ui/ui-js-components-path2d.md
)
-
[
OffscreenCanvas对象
](
ui/ui-js-components-offscreencanvas.md
)
-
[
OffscreenCanvas
RenderingContext2D
对象
](
ui/ui-js-components-offscreencanvas.md
)
-
[
栅格布局
](
ui/ui-js-components-grid.md
)
-
Svg开发指导
-
[
基础知识
](
ui/ui-js-components-svg-overview.md
)
...
...
@@ -722,12 +722,12 @@
-
[
触摸热区设置
](
reference/arkui-ts/ts-universal-attributes-touch-target.md
)
-
[
多态样式
](
reference/arkui-ts/ts-universal-attributes-polymorphic-style.md
)
-
[
触摸测试控制
](
reference/arkui-ts/ts-universal-attributes-hit-test-behavior.md
)
-
[
背景模糊设置
](
reference/arkui-ts/ts-universal-attributes-backgroundBlurStyle.md
)
-
[
组件背景模糊
](
reference/arkui-ts/ts-universal-attributes-backgroundBlurStyle.md
)
-
[
分布式迁移标识
](
reference/arkui-ts/ts-universal-attributes-restoreId.md
)
-
[
前景色设置
](
reference/arkui-ts/ts-universal-attributes-foreground-color.md
)
-
[
图像球面效果
设置
](
reference/arkui-ts/ts-universal-attributes-sphericalEffect.md
)
-
[
图像渐亮效果
设置
](
reference/arkui-ts/ts-universal-attributes-lightUpEffect.md
)
-
[
图像
像素扩展效果设置
](
reference/arkui-ts/ts-universal-attributes-pixelStretchEffect.md
)
-
[
图像球面效果
](
reference/arkui-ts/ts-universal-attributes-sphericalEffect.md
)
-
[
图像渐亮效果
](
reference/arkui-ts/ts-universal-attributes-lightUpEffect.md
)
-
[
图像
边缘像素扩展效果
](
reference/arkui-ts/ts-universal-attributes-pixelStretchEffect.md
)
-
[
文本通用属性
](
reference/arkui-ts/ts-universal-attributes-text-style.md
)
-
手势处理
-
[
绑定手势方法
](
reference/arkui-ts/ts-gesture-settings.md
)
...
...
@@ -748,7 +748,7 @@
-
[
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
)
-
[
Form
c
omponent
](
reference/arkui-ts/ts-basic-components-formcomponent.md
)
-
[
Form
C
omponent
](
reference/arkui-ts/ts-basic-components-formcomponent.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
)
...
...
@@ -847,15 +847,15 @@
-
[
警告弹窗
](
reference/arkui-ts/ts-methods-alert-dialog-box.md
)
-
[
列表选择弹窗
](
reference/arkui-ts/ts-methods-action-sheet.md
)
-
[
自定义弹窗
](
reference/arkui-ts/ts-methods-custom-dialog-box.md
)
-
[
日期
选择
弹窗
](
reference/arkui-ts/ts-methods-datepicker-dialog.md
)
-
[
时间
选择
弹窗
](
reference/arkui-ts/ts-methods-timepicker-dialog.md
)
-
[
文本
选择
弹窗
](
reference/arkui-ts/ts-methods-textpicker-dialog.md
)
-
[
日期
滑动选择器
弹窗
](
reference/arkui-ts/ts-methods-datepicker-dialog.md
)
-
[
时间
滑动选择器
弹窗
](
reference/arkui-ts/ts-methods-timepicker-dialog.md
)
-
[
文本
滑动选择器
弹窗
](
reference/arkui-ts/ts-methods-textpicker-dialog.md
)
-
[
菜单
](
reference/arkui-ts/ts-methods-menu.md
)
-
[
自定义组件的生命周期
](
reference/arkui-ts/ts-custom-component-lifecycle.md
)
-
[
应用级变量的状态管理
](
reference/arkui-ts/ts-state-management.md
)
-
[
像素单位
](
reference/arkui-ts/ts-pixel-units.md
)
-
[
枚举说明
](
reference/arkui-ts/ts-appendix-enums.md
)
-
[
类型
说明
](
reference/arkui-ts/ts-types.md
)
-
[
类型
定义
](
reference/arkui-ts/ts-types.md
)
-
已停止维护的组件
-
[
GridContainer
](
reference/arkui-ts/ts-container-gridcontainer.md
)
-
组件参考(兼容JS的类Web开发范式-ArkUI.Full)
...
...
@@ -952,7 +952,7 @@
-
[
animateMotion
](
reference/arkui-js/js-components-svg-animatemotion.md
)
-
[
animateTransform
](
reference/arkui-js/js-components-svg-animatetransform.md
)
-
自定义组件
-
[
基本用法
](
reference/arkui-js/js-components-custom-basic-usage.md
)
-
[
自定义组件的
基本用法
](
reference/arkui-js/js-components-custom-basic-usage.md
)
-
[
数据传递与处理
](
reference/arkui-js/js-components-custom-props.md
)
-
[
继承样式
](
reference/arkui-js/js-components-custom-style.md
)
-
[
slot插槽
](
reference/arkui-js/js-components-custom-slot.md
)
...
...
@@ -1213,17 +1213,17 @@
-
[
shortcutInfo
](
reference/apis/js-apis-bundleManager-shortcutInfo.md
)
-
UI界面
-
[
@ohos.animator (动画)
](
reference/apis/js-apis-animator.md
)
-
[
@ohos.arkui.componentSnapshot
(组件截图)
](
reference/apis/js-apis-arkui-componentSnapshot.md
)
-
[
@ohos.arkui.componentSnapshot
(组件截图)
](
reference/apis/js-apis-arkui-componentSnapshot.md
)
-
[
@ohos.arkui.drawableDescriptor (DrawableDescriptor)
](
reference/apis/js-apis-arkui-drawableDescriptor.md
)
-
[
@ohos.curves (插值计算)
](
reference/apis/js-apis-curve.md
)
-
[
@ohos.font(注册自定义字体)
](
reference/apis/js-apis-font.md
)
-
[
@ohos.font
(注册自定义字体)
](
reference/apis/js-apis-font.md
)
-
[
@ohos.matrix4 (矩阵变换)
](
reference/apis/js-apis-matrix4.md
)
-
[
@ohos.mediaquery (媒体查询)
](
reference/apis/js-apis-mediaquery.md
)
-
[
@ohos.pluginComponent(PluginComponentManager)
](
reference/apis/js-apis-plugincomponent.md
)
-
[
@ohos.pluginComponent
(PluginComponentManager)
](
reference/apis/js-apis-plugincomponent.md
)
-
[
@ohos.promptAction (弹窗)
](
reference/apis/js-apis-promptAction.md
)
-
[
@ohos.router (页面路由)
](
reference/apis/js-apis-router.md
)
-
[
@ohos.measure (文本计算)
](
reference/apis/js-apis-measure.md
)
-
[
@ohos.uiAppearance(用户界面外观)
](
reference/apis/js-apis-uiappearance.md
)
-
[
@ohos.uiAppearance
(用户界面外观)
](
reference/apis/js-apis-uiappearance.md
)
-
图形图像
-
[
@ohos.animation.windowAnimationManager (窗口动画管理)
](
reference/apis/js-apis-windowAnimationManager.md
)
-
[
@ohos.application.WindowExtensionAbility (窗口扩展能力)
](
reference/apis/js-apis-application-windowExtensionAbility.md
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录