Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
e7a9f17f
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看板
未验证
提交
e7a9f17f
编写于
8月 22, 2022
作者:
O
openharmony_ci
提交者:
Gitee
8月 22, 2022
浏览文件
操作
浏览文件
下载
差异文件
!8369 更新断链
Merge pull request !8369 from 田雨/OpenHarmony-3.1-Release
上级
d7d0897f
9081aaf6
变更
25
隐藏空白更改
内联
并排
Showing
25 changed file
with
136 addition
and
122 deletion
+136
-122
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-blank.md
...ation-dev/reference/arkui-ts/ts-basic-components-blank.md
+6
-6
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-button.md
...tion-dev/reference/arkui-ts/ts-basic-components-button.md
+1
-1
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-checkbox.md
...on-dev/reference/arkui-ts/ts-basic-components-checkbox.md
+1
-1
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-checkboxgroup.md
...v/reference/arkui-ts/ts-basic-components-checkboxgroup.md
+1
-1
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-divider.md
...ion-dev/reference/arkui-ts/ts-basic-components-divider.md
+6
-6
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-image.md
...ation-dev/reference/arkui-ts/ts-basic-components-image.md
+5
-5
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-loadingprogress.md
...reference/arkui-ts/ts-basic-components-loadingprogress.md
+1
-1
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-navigation.md
...-dev/reference/arkui-ts/ts-basic-components-navigation.md
+3
-3
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-progress.md
...on-dev/reference/arkui-ts/ts-basic-components-progress.md
+5
-5
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-qrcode.md
...tion-dev/reference/arkui-ts/ts-basic-components-qrcode.md
+1
-1
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-search.md
...tion-dev/reference/arkui-ts/ts-basic-components-search.md
+6
-6
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-select.md
...tion-dev/reference/arkui-ts/ts-basic-components-select.md
+14
-14
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-slider.md
...tion-dev/reference/arkui-ts/ts-basic-components-slider.md
+4
-4
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-span.md
...cation-dev/reference/arkui-ts/ts-basic-components-span.md
+3
-3
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-text.md
...cation-dev/reference/arkui-ts/ts-basic-components-text.md
+7
-7
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textarea.md
...on-dev/reference/arkui-ts/ts-basic-components-textarea.md
+9
-9
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textclock.md
...n-dev/reference/arkui-ts/ts-basic-components-textclock.md
+4
-4
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textinput.md
...n-dev/reference/arkui-ts/ts-basic-components-textinput.md
+5
-5
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-toggle.md
...tion-dev/reference/arkui-ts/ts-basic-components-toggle.md
+2
-2
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-web.md
...ication-dev/reference/arkui-ts/ts-basic-components-web.md
+19
-5
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-xcomponent.md
...-dev/reference/arkui-ts/ts-basic-components-xcomponent.md
+6
-6
zh-cn/application-dev/reference/arkui-ts/ts-methods-action-sheet.md
...ication-dev/reference/arkui-ts/ts-methods-action-sheet.md
+8
-8
zh-cn/application-dev/reference/arkui-ts/ts-methods-alert-dialog-box.md
...ion-dev/reference/arkui-ts/ts-methods-alert-dialog-box.md
+9
-9
zh-cn/application-dev/reference/arkui-ts/ts-methods-custom-dialog-box.md
...on-dev/reference/arkui-ts/ts-methods-custom-dialog-box.md
+1
-1
zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-popup.md
...n-dev/reference/arkui-ts/ts-universal-attributes-popup.md
+9
-9
未找到文件。
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-blank.md
浏览文件 @
e7a9f17f
...
@@ -23,15 +23,15 @@ Blank(min?: Length)
...
@@ -23,15 +23,15 @@ Blank(min?: Length)
**参数:**
**参数:**
| 参数名 | 参数类型
| 必填 | 默认值 | 参数描述 |
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| ------ | ----------------------------
--
| ---- | ------ | ------------------------------------ |
| ------ | ---------------------------- | ---- | ------ | ------------------------------------ |
| min |
[
Length
](
../../ui/ts-types.md
)
| 否 | 0 | 空白填充组件在容器主轴上的最小大小。 |
| min |
[
Length
](
ts-types.md#length
)
| 否 | 0 | 空白填充组件在容器主轴上的最小大小。 |
## 属性
## 属性
| 名称 | 参数类型 | 默认值 | 描述 |
| 名称 | 参数类型
| 默认值 | 描述 |
| ----- | -------- | -------- | ------------------------ |
| ----- | --------
-----------------------------------
| -------- | ------------------------ |
| color |
[
ResourceColor
](
../../ui/ts-types.md
)
| 0xffffff | 设置空白填充的填充颜色。 |
| color |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| 0xffffff | 设置空白填充的填充颜色。 |
> **说明:**
> **说明:**
>
>
...
...
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-button.md
浏览文件 @
e7a9f17f
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| ------- | ------ | ---- | ---- | ------------- |
| ------- | ------ | ---- | ---- | ------------- |
| label |
[
ResourceStr
](
../../ui/ts-types.md
)
| 否 | - | 按钮文本内容。 |
| label |
[
ResourceStr
](
ts-types.md#resourcestr8
)
| 否 | - | 按钮文本内容。 |
| options | Object | 否 | - | 见options参数说明。 |
| options | Object | 否 | - | 见options参数说明。 |
## 属性
## 属性
...
...
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-checkbox.md
浏览文件 @
e7a9f17f
...
@@ -30,7 +30,7 @@ Checkbox( name?: string, group?: string )
...
@@ -30,7 +30,7 @@ Checkbox( name?: string, group?: string )
| 名称 | 参数类型 | 默认值 | 描述 |
| 名称 | 参数类型 | 默认值 | 描述 |
| ------------- | ----- | ----- | ------------ |
| ------------- | ----- | ----- | ------------ |
| select | boolean | false | 设置多选框是否选中。 |
| select | boolean | false | 设置多选框是否选中。 |
| selectedColor |
[
ResourceColor
](
../../ui/ts-types.md
)
| - | 设置多选框选中状态颜色。 |
| selectedColor |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| - | 设置多选框选中状态颜色。 |
## 事件
## 事件
...
...
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-checkboxgroup.md
浏览文件 @
e7a9f17f
...
@@ -31,7 +31,7 @@ CheckboxGroup( group?: string )
...
@@ -31,7 +31,7 @@ CheckboxGroup( group?: string )
| 名称 | 参数类型 | 默认值 | 描述 |
| 名称 | 参数类型 | 默认值 | 描述 |
| ------------- | ----- | ----- | ---------------- |
| ------------- | ----- | ----- | ---------------- |
| selectAll | boolean | false | 设置是否全选。 |
| selectAll | boolean | false | 设置是否全选。 |
| selectedColor |
[
ResourceColor
](
../../ui/ts-types.md
)
| - | 设置被选中或部分选中状态的颜色。 |
| selectedColor |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| - | 设置被选中或部分选中状态的颜色。 |
## 事件
## 事件
...
...
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-divider.md
浏览文件 @
e7a9f17f
...
@@ -20,12 +20,12 @@ Divider()
...
@@ -20,12 +20,12 @@ Divider()
## 属性
## 属性
| 名称
| 参数类型 | 默认值 | 描述
|
| 名称
| 参数类型 | 默认值 | 描述
|
| ----------- | ----------------------------------------
| ----------------- |
---------------------------------------- |
| ----------- | ----------------------------------------
----------------- | ----------------- | --------------------
---------------------------------------- |
| vertical | boolean | false | 使用水平分割线还是垂直分割线,false:
水平分割线,
true:垂直分割线。 |
| vertical | boolean
| false | 使用水平分割线还是垂直分割线,false:
水平分割线,
true:垂直分割线。 |
| color |
[
ResourceColor
](
../../ui/ts-types.md
)
| - | 设置分割线颜色。
|
| color |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| - | 设置分割线颜色。
|
| strokeWidth |
[
Length
](
../../ui/ts-types.md
)
| 1 | 设置分割线宽度。
|
| strokeWidth |
[
Length
](
ts-types.md#length
)
| 1 | 设置分割线宽度。
|
| lineCap |
[
LineCapStyle
](
ts-appendix-enums.md#linecapstyle枚举说明
)
| LineCapStyle.Butt | 设置分割线条的端点样式。 |
| lineCap |
[
LineCapStyle
](
ts-appendix-enums.md#linecapstyle枚举说明
)
| LineCapStyle.Butt | 设置分割线条的端点样式。
|
## 事件
## 事件
...
...
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-image.md
浏览文件 @
e7a9f17f
...
@@ -33,15 +33,15 @@ Image(src: string | PixelMap | Resource)
...
@@ -33,15 +33,15 @@ Image(src: string | PixelMap | Resource)
**参数:**
**参数:**
| 参数名
| 参数类型 | 必填 | 默认值 | 参数描述
|
| 参数名
| 参数类型 | 必填 | 默认值 | 参数描述
|
| ----
| ---------------------------------------- | ---- | ---- |
---------------------------------------- |
| ----
-- | ------------------------------------------------------------ | ---- | ------ | --------------------
---------------------------------------- |
| src
| string
\|
[PixelMap](../apis/js-apis-image.md#pixelmap7)\|
[
Resource
](
../../ui/ts-types.md#resource类型
)
| 是 | -
| 图片的数据源,支持本地图片和网络图片。
<br/>
当使用相对路径引用图片资源时,例如
`Image("common/test.jpg")`
,不支持该Image组件被跨包/跨模块调用,建议使用
`$r`
方式来管理需全局使用的图片资源。
<br/>
\-
支持的图片格式包括png、jpg、bmp、svg和gif。
<br/>
\-
支持
`Base64`
字符串。格式
`data:image/[png\|jpeg\|bmp\|webp];base64,[base64 data]`
, 其中
`[base64 data]`
为
`Base64`
字符串数据。
<br/>
\-
支持
`dataability://`
路径前缀的字符串,用于访问通过data
ability提供的图片路径。 |
| src
| string
\|
[PixelMap](../apis/js-apis-image.md#pixelmap7)\|
[
Resource
](
ts-types.md#resource
)
| 是 | -
| 图片的数据源,支持本地图片和网络图片。
<br/>
当使用相对路径引用图片资源时,例如
`Image("common/test.jpg")`
,不支持该Image组件被跨包/跨模块调用,建议使用
`$r`
方式来管理需全局使用的图片资源。
<br/>
\-
支持的图片格式包括png、jpg、bmp、svg和gif。
<br/>
\-
支持
`Base64`
字符串。格式
`data:image/[png\|jpeg\|bmp\|webp];base64,[base64 data]`
, 其中
`[base64 data]`
为
`Base64`
字符串数据。
<br/>
\-
支持
`dataability://`
路径前缀的字符串,用于访问通过data
ability提供的图片路径。 |
## 属性
## 属性
| 名称 | 参数类型 | 默认值 | 描述 |
| 名称 | 参数类型 | 默认值 | 描述 |
| --------------------- | ------------------------------------------------------- | -------- | ------------------------------------------------------------ |
| --------------------- | ------------------------------------------------------- | -------- | ------------------------------------------------------------ |
| alt | string
\|
[
Resource
](
../../ui/ts-types.md#resource类型
)
| - | 加载时显示的占位图。支持本地图片和网络路径。 |
| alt | string
\|
[
Resource
](
ts-types.md#resource
)
| - | 加载时显示的占位图。支持本地图片和网络路径。 |
| objectFit |
[
ImageFit
](
ts-appendix-enums.md#imagefit
)
| Cover | 设置图片的缩放类型。 |
| objectFit |
[
ImageFit
](
ts-appendix-enums.md#imagefit
)
| Cover | 设置图片的缩放类型。 |
| objectRepeat |
[
ImageRepeat
](
ts-appendix-enums.md#imagerepeat枚举说明
)
| NoRepeat | 设置图片的重复样式。
<br/>
>
**说明:**
<br/>
>
-
svg类型图源不支持该属性。 |
| objectRepeat |
[
ImageRepeat
](
ts-appendix-enums.md#imagerepeat枚举说明
)
| NoRepeat | 设置图片的重复样式。
<br/>
>
**说明:**
<br/>
>
-
svg类型图源不支持该属性。 |
| interpolation | ImageInterpolation | None | 设置图片的插值效果,即减轻低清晰度图片在放大显示的时候出现的锯齿问题,仅针对图片放大插值。
<br/>
>
**说明:**
<br/>
>
-
svg类型图源不支持该属性。
<br/>
>
-
PixelMap资源不支持该属性。 |
| interpolation | ImageInterpolation | None | 设置图片的插值效果,即减轻低清晰度图片在放大显示的时候出现的锯齿问题,仅针对图片放大插值。
<br/>
>
**说明:**
<br/>
>
-
svg类型图源不支持该属性。
<br/>
>
-
PixelMap资源不支持该属性。 |
...
@@ -49,7 +49,7 @@ Image(src: string | PixelMap | Resource)
...
@@ -49,7 +49,7 @@ Image(src: string | PixelMap | Resource)
| sourceSize | {
<br/>
width:
number,
<br/>
height:
number
<br/>
} | - | 设置图片解码尺寸,将原始图片解码成指定尺寸的图片,number类型单位为px。
<br/>
>
**说明:**
<br/>
>
-
PixelMap资源不支持该属性。 |
| sourceSize | {
<br/>
width:
number,
<br/>
height:
number
<br/>
} | - | 设置图片解码尺寸,将原始图片解码成指定尺寸的图片,number类型单位为px。
<br/>
>
**说明:**
<br/>
>
-
PixelMap资源不支持该属性。 |
| matchTextDirection | boolean | false | 设置图片是否跟随系统语言方向,在RTL语言环境下显示镜像翻转显示效果。 |
| matchTextDirection | boolean | false | 设置图片是否跟随系统语言方向,在RTL语言环境下显示镜像翻转显示效果。 |
| fitOriginalSize | boolean | true | 图片组件尺寸未设置时,其显示尺寸是否跟随图源尺寸。 |
| fitOriginalSize | boolean | true | 图片组件尺寸未设置时,其显示尺寸是否跟随图源尺寸。 |
| fillColor |
[
ResourceColor
](
../../ui/ts-types.md
)
| - | 仅对svg图源生效,设置后会替换svg图片的fill颜色。 |
| fillColor |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| - | 仅对svg图源生效,设置后会替换svg图片的fill颜色。 |
| autoResize | boolean | true | 是否需要在图片解码过程中对图源做resize操作,该操作会根据显示区域的尺寸决定用于绘制的图源尺寸,有利于减少内存占用。 |
| autoResize | boolean | true | 是否需要在图片解码过程中对图源做resize操作,该操作会根据显示区域的尺寸决定用于绘制的图源尺寸,有利于减少内存占用。 |
| syncLoad
<sup>
8+
</sup>
| boolean | false | 设置是否同步加载图片,默认是异步加载。同步加载时阻塞UI线程,不会显示占位图。 |
| syncLoad
<sup>
8+
</sup>
| boolean | false | 设置是否同步加载图片,默认是异步加载。同步加载时阻塞UI线程,不会显示占位图。 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-loadingprogress.md
浏览文件 @
e7a9f17f
...
@@ -27,7 +27,7 @@ LoadingProgress()
...
@@ -27,7 +27,7 @@ LoadingProgress()
| 名称 | 参数类型 | 默认值 | 描述 |
| 名称 | 参数类型 | 默认值 | 描述 |
| ----- | ----- | ---- | ----------- |
| ----- | ----- | ---- | ----------- |
| color |
[
ResourceColor
](
../../ui/ts-types.md
)
| - | 设置加载进度条前景色。 |
| color |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| - | 设置加载进度条前景色。 |
## 示例
## 示例
...
...
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-navigation.md
浏览文件 @
e7a9f17f
...
@@ -28,11 +28,11 @@ Navigation()
...
@@ -28,11 +28,11 @@ Navigation()
| 名称 | 参数类型 | 默认值 | 描述 |
| 名称 | 参数类型 | 默认值 | 描述 |
| -------------- | ---------------------------------------- | ------------------------ | ---------------------------------------- |
| -------------- | ---------------------------------------- | ------------------------ | ---------------------------------------- |
| title | string
\|
[
CustomBuilder
](
../../ui/ts-types.md
)
<sup>
8+
</sup>
| - | 页面标题。 |
| title | string
\|
[
CustomBuilder
](
ts-types.md#custombuilder8
)
<sup>
8+
</sup>
| - | 页面标题。 |
| subtitle | string | - | 页面副标题。 |
| subtitle | string | - | 页面副标题。 |
| menus | Array
<NavigationMenuItem
&
gt
;&
nbsp
;\|&
nbsp
;[
CustomBuilder
](
../../
ui
/
ts-types.md
)<
sup
>
8+
</sup>
| - | 页面右上角菜单。 |
| menus | Array
<NavigationMenuItem
&
gt
;&
nbsp
;\|&
nbsp
;[
CustomBuilder
](
ts-types.md#custombuilder8
)<
sup
>
8+
</sup>
| - | 页面右上角菜单。 |
| titleMode | NavigationTitleMode | NavigationTitleMode.Free | 页面标题栏显示模式。 |
| titleMode | NavigationTitleMode | NavigationTitleMode.Free | 页面标题栏显示模式。 |
| toolBar | {
<br/>
items:Array
<
Object
>
}
<br/>
\|
[
CustomBuilder
](
../../ui/ts-types.md
)
<sup>
8+
</sup>
| - | 设置工具栏内容。
<br/>
items:
工具栏所有项。 |
| toolBar | {
<br/>
items:Array
<
Object
>
}
<br/>
\|
[
CustomBuilder
](
ts-types.md#custombuilder8
)
<sup>
8+
</sup>
| - | 设置工具栏内容。
<br/>
items:
工具栏所有项。 |
| hideToolBar | boolean | false | 设置隐藏/显示工具栏:
<br/>
true:
隐藏工具栏。
<br/>
false:
显示工具栏。 |
| hideToolBar | boolean | false | 设置隐藏/显示工具栏:
<br/>
true:
隐藏工具栏。
<br/>
false:
显示工具栏。 |
| hideTitleBar | boolean | false | 隐藏标题栏。 |
| hideTitleBar | boolean | false | 隐藏标题栏。 |
| hideBackButton | boolean | false | 隐藏返回键。 |
| hideBackButton | boolean | false | 隐藏返回键。 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-progress.md
浏览文件 @
e7a9f17f
...
@@ -43,11 +43,11 @@ Progress(options: {value: number, total?: number, type?: ProgressType})
...
@@ -43,11 +43,11 @@ Progress(options: {value: number, total?: number, type?: ProgressType})
## 属性
## 属性
| 名称
| 参数类型 | 默认值 | 描述
|
| 名称
| 参数类型 | 默认值 | 描述
|
| ------------------ | ----------------------------------------
| ---- |
---------------------------------------- |
| ------------------ | ----------------------------------------
-------------------- | ------ | --------------------
---------------------------------------- |
| value | number
| - | 设置当前进度值。
|
| value | number
| - | 设置当前进度值。
|
| color |
[
ResourceColor
](
../../ui/ts-types.md
)
| - | 设置进度条前景色。
|
| color |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| - | 设置进度条前景色。
|
| style
<sup>
8+
</sup>
| {
<br/>
strokeWidth?:
Length,
<br/>
scaleCount?:
number,
<br/>
scaleWidth?:
Length
<br/>
} | - | 定义组件的样式。
<br/>
strokeWidth:
设置进度条宽度。
<br/>
scaleCount:
设置环形进度条总刻度数。
<br/>
scaleWidth:
设置环形进度条刻度粗细。
<br/>
刻度粗细大于进度条宽度时,刻度粗细为系统默认粗细。 |
| style
<sup>
8+
</sup>
| {
<br/>
strokeWidth?:
Length,
<br/>
scaleCount?:
number,
<br/>
scaleWidth?:
Length
<br/>
} | -
| 定义组件的样式。
<br/>
strokeWidth:
设置进度条宽度。
<br/>
scaleCount:
设置环形进度条总刻度数。
<br/>
scaleWidth:
设置环形进度条刻度粗细。
<br/>
刻度粗细大于进度条宽度时,刻度粗细为系统默认粗细。 |
## 示例
## 示例
...
...
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-qrcode.md
浏览文件 @
e7a9f17f
...
@@ -31,7 +31,7 @@ QRCode(value: string)
...
@@ -31,7 +31,7 @@ QRCode(value: string)
| 名称 | 参数类型 | 默认值 | 描述 |
| 名称 | 参数类型 | 默认值 | 描述 |
| ----- | ----- | ----- | -------- |
| ----- | ----- | ----- | -------- |
| color |
[
ResourceColor
](
../../ui/ts-types.md
)
| Black | 设置二维码颜色。 |
| color |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| Black | 设置二维码颜色。 |
## 事件
## 事件
...
...
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-search.md
浏览文件 @
e7a9f17f
...
@@ -29,12 +29,12 @@ Search(options?: { value?: string; placeholder?: string; icon?: string; controll
...
@@ -29,12 +29,12 @@ Search(options?: { value?: string; placeholder?: string; icon?: string; controll
## 属性
## 属性
| 名称
| 参数类型 | 默认值 | 描述
|
| 名称
| 参数类型 | 默认值 | 描述
|
| ---------------- | -------------------------------------
| ---- |
--------------------- |
| ---------------- | -------------------------------------
------ | ------ | ---------------------
--------------------- |
| searchButton | string
| 无
| 搜索框末尾搜索按钮文本值,默认无搜索按钮。 |
| searchButton | string
| 无
| 搜索框末尾搜索按钮文本值,默认无搜索按钮。 |
| placeholderColor |
[
ResourceColor
](
../../ui/ts-types.md
)
| - | 设置placeholder颜色。
|
| placeholderColor |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| - | 设置placeholder颜色。
|
| placeholderFont |
[
Font
](
../../ui/ts-types.md
)
| - | 设置placeholder文本样式。
|
| placeholderFont |
[
Font
](
ts-types.md#font
)
| - | 设置placeholder文本样式。
|
| textFont |
[
Font
](
../../ui/ts-types.md
)
| - | 设置搜索框内文本样式。
|
| textFont |
[
Font
](
ts-types.md#font
)
| - | 设置搜索框内文本样式。
|
## 事件
## 事件
...
...
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-select.md
浏览文件 @
e7a9f17f
...
@@ -21,23 +21,23 @@ Select(options: Array\<SelectOption\>)
...
@@ -21,23 +21,23 @@ Select(options: Array\<SelectOption\>)
**SelectOption对象说明:**
**SelectOption对象说明:**
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| ----- | ----------------------------------- | ---- | ---- | ------- |
| ----- | ----------------------------------- | ---- | ---- | ------- |
| value |
[
ResourceStr
](
../../ui/ts-types.md
)
| 是 | - | 下拉选项内容。 |
| value |
[
ResourceStr
](
ts-types.md#resourcestr8
)
| 是 | - | 下拉选项内容。 |
| icon |
[
ResourceStr
](
../../ui/ts-types.md
)
| 否 | - | 下拉选项图片。 |
| icon |
[
ResourceStr
](
ts-types.md#resourcestr8
)
| 否 | - | 下拉选项图片。 |
## 属性
## 属性
| 名称
| 参数类型 | 默认值 | 描述
|
| 名称
| 参数类型 | 默认值 | 描述
|
| ----------------------- | -------------------------------------
| ---- |
------------------------ |
| ----------------------- | -------------------------------------
------ | ------ | -----------------------
------------------------ |
| selected | number
| -
| 设置下拉菜单初始选择项的索引,第一项的索引为0。 |
| selected | number
| -
| 设置下拉菜单初始选择项的索引,第一项的索引为0。 |
| value | string
| - | 设置下拉按钮本身的文本显示。
|
| value | string
| - | 设置下拉按钮本身的文本显示。
|
| font |
[
Font
](
../../ui/ts-types.md
)
| - | 设置下拉按钮本身的文本样式:
|
| font |
[
Font
](
ts-types.md#font
)
| - | 设置下拉按钮本身的文本样式:
|
| fontColor |
[
ResourceColor
](
../../ui/ts-types.md
)
| - | 设置下拉按钮本身的文本颜色。
|
| fontColor |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| - | 设置下拉按钮本身的文本颜色。
|
| selectedOptionBgColor |
[
ResourceColor
](
../../ui/ts-types.md
)
| - | 设置下拉菜单选中项的背景色。
|
| selectedOptionBgColor |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| - | 设置下拉菜单选中项的背景色。
|
| selectedOptionFont |
[
Font
](
../../ui/ts-types.md
)
| - | 设置下拉菜单选中项的文本样式:
|
| selectedOptionFont |
[
Font
](
ts-types.md#font
)
| - | 设置下拉菜单选中项的文本样式:
|
| selectedOptionFontColor |
[
ResourceColor
](
../../ui/ts-types.md
)
| - | 设置下拉菜单选中项的文本颜色。
|
| selectedOptionFontColor |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| - | 设置下拉菜单选中项的文本颜色。
|
| optionBgColor |
[
ResourceColor
](
../../ui/ts-types.md
)
| - | 设置下拉菜单项的背景色。
|
| optionBgColor |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| - | 设置下拉菜单项的背景色。
|
| optionFont |
[
Font
](
../../ui/ts-types.md
)
| - | 设置下拉菜单项的文本样式:
|
| optionFont |
[
Font
](
../../ui/ts-types.md
)
| - | 设置下拉菜单项的文本样式:
|
| optionFontColor |
[
ResourceColor
](
../../ui/ts-types.md
)
| - | 设置下拉菜单项的文本颜色。
|
| optionFontColor |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| - | 设置下拉菜单项的文本颜色。
|
## 事件
## 事件
...
...
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-slider.md
浏览文件 @
e7a9f17f
...
@@ -46,12 +46,12 @@ Slider(options:{value?: number, min?: number, max?: number, step?: number, style
...
@@ -46,12 +46,12 @@ Slider(options:{value?: number, min?: number, max?: number, step?: number, style
| 名称 | 参数类型 | 默认值 | 描述 |
| 名称 | 参数类型 | 默认值 | 描述 |
| ------------- | ------- | ----- | ----------------- |
| ------------- | ------- | ----- | ----------------- |
| blockColor |
[
ResourceColor
](
../../ui/ts-types.md
)
| - | 设置滑块的颜色。 |
| blockColor |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| - | 设置滑块的颜色。 |
| trackColor |
[
ResourceColor
](
../../ui/ts-types.md
)
| - | 设置滑轨的背景颜色。 |
| trackColor |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| - | 设置滑轨的背景颜色。 |
| selectedColor |
[
ResourceColor
](
../../ui/ts-types.md
)
| - | 设置滑轨的已滑动颜色。 |
| selectedColor |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| - | 设置滑轨的已滑动颜色。 |
| showSteps | boolean | false | 设置当前是否显示步长刻度值。 |
| showSteps | boolean | false | 设置当前是否显示步长刻度值。 |
| showTips | boolean | false | 设置滑动时是否显示气泡提示百分比。 |
| showTips | boolean | false | 设置滑动时是否显示气泡提示百分比。 |
| trackThickness |
[
Length
](
../../ui/ts-types.md
)
| - | 设置滑轨的粗细。 |
| trackThickness |
[
Length
](
ts-types.md#length
)
| - | 设置滑轨的粗细。 |
## 事件
## 事件
...
...
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-span.md
浏览文件 @
e7a9f17f
...
@@ -25,7 +25,7 @@ Span(content: ResourceStr)
...
@@ -25,7 +25,7 @@ Span(content: ResourceStr)
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| ------- | ------ | ---- | ---- | ----- |
| ------- | ------ | ---- | ---- | ----- |
| content |
[
ResourceStr
](
../../ui/ts-types.md
)
| 是 | - | 文本内容。 |
| content |
[
ResourceStr
](
ts-types.md#resourcestr8
)
| 是 | - | 文本内容。 |
## 属性
## 属性
...
@@ -33,8 +33,8 @@ Span(content: ResourceStr)
...
@@ -33,8 +33,8 @@ Span(content: ResourceStr)
| 名称 | 参数类型 | 默认值 | 描述 |
| 名称 | 参数类型 | 默认值 | 描述 |
| ---------- | ---------------------------------------- | ---------------------------------------- | -------------- |
| ---------- | ---------------------------------------- | ---------------------------------------- | -------------- |
| decoration | {
<br/>
type:
[TextDecorationType](ts-appendix-enums.md#textdecorationtype枚举说明),
<br/>
color?:
[
ResourceColor
](
../../ui/ts-types.md
)
<br/>
} | {
<br/>
type:
TextDecorationType.None
<br/>
color:Color.Black
<br/>
} | 设置文本装饰线样式及其颜色。 |
| decoration | {
<br/>
type:
[TextDecorationType](ts-appendix-enums.md#textdecorationtype枚举说明),
<br/>
color?:
[
ResourceColor
](
ts-types.md#resourcecolor8
)
<br/>
} | {
<br/>
type:
TextDecorationType.None
<br/>
color:Color.Black
<br/>
} | 设置文本装饰线样式及其颜色。 |
| letterSpacing |
[
Length
](
../../ui/ts-types.md
)
| - | 设置文本字符间距。 |
| letterSpacing |
[
Length
](
ts-types.md#length
)
| - | 设置文本字符间距。 |
| textCase |
[
TextCase
](
ts-appendix-enums.md#textcase枚举说明
)
| Normal | 设置文本大小写。 |
| textCase |
[
TextCase
](
ts-appendix-enums.md#textcase枚举说明
)
| Normal | 设置文本大小写。 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-text.md
浏览文件 @
e7a9f17f
...
@@ -25,7 +25,7 @@ Text(content?: ResourceStr)
...
@@ -25,7 +25,7 @@ Text(content?: ResourceStr)
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| ------- | ------ | ---- | ---- | ---------------------------------------- |
| ------- | ------ | ---- | ---- | ---------------------------------------- |
| content |
[
ResourceStr
](
../../ui/ts-types.md
)
| 否 | '' | 文本内容。包含子组件Span时不生效,显示Span内容,并且此时text组件的样式不生效。 |
| content |
[
ResourceStr
](
ts-types.md#resourcestr8
)
| 否 | '' | 文本内容。包含子组件Span时不生效,显示Span内容,并且此时text组件的样式不生效。 |
## 属性
## 属性
...
@@ -34,12 +34,12 @@ Text(content?: ResourceStr)
...
@@ -34,12 +34,12 @@ Text(content?: ResourceStr)
| textAlign |
[
TextAlign
](
ts-appendix-enums.md#textalign
)
| TextAlign.Start | 设置多行文本的文本对齐方式。 |
| textAlign |
[
TextAlign
](
ts-appendix-enums.md#textalign
)
| TextAlign.Start | 设置多行文本的文本对齐方式。 |
| textOverflow | {overflow:
[
TextOverflow
](
ts-appendix-enums.md#textoverflow
)
} | {overflow:
TextOverflow.Clip} | 设置文本超长时的显示方式。
<br/>
**说明:**
<br/>
文本截断是按字截断。例如,英文以单词为最小单位进行截断,若需要以字母为单位进行截断,可在字母间添加零宽空格:
\u
200B。 |
| textOverflow | {overflow:
[
TextOverflow
](
ts-appendix-enums.md#textoverflow
)
} | {overflow:
TextOverflow.Clip} | 设置文本超长时的显示方式。
<br/>
**说明:**
<br/>
文本截断是按字截断。例如,英文以单词为最小单位进行截断,若需要以字母为单位进行截断,可在字母间添加零宽空格:
\u
200B。 |
| maxLines | number | Infinity | 设置文本的最大行数。 |
| maxLines | number | Infinity | 设置文本的最大行数。 |
| lineHeight | string
\|
number
\|
[
Resource
](
../../ui/ts-types.md
)
| - | 设置文本的文本行高,设置值不大于0时,不限制文本行高,自适应字体大小,Length为number类型时单位为fp。 |
| lineHeight | string
\|
number
\|
[
Resource
](
ts-types.md#resource
)
| - | 设置文本的文本行高,设置值不大于0时,不限制文本行高,自适应字体大小,Length为number类型时单位为fp。 |
| decoration | {
<br/>
type:
[TextDecorationType](ts-appendix-enums.md#textdecorationtype),
<br/>
color?:
[
ResourceColor
](
../../ui/ts-types.md
)
<br/>
} | {
<br/>
type:
TextDecorationType.None,
<br/>
color:Color.Black
<br/>
} | 设置文本装饰线样式及其颜色。 |
| decoration | {
<br/>
type:
[TextDecorationType](ts-appendix-enums.md#textdecorationtype),
<br/>
color?:
[
ResourceColor
](
ts-types.md#resourcecolor8
)
<br/>
} | {
<br/>
type:
TextDecorationType.None,
<br/>
color:Color.Black
<br/>
} | 设置文本装饰线样式及其颜色。 |
| baselineOffset |
[
Length
](
../../ui/ts-types.md
)
| - | 设置文本基线的偏移量。 |
| baselineOffset |
[
Length
](
ts-types.md#length
)
| - | 设置文本基线的偏移量。 |
| letterSpacing |
[
Length
](
../../ui/ts-types.md
)
| - | 设置文本字符间距。 |
| letterSpacing |
[
Length
](
ts-types.md#length
)
| - | 设置文本字符间距。 |
| minFontSize | number
\|
string
\|
[
Resource
](
../../ui/ts-types.md
)
| - | 设置文本最小显示字号。 |
| minFontSize | number
\|
string
\|
[
Resource
](
ts-types.md#resource
)
| - | 设置文本最小显示字号。 |
| maxFontSize | number
\|
string
\|
[
Resource
](
../../ui/ts-types.md
)
| - | 设置文本最大显示字号。 |
| maxFontSize | number
\|
string
\|
[
Resource
](
ts-types.md#resource
)
| - | 设置文本最大显示字号。 |
| textCase |
[
TextCase
](
ts-appendix-enums.md#textcase
)
| TextCase.Normal | 设置文本大小写。 |
| textCase |
[
TextCase
](
ts-appendix-enums.md#textcase
)
| TextCase.Normal | 设置文本大小写。 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textarea.md
浏览文件 @
e7a9f17f
...
@@ -25,21 +25,21 @@ TextArea(value?:{placeholder?: ResourceStr, text?: ResourceStr, controller?: Tex
...
@@ -25,21 +25,21 @@ TextArea(value?:{placeholder?: ResourceStr, text?: ResourceStr, controller?: Tex
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| ----------------------- | ---------------------------------------- | ---- | ---- | -------------- |
| ----------------------- | ---------------------------------------- | ---- | ---- | -------------- |
| placeholder |
[
ResourceStr
](
../../ui/ts-types.md
)
| 否 | - | 无输入时的提示文本。 |
| placeholder |
[
ResourceStr
](
ts-types.md#resourcestr8
)
| 否 | - | 无输入时的提示文本。 |
| text |
[
ResourceStr
](
../../ui/ts-types.md
)
| 否 | - | 设置输入框当前的文本内容。 |
| text |
[
ResourceStr
](
ts-types.md#resourcestr8
)
| 否 | - | 设置输入框当前的文本内容。 |
| controller
<sup>
8+
</sup>
|
[
TextAreaController
](
#textareacontroller8
)
| 否 | - | 设置TextArea控制器。 |
| controller
<sup>
8+
</sup>
|
[
TextAreaController
](
#textareacontroller8
)
| 否 | - | 设置TextArea控制器。 |
## 属性
## 属性
除支持通用属性外,还支持以下属性:
除支持通用属性外,还支持以下属性:
| 名称
| 参数类型 | 默认值 | 描述
|
| 名称
| 参数类型 | 默认值 | 描述
|
| ------------------------ | ----------------------------------------
| ----- |
---------------------------------------- |
| ------------------------ | ----------------------------------------
-------------------- | ------ | --------------------
---------------------------------------- |
| placeholderColor |
[
ResourceColor
](
../../ui/ts-types.md
)
| - | 设置placeholder文本颜色。
|
| placeholderColor |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| - | 设置placeholder文本颜色。
|
| placeholderFont | {
<br/>
size?:
number,
<br/>
weight?:number
\|
[FontWeight](ts-universal-attributes-text-style.md),
<br/>
family?:
string,
<br/>
style?:
[
FontStyle
](
ts-universal-attributes-text-style.md
)
<br/>
} | - | 设置placeholder文本样式:
<br/>
-
size:
设置文本尺寸,Length为number类型时,使用fp单位。
<br/>
-
weight:
设置文本的字体粗细,number类型取值[100,
900],取值间隔为100,默认为400,取值越大,字体越粗。
<br/>
-
family:
设置文本的字体列表。使用多个字体,使用','进行分割,优先级按顺序生效,例如:'Arial,
sans-serif'。
<br/>
-
style:
设置文本的字体样式。 |
| placeholderFont | {
<br/>
size?:
number,
<br/>
weight?:number
\|
[FontWeight](ts-universal-attributes-text-style.md),
<br/>
family?:
string,
<br/>
style?:
[
FontStyle
](
ts-universal-attributes-text-style.md
)
<br/>
} | -
| 设置placeholder文本样式:
<br/>
-
size:
设置文本尺寸,Length为number类型时,使用fp单位。
<br/>
-
weight:
设置文本的字体粗细,number类型取值[100,
900],取值间隔为100,默认为400,取值越大,字体越粗。
<br/>
-
family:
设置文本的字体列表。使用多个字体,使用','进行分割,优先级按顺序生效,例如:'Arial,
sans-serif'。
<br/>
-
style:
设置文本的字体样式。 |
| textAlign |
[
TextAlign
](
ts-appendix-enums.md#textalign
)
| Start | 设置文本水平对齐方式。
|
| textAlign |
[
TextAlign
](
ts-appendix-enums.md#textalign
)
| Start | 设置文本水平对齐方式。
|
| caretColor |
[
ResourceColor
](
../../ui/ts-types.md
)
| - | 设置输入框光标颜色。
|
| caretColor |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| - | 设置输入框光标颜色。
|
| inputFilter
<sup>
8+
</sup>
| {
<br/>
value:
[ResourceStr](
../../ui/ts-types.md)
<sup>
8+
</sup>
,
<br/>
error?:
(value:
string)
=
>
void
<br/>
} | -
| 通过正则表达式设置输入过滤器。满足表达式的输入允许显示,不满足的输入被忽略。仅支持单个字符匹配,不支持字符串匹配。例如:^(?=.
\*\d
)(?=.
\*
[a-z])(?=.
\*
[A-Z]).{8,10}$,不支持过滤8到10位的强密码。
<br/>
-
value:设置正则表达式。
<br/>
-
error:正则匹配失败时,返回被忽略的内容。 |
| inputFilter
<sup>
8+
</sup>
| {
<br/>
value:
[ResourceStr](
ts-types.md#resourcestr8)
<sup>
8+
</sup>
,
<br/>
error?:
(value:
string)
=
>
void
<br/>
} | -
| 通过正则表达式设置输入过滤器。满足表达式的输入允许显示,不满足的输入被忽略。仅支持单个字符匹配,不支持字符串匹配。例如:^(?=.
\*\d
)(?=.
\*
[a-z])(?=.
\*
[A-Z]).{8,10}$,不支持过滤8到10位的强密码。
<br/>
-
value:设置正则表达式。
<br/>
-
error:正则匹配失败时,返回被忽略的内容。 |
## 事件
## 事件
...
...
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textclock.md
浏览文件 @
e7a9f17f
...
@@ -20,10 +20,10 @@ TextClock(options?: {timeZoneOffset?: number, controller?: TextClockController})
...
@@ -20,10 +20,10 @@ TextClock(options?: {timeZoneOffset?: number, controller?: TextClockController})
**参数:**
**参数:**
| 参数名
| 参数类型 | 必填 | 默认值 | 参数描述
|
| 参数名
| 参数类型 | 必填 | 默认值 | 参数描述
|
| -------------- | ----------------------------------------
| ---- | ----- |
---------------------------------------- |
| -------------- | ----------------------------------------
--- | ---- | ---------- | --------------------
---------------------------------------- |
| timeZoneOffset | number
| 否
| 时区偏移量 | 设置时区偏移量。取值范围为[-14, 12],表示东十二区到西十二区,其中负值表示东时区,正值表示西时区,比如东八区为-8;对横跨国际日界线的国家或地区,用-13(UTC+13)和-14(UTC+14)来保证整个国家或者区域处在相同的时间。 |
| timeZoneOffset | number
| 否
| 时区偏移量 | 设置时区偏移量。取值范围为[-14, 12],表示东十二区到西十二区,其中负值表示东时区,正值表示西时区,比如东八区为-8;对横跨国际日界线的国家或地区,用-13(UTC+13)和-14(UTC+14)来保证整个国家或者区域处在相同的时间。 |
| controller |
[
TextClockController
](
#
TextClockController
)
| 否 | null
| 绑定一个控制器,用来控制文本时钟的状态。 |
| controller |
[
TextClockController
](
#
textclockcontroller
)
| 否 | null
| 绑定一个控制器,用来控制文本时钟的状态。 |
## 属性
## 属性
...
...
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-textinput.md
浏览文件 @
e7a9f17f
...
@@ -25,8 +25,8 @@ TextInput(value?:{placeholder?: ResourceStr, text?: ResourceStr, controller?: Te
...
@@ -25,8 +25,8 @@ TextInput(value?:{placeholder?: ResourceStr, text?: ResourceStr, controller?: Te
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| ----------------------- | ---------------------------------------- | ---- | ---- | --------------- |
| ----------------------- | ---------------------------------------- | ---- | ---- | --------------- |
| placeholder |
[
ResourceStr
](
../../ui/ts-types.md
)
| 否 | - | 无输入时的提示文本。 |
| placeholder |
[
ResourceStr
](
ts-types.md#resourcestr8
)
| 否 | - | 无输入时的提示文本。 |
| text |
[
ResourceStr
](
../../ui/ts-types.md
)
| 否 | - | 设置输入框当前的文本内容。 |
| text |
[
ResourceStr
](
ts-types.md#resourcestr8
)
| 否 | - | 设置输入框当前的文本内容。 |
| controller
<sup>
8+
</sup>
|
[
TextInputController
](
#textinputcontroller8
)
| 否 | - | 设置TextInput控制器。 |
| controller
<sup>
8+
</sup>
|
[
TextInputController
](
#textinputcontroller8
)
| 否 | - | 设置TextInput控制器。 |
## 属性
## 属性
...
@@ -36,12 +36,12 @@ TextInput(value?:{placeholder?: ResourceStr, text?: ResourceStr, controller?: Te
...
@@ -36,12 +36,12 @@ TextInput(value?:{placeholder?: ResourceStr, text?: ResourceStr, controller?: Te
| 名称 | 参数类型 | 默认值 | 描述 |
| 名称 | 参数类型 | 默认值 | 描述 |
| ----------------------------- | ------------------------------------------------------------ | ----------------- | ------------------------------------------------------------ |
| ----------------------------- | ------------------------------------------------------------ | ----------------- | ------------------------------------------------------------ |
| type | InputType | InputType.Normal | 设置输入框类型。 |
| type | InputType | InputType.Normal | 设置输入框类型。 |
| placeholderColor |
[
ResourceColor
](
../../ui/ts-types.md
)
| - | 设置placeholder颜色。 |
| placeholderColor |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| - | 设置placeholder颜色。 |
| placeholderFont | {
<br/>
size?:
Length,
<br/>
weight?:
number\|[FontWeight](ts-universal-attributes-text-style.md),
<br/>
family?:
string,
<br/>
style?:
[
FontStyle
](
ts-universal-attributes-text-style.md
)
<br/>
} | - | 设置placeholder文本样式:
<br/>
-
size:
设置文本尺寸,Length为number类型时,使用fp单位。
<br/>
-
weight:
设置文本的字体粗细,number类型取值[100,
900],取值间隔为100,默认为400,取值越大,字体越粗。
<br/>
-
family:
设置文本的字体列表。使用多个字体,使用','进行分割,优先级按顺序生效。例如:'Arial,
sans-serif'。
<br/>
-
style:
设置文本的字体样式。 |
| placeholderFont | {
<br/>
size?:
Length,
<br/>
weight?:
number\|[FontWeight](ts-universal-attributes-text-style.md),
<br/>
family?:
string,
<br/>
style?:
[
FontStyle
](
ts-universal-attributes-text-style.md
)
<br/>
} | - | 设置placeholder文本样式:
<br/>
-
size:
设置文本尺寸,Length为number类型时,使用fp单位。
<br/>
-
weight:
设置文本的字体粗细,number类型取值[100,
900],取值间隔为100,默认为400,取值越大,字体越粗。
<br/>
-
family:
设置文本的字体列表。使用多个字体,使用','进行分割,优先级按顺序生效。例如:'Arial,
sans-serif'。
<br/>
-
style:
设置文本的字体样式。 |
| enterKeyType | EnterKeyType | EnterKeyType.Done | 设置输入法回车键类型。 |
| enterKeyType | EnterKeyType | EnterKeyType.Done | 设置输入法回车键类型。 |
| caretColor |
[
ResourceColor
](
../../ui/ts-types.md
)
| - | 设置输入框光标颜色。 |
| caretColor |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| - | 设置输入框光标颜色。 |
| maxLength | number | - | 设置文本的最大输入字符数。 |
| maxLength | number | - | 设置文本的最大输入字符数。 |
| inputFilter
<sup>
8+
</sup>
| {
<br/>
value:
[ResourceStr](
../../ui/ts-types.md
)
<sup>
8+
</sup>
,
<br/>
error?:
(value:
string)
=
>
void
<br/>
} | - | 正则表达式,满足表达式的输入允许显示,不满足正则表达式的输入被忽略。仅支持单个字符匹配,不支持字符串匹配。例如:^(?=.
\*\d
)(?=.
\*
[a-z])(?=.
\*
[A-Z]).{8,10}$,8到10位的强密码不支持过滤。
<br/>
-
value:设置正则表达式。
<br/>
-
error:正则匹配失败时,返回被忽略的内容。 |
| inputFilter
<sup>
8+
</sup>
| {
<br/>
value:
[ResourceStr](
ts-types.md#resourcestr8
)
<sup>
8+
</sup>
,
<br/>
error?:
(value:
string)
=
>
void
<br/>
} | - | 正则表达式,满足表达式的输入允许显示,不满足正则表达式的输入被忽略。仅支持单个字符匹配,不支持字符串匹配。例如:^(?=.
\*\d
)(?=.
\*
[a-z])(?=.
\*
[A-Z]).{8,10}$,8到10位的强密码不支持过滤。
<br/>
-
value:设置正则表达式。
<br/>
-
error:正则匹配失败时,返回被忽略的内容。 |
| showPasswordIcon
<sup>
9+
</sup>
| boolean | true | 密码输入模式时,密码框末尾的图标是否显示。 |
| showPasswordIcon
<sup>
9+
</sup>
| boolean | true | 密码输入模式时,密码框末尾的图标是否显示。 |
## EnterKeyType枚举说明
## EnterKeyType枚举说明
...
...
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-toggle.md
浏览文件 @
e7a9f17f
...
@@ -38,8 +38,8 @@ Toggle(options: { type: ToggleType, isOn?: boolean })
...
@@ -38,8 +38,8 @@ Toggle(options: { type: ToggleType, isOn?: boolean })
| 名称 | 参数 | 默认值 | 参数描述 |
| 名称 | 参数 | 默认值 | 参数描述 |
| ---------------- | ----- | ---- | ---------------------------------------- |
| ---------------- | ----- | ---- | ---------------------------------------- |
| selectedColor |
[
ResourceColor
](
../../ui/ts-types.md
)
| - | 设置组件打开状态的背景颜色。 |
| selectedColor |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| - | 设置组件打开状态的背景颜色。 |
| switchPointColor |
[
ResourceColor
](
../../ui/ts-types.md
)
| - | 设置Switch类型的圆形滑块颜色。
<br/>
>
**说明:**
<br/>
>
仅对type为ToggleType.Switch生效。 |
| switchPointColor |
[
ResourceColor
](
ts-types.md#resourcecolor8
)
| - | 设置Switch类型的圆形滑块颜色。
<br/>
>
**说明:**
<br/>
>
仅对type为ToggleType.Switch生效。 |
## 事件
## 事件
...
...
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-web.md
浏览文件 @
e7a9f17f
...
@@ -20,12 +20,13 @@ Web(options: { src: ResourceStr, controller: WebController })
...
@@ -20,12 +20,13 @@ Web(options: { src: ResourceStr, controller: WebController })
表1 options参数说明
表1 options参数说明
**参数:**
**参数:**
| 参数名
| 参数类型 | 必填 | 默认值 | 参数描述
|
| 参数名
| 参数类型 | 必填 | 默认值 | 参数描述
|
| ---------- | -------------------------------
| ---- | ---- |
------- |
| ---------- | -------------------------------
-------- | ---- | ------ | -------
------- |
| src |
[
ResourceStr
](
../../ui/ts-types.md
)
| 是 | -
| 网页资源地址。 |
| src |
[
ResourceStr
](
ts-types.md#resourcestr8
)
| 是 | -
| 网页资源地址。 |
| controller |
[
WebController
](
#webcontroller
)
| 否 | - | 控制器。
|
| controller |
[
WebController
](
#webcontroller
)
| 否 | - | 控制器。
|
**示例:**
**示例:**
```
ts
```
ts
// xxx.ets
// xxx.ets
@
Entry
@
Entry
...
@@ -217,6 +218,7 @@ mixedMode(mixedMode: MixedMode)
...
@@ -217,6 +218,7 @@ mixedMode(mixedMode: MixedMode)
| mixedMode |
[
MixedMode
](
#mixedmode枚举说明
)
| 是 | None | 要设置的混合内容。 |
| mixedMode |
[
MixedMode
](
#mixedmode枚举说明
)
| 是 | None | 要设置的混合内容。 |
**示例:**
**示例:**
```
ts
```
ts
// xxx.ets
// xxx.ets
@
Entry
@
Entry
...
@@ -1667,7 +1669,7 @@ runJavaScript(options: { script: string, callback?: (result: string) => void })
...
@@ -1667,7 +1669,7 @@ runJavaScript(options: { script: string, callback?: (result: string) => void })
**参数:**
**参数:**
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| -------- | ------------------------ | ---- | ---- | ---------------------------------------- |
| -------- | ------------------------ | ---- | ---- | ---------------------------------------- |
| script | string | 是 | - | JavaScript脚本。 |
| script | string | 是 | - | JavaScript脚本。 |
| callback | (result: string) => void | 否 | - | 回调执行JavaScript脚本结果。JavaScript脚本若执行失败或无返回值时,返回null。 |
| callback | (result: string) => void | 否 | - | 回调执行JavaScript脚本结果。JavaScript脚本若执行失败或无返回值时,返回null。 |
**示例:**
**示例:**
...
@@ -1823,3 +1825,15 @@ clearHistory(): void
...
@@ -1823,3 +1825,15 @@ clearHistory(): void
| None | 加载资源使用cache,如果cache中无该资源则从网络中获取。 |
| None | 加载资源使用cache,如果cache中无该资源则从网络中获取。 |
| Online | 加载资源不使用cache,全部从网络中获取。 |
| Online | 加载资源不使用cache,全部从网络中获取。 |
| Only | 只从cache中加载资源。 |
| Only | 只从cache中加载资源。 |
## HitTestType枚举说明
| 名称 | 描述 |
| ------------- | ----------------------------------------- |
| EditText | 可编辑的区域。 |
| Email | 电子邮件地址。 |
| HttpAnchor | 超链接,其src为http。 |
| HttpAnchorImg | 带有超链接的图片,其中超链接的src为http。 |
| Img | HTML::img标签。 |
| Map | 地理地址。 |
| Unknown | 未知内容。 |
\ No newline at end of file
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-xcomponent.md
浏览文件 @
e7a9f17f
...
@@ -20,12 +20,12 @@
...
@@ -20,12 +20,12 @@
**参数:**
**参数:**
| 名称
| 参数类型 | 必填 | 描述
|
| 名称
| 参数类型 | 必填 | 描述
|
| ----------- | ----------------------------------------
| ---- |
---------------------------------------- |
| ----------- | ----------------------------------------
----- | ---- | --------------------
---------------------------------------- |
| id | string
| 是 | 组件的唯一标识,支持最大的字符串长度128。
|
| id | string
| 是 | 组件的唯一标识,支持最大的字符串长度128。
|
| type | string
| 是
| 用于指定XComponent组件类型,可选值为:
<br/>
-surface:组件内容单独送显,直接合成到屏幕。
<br/>
-component:组件内容与其他组件合成后统一送显。 |
| type | string
| 是
| 用于指定XComponent组件类型,可选值为:
<br/>
-surface:组件内容单独送显,直接合成到屏幕。
<br/>
-component:组件内容与其他组件合成后统一送显。 |
| libraryname | string
| 否 | 应用Native层编译输出动态库名称。
|
| libraryname | string
| 否 | 应用Native层编译输出动态库名称。
|
| controller |
[
XComponentController
](
#
XComponentController
)
| 否 | 给组件绑定一个控制器,通过控制器调用组件方法。
|
| controller |
[
XComponentController
](
#
xcomponentcontroller
)
| 否 | 给组件绑定一个控制器,通过控制器调用组件方法。
|
## 事件
## 事件
...
...
zh-cn/application-dev/reference/arkui-ts/ts-methods-action-sheet.md
浏览文件 @
e7a9f17f
...
@@ -21,10 +21,10 @@ show(options: { paramObject1})
...
@@ -21,10 +21,10 @@ show(options: { paramObject1})
-
paramObject1参数
-
paramObject1参数
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| -------- | -------- | -------- | -------- | -------- |
| -------- | -------- | -------- | -------- | -------- |
| title | string
\|
[
Resource
](
../../ui/ts-types.md#resource类型
)
| 否 | 无标题 | 弹窗标题。 |
| title | string
\|
[
Resource
](
ts-types.md#resource
)
| 否 | 无标题 | 弹窗标题。 |
| message | string
\|
[
Resource
](
../../ui/ts-types.md#resource类型
)
| 是 | - | 弹窗内容。 |
| message | string
\|
[
Resource
](
ts-types.md#resource
)
| 是 | - | 弹窗内容。 |
| autoCancel | boolean | 否 | true | 点击遮障层时,是否关闭弹窗。 |
| autoCancel | boolean | 否 | true | 点击遮障层时,是否关闭弹窗。 |
| confirm | {
<br/>
value:
string
\|
[Resource](
../../ui/ts-types.md#resource类型
),
<br/>
action:
()
=
>
void
<br/>
} | 否 | - | 确认按钮的文本内容和点击回调。
<br/>
value:按钮文本内容。
<br/>
action:
按钮选中时的回调。 |
| confirm | {
<br/>
value:
string
\|
[Resource](
ts-types.md#resource
),
<br/>
action:
()
=
>
void
<br/>
} | 否 | - | 确认按钮的文本内容和点击回调。
<br/>
value:按钮文本内容。
<br/>
action:
按钮选中时的回调。 |
| cancel | ()
=
>
void | 否 | - | 点击遮障层关闭dialog时的回调。 |
| cancel | ()
=
>
void | 否 | - | 点击遮障层关闭dialog时的回调。 |
| alignment |
[
DialogAlignment
](
ts-methods-custom-dialog-box.md
)
| 否 | DialogAlignment.Default | 弹窗在竖直方向上的对齐方式。 |
| alignment |
[
DialogAlignment
](
ts-methods-custom-dialog-box.md
)
| 否 | DialogAlignment.Default | 弹窗在竖直方向上的对齐方式。 |
| offset | {
<br/>
dx:
Length,
<br/>
dy:
Length
<br/>
} | 否 | {
<br/>
dx:
0,
<br/>
dy:
0
<br/>
} | 弹窗相对alignment所在位置的偏移量。 |
| offset | {
<br/>
dx:
Length,
<br/>
dy:
Length
<br/>
} | 否 | {
<br/>
dx:
0,
<br/>
dy:
0
<br/>
} | 弹窗相对alignment所在位置的偏移量。 |
...
@@ -32,11 +32,11 @@ show(options: { paramObject1})
...
@@ -32,11 +32,11 @@ show(options: { paramObject1})
-
SheetInfo接口说明
-
SheetInfo接口说明
| 参数名 | 参数类型
| 必填 | 默认值 | 参数描述 |
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| ------ | ----------------------------------------------------
--------
| ---- | ------ | ----------------- |
| ------ | ---------------------------------------------------- | ---- | ------ | ----------------- |
| title | string
\|
[
Resource
](
../../ui/ts-types.md#resource类型
)
| 是 | - | sheet文本。 |
| title | string
\|
[
Resource
](
ts-types.md#resource
)
| 是 | - | sheet文本。 |
| icon | string
\|
[
Resource
](
../../ui/ts-types.md#resource类型
)
| 否 | 无 | sheet图标。 |
| icon | string
\|
[
Resource
](
ts-types.md#resource
)
| 否 | 无 | sheet图标。 |
| action | ()=
>
void
| 是 | - | sheet选中的回调。 |
| action | ()=
>
void | 是 | - | sheet选中的回调。 |
## 示例
## 示例
...
...
zh-cn/application-dev/reference/arkui-ts/ts-methods-alert-dialog-box.md
浏览文件 @
e7a9f17f
...
@@ -16,26 +16,26 @@
...
@@ -16,26 +16,26 @@
-
paramObject1参数
-
paramObject1参数
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| -------- | -------- | -------- | -------- | -------- |
| -------- | -------- | -------- | -------- | -------- |
| title | string
\|
[
Resource
](
../../ui/ts-types.md#resource类型
)
| 否 | - | 弹窗标题。 |
| title | string
\|
[
Resource
](
ts-types.md#resource
)
| 否 | - | 弹窗标题。 |
| message | string
\|
[
Resource
](
../../ui/ts-types.md#resource类型
)
| 是 | - | 弹窗内容。 |
| message | string
\|
[
Resource
](
ts-types.md#resource
)
| 是 | - | 弹窗内容。 |
| autoCancel | boolean | 否 | true | 点击遮障层时,是否关闭弹窗。 |
| autoCancel | boolean | 否 | true | 点击遮障层时,是否关闭弹窗。 |
| confirm | {
<br/>
value:
string
\|
[Resource](
../../ui/ts-types.md#resource类型),
<br/>
fontColor?:
Color
\|
number
\|
string
\|
[Resource](../../ui/ts-types.md#resource类型),
<br/>
backgroundColor?:
Color
\|
number
\|
string
\|
[Resource](../../ui/ts-types.md#resource类型
),
<br/>
action:
()
=
>
void
<br/>
} | 否 | - | 确认按钮的文本内容、文本色、按钮背景色和点击回调。 |
| confirm | {
<br/>
value:
string
\|
[Resource](
ts-types.md#resource),
<br/>
fontColor?:
Color
\|
number
\|
string
\|
[Resource](ts-types.md#resource),
<br/>
backgroundColor?:
Color
\|
number
\|
string
\|
[Resource](ts-types.md#resource
),
<br/>
action:
()
=
>
void
<br/>
} | 否 | - | 确认按钮的文本内容、文本色、按钮背景色和点击回调。 |
| cancel | ()
=
>
void | 否 | - | 点击遮障层关闭dialog时的回调。 |
| cancel | ()
=
>
void | 否 | - | 点击遮障层关闭dialog时的回调。 |
| alignment |
[
DialogAlignment
](
ts-methods-custom-dialog-box.md
)
| 否 | DialogAlignment.Default | 弹窗在竖直方向上的对齐方式。 |
| alignment |
[
DialogAlignment
](
ts-methods-custom-dialog-box.md
)
| 否 | DialogAlignment.Default | 弹窗在竖直方向上的对齐方式。 |
| offset | {
<br/>
dx:
Length
\|
[Resource](
../../ui/ts-types.md#resource类型),
<br/>
dy:
Length
\|
[
Resource
](
../../ui/ts-types.md#resource类型
)
<br/>
} | 否 | - | 弹窗相对alignment所在位置的偏移量。 |
| offset | {
<br/>
dx:
Length
\|
[Resource](
ts-types.md#resource),
<br/>
dy:
Length
\|
[
Resource
](
ts-types.md#resource
)
<br/>
} | 否 | - | 弹窗相对alignment所在位置的偏移量。 |
| gridCount | number | 否 | - | 弹窗容器宽度所占用栅格数。 |
| gridCount | number | 否 | - | 弹窗容器宽度所占用栅格数。 |
-
paramObject2参数
-
paramObject2参数
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| 参数名 | 参数类型 | 必填 | 默认值 | 参数描述 |
| -------- | -------- | -------- | -------- | -------- |
| -------- | -------- | -------- | -------- | -------- |
| title | string
\|
&
[
Resource
](
../../ui/ts-types.md#resource类型
)
| 否 | - | 弹窗标题。 |
| title | string
\|
&
[
Resource
](
ts-types.md#resource
)
| 否 | - | 弹窗标题。 |
| message | string
\|
&
[
Resource
](
../../ui/ts-types.md#resource类型
)
| 是 | - | 弹窗内容。 |
| message | string
\|
&
[
Resource
](
ts-types.md#resource
)
| 是 | - | 弹窗内容。 |
| autoCancel | boolean | 否 | true | 点击遮障层时,是否关闭弹窗。 |
| autoCancel | boolean | 否 | true | 点击遮障层时,是否关闭弹窗。 |
| primaryButton | {
<br/>
value:
string
\|
[Resource](
../../ui/ts-types.md#resource类型),
<br/>
fontColor?:
Color
\|
number
\|
string
\|
[Resource](../../ui/ts-types.md#resource类型),
<br/>
backgroundColor?:
Color
\|
number
\|
string
\|
[Resource](../../ui/ts-types.md#resource类型
),
<br/>
action:
()
=
>
void;
<br/>
} | 否 | - | 按钮的文本内容、文本色、按钮背景色和点击回调。 |
| primaryButton | {
<br/>
value:
string
\|
[Resource](
ts-types.md#resource),
<br/>
fontColor?:
Color
\|
number
\|
string
\|
[Resource](ts-types.md#resource),
<br/>
backgroundColor?:
Color
\|
number
\|
string
\|
[Resource](ts-types.md#resource
),
<br/>
action:
()
=
>
void;
<br/>
} | 否 | - | 按钮的文本内容、文本色、按钮背景色和点击回调。 |
| secondaryButton | {
<br/>
value:
string
\|
[Resource](
../../ui/ts-types.md#resource类型),
<br/>
fontColor?:
Color
\|
number
\|
string
\|
[Resource](../../ui/ts-types.md#resource类型),
<br/>
backgroundColor?:
Color
\|
number
\|
string
\|
[Resource](../../ui/ts-types.md#resource类型
),
<br/>
action:
()
=
>
void;
<br/>
} | 否 | - | 按钮的文本内容、文本色、按钮背景色和点击回调。 |
| secondaryButton | {
<br/>
value:
string
\|
[Resource](
ts-types.md#resource),
<br/>
fontColor?:
Color
\|
number
\|
string
\|
[Resource](ts-types.md#resource),
<br/>
backgroundColor?:
Color
\|
number
\|
string
\|
[Resource](ts-types.md#resource
),
<br/>
action:
()
=
>
void;
<br/>
} | 否 | - | 按钮的文本内容、文本色、按钮背景色和点击回调。 |
| cancel | ()
=
>
void | 否 | - | 点击遮障层关闭dialog时的回调。 |
| cancel | ()
=
>
void | 否 | - | 点击遮障层关闭dialog时的回调。 |
| alignment |
[
DialogAlignment
](
ts-methods-custom-dialog-box.md
)
| 否 | DialogAlignment.Default | 弹窗在竖直方向上的对齐方式。 |
| alignment |
[
DialogAlignment
](
ts-methods-custom-dialog-box.md
)
| 否 | DialogAlignment.Default | 弹窗在竖直方向上的对齐方式。 |
| offset | {
<br/>
dx:
Length
\|
[Resource](
../../ui/ts-types.md#resource类型),
<br/>
dy:
Length
\|
[
Resource
](
../../ui/ts-types.md#resource类型
)
<br/>
} | 否 | - | 弹窗相对alignment所在位置的偏移量。 |
| offset | {
<br/>
dx:
Length
\|
[Resource](
ts-types.md#resource),
<br/>
dy:
Length
\|
[
Resource
](
ts-types.md#resource
)
<br/>
} | 否 | - | 弹窗相对alignment所在位置的偏移量。 |
| gridCount | number | 否 | - | 弹窗容器宽度所占用栅格数。 |
| gridCount | number | 否 | - | 弹窗容器宽度所占用栅格数。 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-methods-custom-dialog-box.md
浏览文件 @
e7a9f17f
...
@@ -19,7 +19,7 @@ CustomDialogController(value:{builder: CustomDialog, cancel?: () => void, aut
...
@@ -19,7 +19,7 @@ CustomDialogController(value:{builder: CustomDialog, cancel?: () => void, aut
| cancel | ()
=
>
void | 否 | - | 点击遮障层退出时的回调。 |
| cancel | ()
=
>
void | 否 | - | 点击遮障层退出时的回调。 |
| autoCancel | boolean | 否 | true | 是否允许点击遮障层退出。 |
| autoCancel | boolean | 否 | true | 是否允许点击遮障层退出。 |
| alignment | DialogAlignment | 否 | DialogAlignment.Default | 弹窗在竖直方向上的对齐方式。 |
| alignment | DialogAlignment | 否 | DialogAlignment.Default | 弹窗在竖直方向上的对齐方式。 |
| offset | {
<br/>
dx:
Length
\|
[Resource](
../../ui/ts-types.md#resource类型),
<br/>
dy:
Length
\|
[
Resource
](
../../ui/ts-types.md#resource类型
)
<br/>
} | 否 | - | 弹窗相对alignment所在位置的偏移量。 |
| offset | {
<br/>
dx:
Length
\|
[Resource](
ts-types.md#resource),
<br/>
dy:
Length
\|
[
Resource
](
ts-types.md#resource
)
<br/>
} | 否 | - | 弹窗相对alignment所在位置的偏移量。 |
| customStyle | boolean | 否 | false | 弹窗容器样式是否自定义。 |
| customStyle | boolean | 否 | false | 弹窗容器样式是否自定义。 |
| gridCount
<sup>
8+
</sup>
| number | 否 | - | 弹窗宽度占栅格宽度的个数。 |
| gridCount
<sup>
8+
</sup>
| number | 否 | - | 弹窗宽度占栅格宽度的个数。 |
...
...
zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-popup.md
浏览文件 @
e7a9f17f
...
@@ -29,15 +29,15 @@
...
@@ -29,15 +29,15 @@
## CustomPopupOptions<sup>8+</sup>类型接口说明
## CustomPopupOptions<sup>8+</sup>类型接口说明
| 名称
| 类型 | 必填 | 默认值 | 描述
|
| 名称
| 类型 | 必填 | 默认值 | 描述
|
| ------------- | ----------------------------------------
| ---- | ---------------- |
------------------------------ |
| ------------- | ----------------------------------------
------ | ---- | ---------------- | ------------------------------
------------------------------ |
| builder | ()
=
>
any
| 是 | - | 提示气泡内容的构造器。
|
| builder | ()
=
>
any
| 是 | - | 提示气泡内容的构造器。
|
| placement |
[
Placement
](
ts-appendix-enums.md#placement8
)
| 否
| Placement.Bottom | 气泡组件优先显示的位置,当前位置显示不下时,会自动调整位置。 |
| placement |
[
Placement
](
ts-appendix-enums.md#placement8
)
| 否
| Placement.Bottom | 气泡组件优先显示的位置,当前位置显示不下时,会自动调整位置。 |
| maskColor |
[
Color
](
../../ui/ts-types.md#颜色类型
)
| 否 | - | 提示气泡遮障层的颜色。
|
| maskColor |
[
Color
](
ts-appendix-enums.md#color
)
| 否 | - | 提示气泡遮障层的颜色。
|
| popupColor |
[
Color
](
../../ui/ts-types.md#颜色类型
)
| 否 | - | 提示气泡的颜色。
|
| popupColor |
[
Color
](
ts-appendix-enums.md#color
)
| 否 | - | 提示气泡的颜色。
|
| enableArrow | boolean
| 否 | true | 是否显示箭头,只有上、下方向的气泡会显示箭头。
|
| enableArrow | boolean
| 否 | true | 是否显示箭头,只有上、下方向的气泡会显示箭头。
|
| autoCancel | boolean
| 否 | true | 页面有操作时,是否自动关闭气泡
|
| autoCancel | boolean
| 否 | true | 页面有操作时,是否自动关闭气泡
|
| onStateChange | (isVisible:
boolean)
=
>
void | 否
| - | 弹窗状态变化事件回调,参数为弹窗当前的显示状态。
|
| onStateChange | (isVisible:
boolean)
=
>
void | 否
| - | 弹窗状态变化事件回调,参数为弹窗当前的显示状态。
|
## 示例
## 示例
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录