diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-divider.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-divider.md index 3dcd973266b811dc3eb66ea2d659a273f813a853..0803a7f41d5fd0228cb5041071535d69a983feba 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-divider.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-divider.md @@ -25,7 +25,7 @@ Divider() | vertical | boolean | false | 使用水平分割线还是垂直分割线,false: 水平分割线, true:垂直分割线。 | | color | [ResourceColor](ts-types.md#resourcecolor8) | - | 设置分割线颜色。 | | strokeWidth | number \| string | 1 | 设置分割线宽度。 | -| lineCap | [LineCapStyle](ts-appendix-enums.md#linecapstyle枚举说明) | LineCapStyle.Butt | 设置分割线条的端点样式。 | +| lineCap | [LineCapStyle](ts-appendix-enums.md#linecapstyle) | LineCapStyle.Butt | 设置分割线条的端点样式。 | ## 事件 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-image.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-image.md index 091fe67c47dc8617c31a9406cb7c628c30107ded..0623fba069c2d5b65fc0cf8ddffe7da16ad2b162 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-image.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-image.md @@ -31,7 +31,7 @@ Image(src: string | PixelMap | Resource) | --------------------- | ---------------------------------------- | -------- | ---------------------------------------- | | alt | string \| [Resource](ts-types.md#resource) | - | 加载时显示的占位图。仅支持本地图片。 | | objectFit | [ImageFit](ts-appendix-enums.md#imagefit) | Cover | 设置图片的缩放类型。 | -| objectRepeat | [ImageRepeat](ts-appendix-enums.md#imagerepeat枚举说明) | NoRepeat | 设置图片的重复样式。
>  **说明:**
> - svg类型图源不支持该属性。 | +| objectRepeat | [ImageRepeat](ts-appendix-enums.md#imagerepeat) | NoRepeat | 设置图片的重复样式。
>  **说明:**
> - svg类型图源不支持该属性。 | | interpolation | ImageInterpolation | None | 设置图片的插值效果,即减轻低清晰度图片在放大显示的时候出现的锯齿问题,仅针对图片放大插值。
>  **说明:**
> - svg类型图源不支持该属性。
> - PixelMap资源不支持该属性。 | | renderMode | ImageRenderMode | Original | 设置图片渲染的模式。
>  **说明:**
> - svg类型图源不支持该属性。 | | sourceSize | {
width: number,
height: number
} | - | 设置图片解码尺寸,将原始图片解码成指定尺寸的图片,number类型单位为px。
>  **说明:**
> - PixelMap资源不支持该属性。 | diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-span.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-span.md index 32263cb14021ec5000ac04c828a264b88227b34e..7b25eb03b5e76a193ca614c23110c6118e69d7f8 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-span.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-span.md @@ -28,9 +28,9 @@ Span(value: string | Resource) | 名称 | 参数类型 | 描述 | | ---------- | ---------------------------------------- | -------------- | -| decoration | {
type: [TextDecorationType](ts-appendix-enums.md#textdecorationtype枚举说明),
color?: [ResourceColor](ts-types.md#resourcecolor8)
} | 设置文本装饰线样式及其颜色。
默认值:{
type: TextDecorationType.None
color:Color.Black
} | +| decoration | {
type: [TextDecorationType](ts-appendix-enums.md#textdecorationtype),
color?: [ResourceColor](ts-types.md#resourcecolor8)
} | 设置文本装饰线样式及其颜色。
默认值:{
type: TextDecorationType.None
color:Color.Black
} | | letterSpacing | number \| string | 设置文本字符间距。 | -| textCase | [TextCase](ts-appendix-enums.md#textcase枚举说明) | 设置文本大小写。
默认值:Normal | +| textCase | [TextCase](ts-appendix-enums.md#textcase) | 设置文本大小写。
默认值:Normal | ## 事件 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-types.md b/zh-cn/application-dev/reference/arkui-ts/ts-types.md index eac01576a3165f2570a1fd9bf590bfddce12d6b4..66b9da2f2fa5b0ef8653a391b5952cb035476865 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-types.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-types.md @@ -26,7 +26,7 @@ | -------- | ------------------------------------------------------------ | | string | 需要显式指定像素单位,如'10px',也可设置百分比字符串,如'100%'。 | | number | 默认单位vp。 | -| Resource | 使用引入资源的方式,引入系统资源或者应用资源中的尺寸。 | +| [Resource](#resource) | 使用引入资源的方式,引入系统资源或者应用资源中的尺寸。 | ## ResourceStr8+ @@ -35,7 +35,7 @@ | 类型 | 说明 | | -------- | --------------------------------------------------- | | string | 字符串类型。 | -| Resource | 使用引入资源的方式,引入系统资源或者应用资源中的字符串。 | +| [Resource](#resource) | 使用引入资源的方式,引入系统资源或者应用资源中的字符串。 | ## Padding @@ -43,10 +43,10 @@ | 名称 | 类型 | 必填 | 说明 | | ------- | ------ | ---- |------------------------ | - | top | Length | 否 | 组件内元素距组件顶部的尺寸。 | - | right | Length | 否 | 组件内元素距组件右边界的尺寸。 | - | bottom | Length | 否 | 组件内元素距组件底部的尺寸。 | - | left | Length | 否 | 组件内元素距组件左边界的尺寸。 | + | top | [Length](#length) | 否 | 组件内元素距组件顶部的尺寸。 | + | right | [Length](#length) | 否 | 组件内元素距组件右边界的尺寸。 | + | bottom | [Length](#length) | 否 | 组件内元素距组件底部的尺寸。 | + | left | [Length](#length) | 否 | 组件内元素距组件左边界的尺寸。 | ## Margin @@ -54,10 +54,10 @@ | 名称 | 类型 | 必填 | 说明 | | ------- | ------ | ---- |------------------------ | - | top | Length | 否 | 组件外元素距组件顶部的尺寸。 | - | right | Length | 否 | 组件外元素距组件右边界的尺寸。 | - | bottom | Length | 否 | 组件外元素距组件底部的尺寸。 | - | left | Length | 否 | 组件外元素距组件左边界的尺寸。 | + | top | [Length](#length) | 否 | 组件外元素距组件顶部的尺寸。 | + | right | [Length](#length) | 否 | 组件外元素距组件右边界的尺寸。 | + | bottom | [Length](#length) | 否 | 组件外元素距组件底部的尺寸。 | + | left | [Length](#length) | 否 | 组件外元素距组件左边界的尺寸。 | ## Offset @@ -65,8 +65,8 @@ | 名称 | 类型 | 必填 | 说明 | | -------- | ------ | ---- |--------------------- | - | dx | Length | 是 | 水平方向偏移量。 | - | dy | Length | 是 | 竖直方向偏移量。 | + | dx | [Length](#length) | 是 | 水平方向偏移量。 | + | dy | [Length](#length) | 是 | 竖直方向偏移量。 | ## ResourceColor8+ @@ -77,7 +77,7 @@ | [Color](ts-appendix-enums.md#color) | 颜色枚举值。 | | number | HEX格式颜色。 | | string | rgb或者rgba格式颜色。 | -| Resource | 使用引入资源的方式,引入系统资源或者应用资源中的颜色。 | +| [Resource](#resource) | 使用引入资源的方式,引入系统资源或者应用资源中的颜色。 | ## Font @@ -108,8 +108,8 @@ | 名称 | 类型 | 必填 | 说明 | | ----- | ------- | ---- | ------------------------------------------- | -| x | Length | 否 | x轴坐标,作为返回值时,类型为number,单位vp。 | -| y | Length | 否 | y轴坐标,作为返回值时,类型为number,单位vp。 | +| x | [Length](#length) | 否 | x轴坐标,作为返回值时,类型为number,单位vp。 | +| y | [Length](#length) | 否 | y轴坐标,作为返回值时,类型为number,单位vp。 | ## ConstraintSizeOptions @@ -117,10 +117,10 @@ | 名称 | 类型 | 必填 | 说明 | | --------- | -------- | ---- | -------------- | -| minWidth | Length | 否 | 元素最小宽度。 | -| maxWidth | Length | 否 | 元素最大宽度。 | -| minHeight | Length | 否 | 元素最小高度。 | -| maxHeight | Length | 否 | 元素最大高度。 | +| minWidth | [Length](#length) | 否 | 元素最小宽度。 | +| maxWidth | [Length](#length) | 否 | 元素最大宽度。 | +| minHeight | [Length](#length) | 否 | 元素最小高度。 | +| maxHeight | [Length](#length) | 否 | 元素最大高度。 | ## SizeOptions @@ -128,8 +128,8 @@ | 名称 | 类型 | 必填 | 说明 | | ------- | -------- | ---- | -------------- | -| width | Length | 否 | 元素宽度。 | -| height | Length | 否 | 元素高度。 | +| width | [Length](#length) | 否 | 元素宽度。 | +| height | [Length](#length) | 否 | 元素高度。 | ## BorderOptions @@ -138,9 +138,9 @@ | 名称 | 类型 | 必填 | 说明 | | ------ | ------------- | ---- | ----------- | -| width | Length | 否 | 边框宽度。 | -| color | ResourceColor | 否 | 边框颜色。 | -| radius | Length | 否 | 边框圆角半径。 | +| width | [Length](#length) | 否 | 边框宽度。 | +| color | [ResourceColor](#resourcecolor8) | 否 | 边框颜色。 | +| radius | [Length](#length) | 否 | 边框圆角半径。 | | style | [BorderStyle](ts-appendix-enums.md#borderstyle) | 否 | 边框样式。 | ## CustomBuilder8+ diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-overlay.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-overlay.md index 25b19ab348afb31b7ad6f9c83697a40a5b6db23b..bebc47e0ebffe61d08b6edf221ef4f604b595842 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-overlay.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-overlay.md @@ -15,7 +15,7 @@ | 名称 | 参数类型 | 默认值 | 描述 | | ------- | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------ | -| overlay | value: string,
options?: {
align?: [Alignment](ts-appendix-enums.md#alignment-enums), 
offset?: {x?: number, y?: number}
} | {
align: Alignment.Center,
offset: {0, 0}
} | 在当前组件上,增加遮罩文本,布局与当前组件相同。 | +| overlay | value: string,
options?: {
align?: [Alignment](ts-appendix-enums.md#alignment), 
offset?: {x?: number, y?: number}
} | {
align: Alignment.Center,
offset: {0, 0}
} | 在当前组件上,增加遮罩文本,布局与当前组件相同。 | ## 示例 diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-universal-events-key.md b/zh-cn/application-dev/reference/arkui-ts/ts-universal-events-key.md index e25e4e76fdf9a41d9c947f05b6a35be53b5fe35a..40ac6e8504339c3674300800aacff8fa67c8ba9b 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-universal-events-key.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-universal-events-key.md @@ -24,7 +24,7 @@ | 名称 | 类型 | 描述 | | ------------------------------------- | --------------------------- | -------------------------- | | type | [KeyType](ts-appendix-enums.md#keytype) | 按键的类型。 | - | [keyCode](../apis/js-apis-keycode.md) | number | 按键的键码。 | + | keyCode | number | 按键的键码。 | | keyText | string | 按键的键值。 | | keySource | [KeySource](ts-appendix-enums.md#keysource) | 触发当前按键的输入设备类型。 | | deviceId | number | 触发当前按键的输入设备ID。 | diff --git a/zh-cn/application-dev/ui/ts-framework-directory.md b/zh-cn/application-dev/ui/ts-framework-directory.md index 70c440aaa079787674094c18b2218ac22eb2d186..8c434f805a6a7f384ea20f2314014d2a0e53ad32 100644 --- a/zh-cn/application-dev/ui/ts-framework-directory.md +++ b/zh-cn/application-dev/ui/ts-framework-directory.md @@ -26,6 +26,6 @@ FA应用的eTS模块(entry/src/main)的典型开发目录结构如下: > ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** > -> - 资源目录resources文件夹位于src/main下,此目录下资源文件的详细规范以及子目录结构规范参看[资源文件的分类](../quick-start/basic-resource-file-categories.md)。 +> - 资源目录resources文件夹位于src/main下,此目录下资源文件的详细规范以及子目录结构规范参看[资源文件的分类](ui-ts-basic-resource-file-categories.md)。 > > - 页面支持导入TypeScript和JavaScript文件。