Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
ce241c98
D
Docs
项目概览
OpenHarmony
/
Docs
大约 1 年 前同步成功
通知
159
Star
292
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ce241c98
编写于
3月 26, 2022
作者:
H
HelloCrease
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update mulu
Signed-off-by:
N
HelloCrease
<
lian15@huawei.com
>
上级
79502a9d
变更
21
显示空白变更内容
内联
并排
Showing
21 changed file
with
26 addition
and
295 deletion
+26
-295
zh-cn/application-dev/reference/apis/js-apis-fileio.md
zh-cn/application-dev/reference/apis/js-apis-fileio.md
+10
-10
zh-cn/application-dev/reference/arkui-ts/Readme-CN.md
zh-cn/application-dev/reference/arkui-ts/Readme-CN.md
+11
-12
zh-cn/application-dev/reference/arkui-ts/ts-animation.md
zh-cn/application-dev/reference/arkui-ts/ts-animation.md
+0
-10
zh-cn/application-dev/reference/arkui-ts/ts-appendix.md
zh-cn/application-dev/reference/arkui-ts/ts-appendix.md
+0
-3
zh-cn/application-dev/reference/arkui-ts/ts-basic-components.md
...application-dev/reference/arkui-ts/ts-basic-components.md
+0
-32
zh-cn/application-dev/reference/arkui-ts/ts-basic-gestures.md
...n/application-dev/reference/arkui-ts/ts-basic-gestures.md
+0
-13
zh-cn/application-dev/reference/arkui-ts/ts-components-canvas.md
...pplication-dev/reference/arkui-ts/ts-components-canvas.md
+0
-17
zh-cn/application-dev/reference/arkui-ts/ts-components-container.md
...ication-dev/reference/arkui-ts/ts-components-container.md
+0
-28
zh-cn/application-dev/reference/arkui-ts/ts-components.md
zh-cn/application-dev/reference/arkui-ts/ts-components.md
+0
-12
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components.md
...plication-dev/reference/arkui-ts/ts-drawing-components.md
+0
-19
zh-cn/application-dev/reference/arkui-ts/ts-gesture-processing.md
...plication-dev/reference/arkui-ts/ts-gesture-processing.md
+0
-7
zh-cn/application-dev/reference/arkui-ts/ts-global-ui-methods.md
...pplication-dev/reference/arkui-ts/ts-global-ui-methods.md
+0
-10
zh-cn/application-dev/reference/arkui-ts/ts-media-components.md
...application-dev/reference/arkui-ts/ts-media-components.md
+0
-3
zh-cn/application-dev/reference/arkui-ts/ts-methods-image-cache.md
...lication-dev/reference/arkui-ts/ts-methods-image-cache.md
+0
-99
zh-cn/application-dev/reference/arkui-ts/ts-methods-popup-window.md
...ication-dev/reference/arkui-ts/ts-methods-popup-window.md
+0
-7
zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes-index.md
...n-dev/reference/arkui-ts/ts-universal-attributes-index.md
+0
-0
zh-cn/application-dev/reference/arkui-ts/ts-universal-components.md
...ication-dev/reference/arkui-ts/ts-universal-components.md
+0
-7
zh-cn/application-dev/reference/arkui-ts/ts-universal-events-index.md
...ation-dev/reference/arkui-ts/ts-universal-events-index.md
+0
-0
zh-cn/application-dev/ui/Readme-CN.md
zh-cn/application-dev/ui/Readme-CN.md
+1
-0
zh-cn/application-dev/ui/ui-js-components-canvas.md
zh-cn/application-dev/ui/ui-js-components-canvas.md
+2
-2
zh-cn/application-dev/website.md
zh-cn/application-dev/website.md
+2
-4
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-fileio.md
浏览文件 @
ce241c98
...
@@ -2915,7 +2915,7 @@ read(): Promise<Dirent>
...
@@ -2915,7 +2915,7 @@ read(): Promise<Dirent>
-
示例:
-
示例:
```
js
```
js
let
dir
=
fileio
.
opendirSync
(
d
path
);
let
dir
=
fileio
.
opendirSync
(
path
);
dir
.
read
().
then
(
function
(
dirent
){
dir
.
read
().
then
(
function
(
dirent
){
console
.
info
(
"
read successfully:
"
+
dirent
.
name
);
console
.
info
(
"
read successfully:
"
+
dirent
.
name
);
}).
catch
(
function
(
err
){
}).
catch
(
function
(
err
){
...
@@ -2939,7 +2939,7 @@ read(callback: AsyncCallback<Dirent>): void
...
@@ -2939,7 +2939,7 @@ read(callback: AsyncCallback<Dirent>): void
-
示例:
-
示例:
```
js
```
js
let
dir
=
fileio
.
opendirSync
(
d
path
);
let
dir
=
fileio
.
opendirSync
(
path
);
dir
.
read
(
function
(
err
,
dirent
)
{
dir
.
read
(
function
(
err
,
dirent
)
{
if
(
!
err
)
{
if
(
!
err
)
{
// do something
// do something
...
@@ -2964,7 +2964,7 @@ readSync(): Dirent
...
@@ -2964,7 +2964,7 @@ readSync(): Dirent
-
示例:
-
示例:
```
js
```
js
let
dir
=
fileio
.
opendirSync
(
d
path
);
let
dir
=
fileio
.
opendirSync
(
path
);
let
dirent
=
dir
.
readSync
();
let
dirent
=
dir
.
readSync
();
```
```
...
@@ -2979,7 +2979,7 @@ closeSync(): void
...
@@ -2979,7 +2979,7 @@ closeSync(): void
-
示例:
-
示例:
```
js
```
js
let
dir
=
fileio
.
opendirSync
(
d
path
);
let
dir
=
fileio
.
opendirSync
(
path
);
dir
.
closeSync
();
dir
.
closeSync
();
```
```
...
@@ -3012,7 +3012,7 @@ isBlockDevice(): boolean
...
@@ -3012,7 +3012,7 @@ isBlockDevice(): boolean
-
示例:
-
示例:
```
js
```
js
let
dir
=
fileio
.
opendirSync
(
d
path
);
let
dir
=
fileio
.
opendirSync
(
path
);
let
isBLockDevice
=
dir
.
readSync
().
isBlockDevice
();
let
isBLockDevice
=
dir
.
readSync
().
isBlockDevice
();
```
```
...
@@ -3032,7 +3032,7 @@ isCharacterDevice(): boolean
...
@@ -3032,7 +3032,7 @@ isCharacterDevice(): boolean
-
示例:
-
示例:
```
js
```
js
let
dir
=
fileio
.
opendirSync
(
d
path
);
let
dir
=
fileio
.
opendirSync
(
path
);
let
isCharacterDevice
=
dir
.
readSync
().
isCharacterDevice
();
let
isCharacterDevice
=
dir
.
readSync
().
isCharacterDevice
();
```
```
...
@@ -3052,7 +3052,7 @@ isDirectory(): boolean
...
@@ -3052,7 +3052,7 @@ isDirectory(): boolean
-
示例:
-
示例:
```
js
```
js
let
dir
=
fileio
.
opendirSync
(
d
path
);
let
dir
=
fileio
.
opendirSync
(
path
);
let
isDirectory
=
dir
.
readSync
().
isDirectory
();
let
isDirectory
=
dir
.
readSync
().
isDirectory
();
```
```
...
@@ -3072,7 +3072,7 @@ isFIFO(): boolean
...
@@ -3072,7 +3072,7 @@ isFIFO(): boolean
-
示例:
-
示例:
```
js
```
js
let
dir
=
fileio
.
opendirSync
(
d
path
);
let
dir
=
fileio
.
opendirSync
(
path
);
let
isFIFO
=
dir
.
readSync
().
isFIFO
();
let
isFIFO
=
dir
.
readSync
().
isFIFO
();
```
```
...
@@ -3092,7 +3092,7 @@ isFile(): boolean
...
@@ -3092,7 +3092,7 @@ isFile(): boolean
-
示例:
-
示例:
```
js
```
js
let
dir
=
fileio
.
opendirSync
(
d
path
);
let
dir
=
fileio
.
opendirSync
(
path
);
let
isFile
=
dir
.
readSync
().
isFile
();
let
isFile
=
dir
.
readSync
().
isFile
();
```
```
...
@@ -3132,6 +3132,6 @@ isSymbolicLink(): boolean
...
@@ -3132,6 +3132,6 @@ isSymbolicLink(): boolean
-
示例:
-
示例:
```
js
```
js
let
dir
=
fileio
.
opendirSync
(
d
path
);
let
dir
=
fileio
.
opendirSync
(
path
);
let
isSymbolicLink
=
dir
.
readSync
().
isSymbolicLink
();
let
isSymbolicLink
=
dir
.
readSync
().
isSymbolicLink
();
```
```
zh-cn/application-dev/reference/arkui-ts/Readme-CN.md
浏览文件 @
ce241c98
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
-
组件
-
组件
-
通用
-
通用
-
通用事件
-
[
通用事件
](
ts-universal-events-index.md
)
-
[
点击事件
](
ts-universal-events-click.md
)
-
[
点击事件
](
ts-universal-events-click.md
)
-
[
触摸事件
](
ts-universal-events-touch.md
)
-
[
触摸事件
](
ts-universal-events-touch.md
)
-
[
挂载卸载事件
](
ts-universal-events-show-hide.md
)
-
[
挂载卸载事件
](
ts-universal-events-show-hide.md
)
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
-
[
焦点事件
](
ts-universal-focus-event.md
)
-
[
焦点事件
](
ts-universal-focus-event.md
)
-
[
鼠标事件
](
ts-universal-mouse-key.md
)
-
[
鼠标事件
](
ts-universal-mouse-key.md
)
-
[
组件区域变化事件
](
ts-universal-component-area-change-event.md
)
-
[
组件区域变化事件
](
ts-universal-component-area-change-event.md
)
-
通用属性
-
[
通用属性
](
ts-universal-attributes-index.md
)
-
[
尺寸设置
](
ts-universal-attributes-size.md
)
-
[
尺寸设置
](
ts-universal-attributes-size.md
)
-
[
位置设置
](
ts-universal-attributes-location.md
)
-
[
位置设置
](
ts-universal-attributes-location.md
)
-
[
布局约束
](
ts-universal-attributes-layout-constraints.md
)
-
[
布局约束
](
ts-universal-attributes-layout-constraints.md
)
...
@@ -58,28 +58,29 @@
...
@@ -58,28 +58,29 @@
-
[
Gauge
](
ts-basic-components-gauge.md
)
-
[
Gauge
](
ts-basic-components-gauge.md
)
-
[
Image
](
ts-basic-components-image.md
)
-
[
Image
](
ts-basic-components-image.md
)
-
[
ImageAnimator
](
ts-basic-components-imageanimator.md
)
-
[
ImageAnimator
](
ts-basic-components-imageanimator.md
)
-
[
Marquee
](
ts-basic-components-marquee.md
)
-
[
LoadingProgress
](
ts-basic-components-loadingprogress.md
)
-
[
LoadingProgress
](
ts-basic-components-loadingprogress.md
)
-
[
Marquee
](
ts-basic-components-marquee.md
)
-
[
PatternLock
](
ts-basic-components-patternlock.md
)
-
[
PluginComponent
](
ts-basic-components-plugincomponent.md
)
-
[
Progress
](
ts-basic-components-progress.md
)
-
[
Progress
](
ts-basic-components-progress.md
)
-
[
QRCode
](
ts-basic-components-qrcode.md
)
-
[
QRCode
](
ts-basic-components-qrcode.md
)
-
[
Radio
](
ts-basic-components-radio.md
)
-
[
Radio
](
ts-basic-components-radio.md
)
-
[
Rating
](
ts-basic-components-rating.md
)
-
[
Rating
](
ts-basic-components-rating.md
)
-
[
RichText
](
ts-basic-components-richtext.md
)
-
[
Search
](
ts-basic-components-search.md
)
-
[
Search
](
ts-basic-components-search.md
)
-
[
Select
](
ts-basic-components-select.md
)
-
[
Select
](
ts-basic-components-select.md
)
-
[
Slider
](
ts-basic-components-slider.md
)
-
[
Slider
](
ts-basic-components-slider.md
)
-
[
Span
](
ts-basic-components-span.md
)
-
[
Span
](
ts-basic-components-span.md
)
-
[
Text
](
ts-basic-components-text.md
)
-
[
Text
](
ts-basic-components-text.md
)
-
[
TextArea
](
ts-basic-components-textarea.md
)
-
[
TextArea
](
ts-basic-components-textarea.md
)
-
[
TextClock
](
ts-basic-components-textclock.md
)
-
[
TextInput
](
ts-basic-components-textinput.md
)
-
[
TextInput
](
ts-basic-components-textinput.md
)
-
[
TextPicker
](
ts-basic-components-textpicker.md
)
-
[
TextPicker
](
ts-basic-components-textpicker.md
)
-
[
TextTimer
](
ts-basic-components-texttimer.md
)
-
[
TextTimer
](
ts-basic-components-texttimer.md
)
-
[
TimePicker
](
ts-basic-components-timepicker.md
)
-
[
TimePicker
](
ts-basic-components-timepicker.md
)
-
[
Toggle
](
ts-basic-components-toggle.md
)
-
[
Toggle
](
ts-basic-components-toggle.md
)
-
[
TextClock
](
ts-basic-components-textclock.md
)
-
[
Web
](
ts-basic-components-web.md
)
-
[
Web
](
ts-basic-components-web.md
)
-
[
RichText
](
ts-basic-components-richtext.md
)
-
[
Xcomponent
](
ts-basic-components-xcomponent.md
)
-
[
Xcomponent
](
ts-basic-components-xcomponent.md
)
-
[
PluginComponent
](
ts-basic-components-plugincomponent.md
)
-
容器组件
-
容器组件
-
[
AlphabetIndexer
](
ts-container-alphabet-indexer.md
)
-
[
AlphabetIndexer
](
ts-container-alphabet-indexer.md
)
-
[
Badge
](
ts-container-badge.md
)
-
[
Badge
](
ts-container-badge.md
)
...
@@ -95,18 +96,18 @@
...
@@ -95,18 +96,18 @@
-
[
Navigator
](
ts-container-navigator.md
)
-
[
Navigator
](
ts-container-navigator.md
)
-
[
Navigation
](
ts-basic-components-navigation.md
)
-
[
Navigation
](
ts-basic-components-navigation.md
)
-
[
Panel
](
ts-container-panel.md
)
-
[
Panel
](
ts-container-panel.md
)
-
[
Refresh
](
ts-container-refresh.md
)
-
[
Row
](
ts-container-row.md
)
-
[
Row
](
ts-container-row.md
)
-
[
RowSplit
](
ts-container-rowsplit.md
)
-
[
RowSplit
](
ts-container-rowsplit.md
)
-
[
Scroll
](
ts-container-scroll.md
)
-
[
Scroll
](
ts-container-scroll.md
)
-
[
ScrollBar
](
ts-basic-components-scrollbar.md
)
-
[
ScrollBar
](
ts-basic-components-scrollbar.md
)
-
[
SideBarContainer
](
ts-container-sidebarcontainer.md
)
-
[
SideBarContainer
](
ts-container-sidebarcontainer.md
)
-
[
Stack
](
ts-container-stack.md
)
-
[
Stack
](
ts-container-stack.md
)
-
[
Stepper
](
ts-basic-components-stepper.md
)
-
[
StepperItem
](
ts-basic-components-stepperitem.md
)
-
[
Swiper
](
ts-container-swiper.md
)
-
[
Swiper
](
ts-container-swiper.md
)
-
[
Tabs
](
ts-container-tabs.md
)
-
[
Tabs
](
ts-container-tabs.md
)
-
[
TabContent
](
ts-container-tabcontent.md
)
-
[
TabContent
](
ts-container-tabcontent.md
)
-
[
Refresh
](
ts-container-refresh.md
)
-
[
Stepper
](
ts-basic-components-stepper.md
)
-
[
StepperItem
](
ts-basic-components-stepperitem.md
)
-
媒体组件
-
媒体组件
-
[
Video
](
ts-media-components-video.md
)
-
[
Video
](
ts-media-components-video.md
)
-
绘制组件
-
绘制组件
...
@@ -138,7 +139,6 @@
...
@@ -138,7 +139,6 @@
-
[
矩阵变换
](
ts-matrix-transformation.md
)
-
[
矩阵变换
](
ts-matrix-transformation.md
)
-
[
插值计算
](
ts-interpolation-calculation.md
)
-
[
插值计算
](
ts-interpolation-calculation.md
)
-
全局UI方法
-
全局UI方法
-
[
图片缓存
](
ts-methods-image-cache.md
)
-
弹窗
-
弹窗
-
[
警告弹窗
](
ts-methods-alert-dialog-box.md
)
-
[
警告弹窗
](
ts-methods-alert-dialog-box.md
)
-
[
列表选择弹窗
](
ts-methods-action-sheet.md
)
-
[
列表选择弹窗
](
ts-methods-action-sheet.md
)
...
@@ -147,5 +147,4 @@
...
@@ -147,5 +147,4 @@
-
[
时间选择弹窗
](
ts-methods-timepicker-dialog.md
)
-
[
时间选择弹窗
](
ts-methods-timepicker-dialog.md
)
-
[
文本选择弹窗
](
ts-methods-textpicker-dialog.md
)
-
[
文本选择弹窗
](
ts-methods-textpicker-dialog.md
)
-
[
菜单
](
ts-methods-menu.md
)
-
[
菜单
](
ts-methods-menu.md
)
-
附录
-
[
文档中涉及到的内置枚举值
](
ts-appendix-enums.md
)
-
[
文档中涉及到的内置枚举值
](
ts-appendix-enums.md
)
zh-cn/application-dev/reference/arkui-ts/ts-animation.md
已删除
100644 → 0
浏览文件 @
79502a9d
# 动画
-
[
属性动画
](
ts-animatorproperty.md
)
-
[
显式动画
](
ts-explicit-animation.md
)
-
转场动画
-
[
页面间转场
](
ts-page-transition-animation.md
)
-
[
组件内转场
](
ts-transition-animation-component.md
)
-
[
共享元素转场
](
ts-transition-animation-shared-elements.md
)
-
[
路径动画
](
ts-motion-path-animation.md
)
-
[
矩阵变换
](
ts-matrix-transformation.md
)
-
[
插值计算
](
ts-interpolation-calculation.md
)
\ No newline at end of file
zh-cn/application-dev/reference/arkui-ts/ts-appendix.md
已删除
100644 → 0
浏览文件 @
79502a9d
# 附录
-
**[文档中涉及到的内置枚举值](ts-appendix-enums.md)**
\ No newline at end of file
zh-cn/application-dev/reference/arkui-ts/ts-basic-components.md
已删除
100644 → 0
浏览文件 @
79502a9d
# 基础组件
-
[
Blank
](
ts-basic-components-blank.md
)
-
[
Button
](
ts-basic-components-button.md
)
-
[
Checkbox
](
ts-basic-components-checkbox.md
)
-
[
CheckboxGroup
](
ts-basic-components-checkboxgroup.md
)
-
[
DataPanel
](
ts-basic-components-datapanel.md
)
-
[
DatePicker
](
ts-basic-components-datepicker.md
)
-
[
Divider
](
ts-basic-components-divider.md
)
-
[
Gauge
](
ts-basic-components-gauge.md
)
-
[
Image
](
ts-basic-components-image.md
)
-
[
ImageAnimator
](
ts-basic-components-imageanimator.md
)
-
[
Marquee
](
ts-basic-components-marquee.md
)
-
[
LoadingProgress
](
ts-basic-components-loadingprogress.md
)
-
[
Progress
](
ts-basic-components-progress.md
)
-
[
QRCode
](
ts-basic-components-qrcode.md
)
-
[
Radio
](
ts-basic-components-radio.md
)
-
[
Rating
](
ts-basic-components-rating.md
)
-
[
Select
](
ts-basic-components-select.md
)
-
[
Slider
](
ts-basic-components-slider.md
)
-
[
Span
](
ts-basic-components-span.md
)
-
[
Text
](
ts-basic-components-text.md
)
-
[
TextArea
](
ts-basic-components-textarea.md
)
-
[
TextInput
](
ts-basic-components-textinput.md
)
-
[
TextPicker
](
ts-basic-components-textpicker.md
)
-
[
TextTimer
](
ts-basic-components-texttimer.md
)
-
[
TimePicker
](
ts-basic-components-timepicker.md
)
-
[
Toggle
](
ts-basic-components-toggle.md
)
-
[
TextClock
](
ts-basic-components-textclock.md
)
-
[
Web
](
ts-basic-components-web.md
)
-
[
Xcomponent
](
ts-basic-components-xcomponent.md
)
-
[
PluginComponent
](
ts-basic-components-plugincomponent.md
)
\ No newline at end of file
zh-cn/application-dev/reference/arkui-ts/ts-basic-gestures.md
已删除
100644 → 0
浏览文件 @
79502a9d
# 基础手势
-
**[TapGesture](ts-basic-gestures-tapgesture.md)**
-
**[LongPressGesture](ts-basic-gestures-longpressgesture.md)**
-
**[PanGesture](ts-basic-gestures-pangesture.md)**
-
**[PinchGesture](ts-basic-gestures-pinchgesture.md)**
-
**[RotationGesture](ts-basic-gestures-rotationgesture.md)**
-
**[SwipeGesture](ts-basic-gestures-swipegesture.md)**
\ No newline at end of file
zh-cn/application-dev/reference/arkui-ts/ts-components-canvas.md
已删除
100644 → 0
浏览文件 @
79502a9d
# 画布组件
-
**[Canvas](ts-components-canvas-canvas.md)**
-
**[CanvasRenderingContext2D对象](ts-canvasrenderingcontext2d.md)**
-
**[OffscreenCanvasRenderingConxt2D对象](ts-offscreencanvasrenderingcontext2d.md)**
-
**[Lottie](ts-components-canvas-lottie.md)**
-
**[Path2D对象](ts-components-canvas-path2d.md)**
-
**[CanvasGradient对象](ts-components-canvas-canvasgradient.md)**
-
**[ImageBitmap对象](ts-components-canvas-imagebitmap.md)**
-
**[ImageData对象](ts-components-canvas-imagedata.md)**
\ No newline at end of file
zh-cn/application-dev/reference/arkui-ts/ts-components-container.md
已删除
100644 → 0
浏览文件 @
79502a9d
# 容器组件
-
[
AlphabetIndexer
](
ts-container-alphabet-indexer.md
)
-
[
Badge
](
ts-container-badge.md
)
-
[
Column
](
ts-container-column.md
)
-
[
ColumnSplit
](
ts-container-columnsplit.md
)
-
[
Counter
](
ts-container-counter.md
)
-
[
Flex
](
ts-container-flex.md
)
-
[
GridContainer
](
ts-container-gridcontainer.md
)
-
[
Grid
](
ts-container-grid.md
)
-
[
GridItem
](
ts-container-griditem.md
)
-
[
List
](
ts-container-list.md
)
-
[
ListItem
](
ts-container-listitem.md
)
-
[
Navigator
](
ts-container-navigator.md
)
-
[
Navigation
](
ts-basic-components-navigation.md
)
-
[
Panel
](
ts-container-panel.md
)
-
[
Row
](
ts-container-row.md
)
-
[
RowSplit
](
ts-container-rowsplit.md
)
-
[
Scroll
](
ts-container-scroll.md
)
-
[
ScrollBar
](
ts-basic-components-scrollbar.md
)
-
[
SideBarContainer
](
ts-container-sidebarcontainer.md
)
-
[
Stack
](
ts-container-stack.md
)
-
[
Swiper
](
ts-container-swiper.md
)
-
[
Tabs
](
ts-container-tabs.md
)
-
[
TabContent
](
ts-container-tabcontent.md
)
-
[
Refresh
](
ts-container-refresh.md
)
-
[
Stepper
](
ts-basic-components-stepper.md
)
-
[
StepperItem
](
ts-basic-components-stepperitem.md
)
\ No newline at end of file
zh-cn/application-dev/reference/arkui-ts/ts-components.md
已删除
100644 → 0
浏览文件 @
79502a9d
# 组件
-
[
通用
](
ts-universal-components.md
)
-
[
基础组件
](
ts-basic-components.md
)
-
[
容器组件
](
ts-components-container.md
)
-
[
绘制组件
](
ts-drawing-components.md
)
-
[
媒体组件
](
ts-media-components.md
)
-
[
画布组件
](
ts-components-canvas.md
)
\ No newline at end of file
zh-cn/application-dev/reference/arkui-ts/ts-drawing-components.md
已删除
100644 → 0
浏览文件 @
79502a9d
# 绘制组件
-
**[Circle](ts-drawing-components-circle.md)**
-
**[Ellipse](ts-drawing-components-ellipse.md)**
-
**[Line](ts-drawing-components-line.md)**
-
**[Polyline](ts-drawing-components-polyline.md)**
-
**[Polygon](ts-drawing-components-polygon.md)**
-
**[Path](ts-drawing-components-path.md)**
-
**[Rect](ts-drawing-components-rect.md)**
-
**[Shape](ts-drawing-components-shape.md)**
\ No newline at end of file
zh-cn/application-dev/reference/arkui-ts/ts-gesture-processing.md
已删除
100644 → 0
浏览文件 @
79502a9d
# 手势处理
-
**[组合手势](ts-combined-gestures.md)**
-
**[绑定手势方法](ts-gesture-settings.md)**
-
**[基础手势](ts-basic-gestures.md)**
\ No newline at end of file
zh-cn/application-dev/reference/arkui-ts/ts-global-ui-methods.md
已删除
100644 → 0
浏览文件 @
79502a9d
# 全局UI方法
-
[
图片缓存
](
ts-methods-image-cache.md
)
-
弹窗
-
[
警告弹窗
](
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-menu.md
)
\ No newline at end of file
zh-cn/application-dev/reference/arkui-ts/ts-media-components.md
已删除
100644 → 0
浏览文件 @
79502a9d
# 媒体组件
-
**[Video](ts-media-components-video.md)**
\ No newline at end of file
zh-cn/application-dev/reference/arkui-ts/ts-methods-image-cache.md
已删除
100644 → 0
浏览文件 @
79502a9d
# 图片缓存
> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
> 从 API Version 7 开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。
## 导入模块
```
import app from '@system.app'
```
## 权限
无
## app.setImageCacheCount
setImageCacheCount(value: number): void
设置内存中缓存解码后图片的数量上限,提升再次加载同源图片的加载速度。如果不设置则默认为0,不进行缓存。缓存采用内置的LRU策略,新图片加载后,如果超过缓存上限,会删除最久未再次加载的缓存。建议根据应用内存需求,设置合理缓存数量,数字过大可能导致内存使用过高。
-
参数
| 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- |
| value | number | 是 | 内存中解码后图片的缓存数量。 |
-
示例
```
// app.ets
import app from '@system.app';
export default {
onCreate() {
app.setImageCacheCount(100) // 设置解码后图片内存缓存上限为100张
console.info('Application onCreate')
},
onDestroy() {
console.info('Application onDestroy')
},
}
```
## app.setImageRawDataCacheSize
setImageRawDataCacheSize(value: number): void
设置内存中缓存解码前图片数据的大小上限,单位为字节,提升再次加载同源图片的加载速度。如果不设置则默认为0,不进行缓存。缓存采用内置的LRU策略,新图片加载后,如果解码前数据超过缓存上限,会删除最久未再次加载的图片数据缓存。建议根据应用内存需求,设置合理缓存上限,过大可能导致应用内存使用过高。
-
参数
| 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- |
| value | number | 是 | 内存中解码前图片数据的缓存大小,单位为字节。 |
-
示例
```
// app.ets
import app from '@system.app';
export default {
onCreate() {
app.setImageRawDataCacheSize(104,857,600) // 设置解码前图片数据内存缓存上限为100MB
console.info('Application onCreate')
},
onDestroy() {
console.info('Application onDestroy')
},
}
```
## app.setImageFileCacheSize
setImageFileCacheSize(value: number): void
设置图片文件缓存的大小上限,单位为字节,提升再次加载同源图片的加载速度,特别是对网络图源、缩略图会有较明显提升。如果不设置则默认为100MB。缓存采用内置的LRU策略,新图片加载后,如果超过文件缓存上限,会按照时间由远到近删除缓存图片文件直到缓存图片大小满足缓存上限。建议根据应用实际需求,设置合理文件缓存上限,数字过大可能导致磁盘空间占用过高。
-
参数
| 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- |
| value | number | 是 | 图片文件的缓存大小,单位为字节。 |
-
示例
```
// app.ets
import app from '@system.app';
export default {
onCreate() {
app.setImageFileCacheSize(209,715,200) // 设置图片文件数据缓存上限为200MB
console.info('Application onCreate')
},
onDestroy() {
console.info('Application onDestroy')
},
}
```
zh-cn/application-dev/reference/arkui-ts/ts-methods-popup-window.md
已删除
100644 → 0
浏览文件 @
79502a9d
# 弹窗
-
**[警告弹窗](ts-methods-alert-dialog-box.md)**
-
**[列表选择弹窗](ts-methods-action-sheet.md)**
-
**[自定义弹窗](ts-methods-custom-dialog-box.md)**
\ No newline at end of file
zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes.md
→
zh-cn/application-dev/reference/arkui-ts/ts-universal-attributes
-index
.md
浏览文件 @
ce241c98
文件已移动
zh-cn/application-dev/reference/arkui-ts/ts-universal-components.md
已删除
100644 → 0
浏览文件 @
79502a9d
# 通用
-
**[通用事件](ts-universal-events.md)**
-
**[通用属性](ts-universal-attributes.md)**
-
**[手势处理](ts-gesture-processing.md)**
\ No newline at end of file
zh-cn/application-dev/reference/arkui-ts/ts-universal-events.md
→
zh-cn/application-dev/reference/arkui-ts/ts-universal-events
-index
.md
浏览文件 @
ce241c98
文件已移动
zh-cn/application-dev/ui/Readme-CN.md
浏览文件 @
ce241c98
...
@@ -51,6 +51,7 @@
...
@@ -51,6 +51,7 @@
-
[
Qrcode开发指导
](
ui-js-components-qrcode.md
)
-
[
Qrcode开发指导
](
ui-js-components-qrcode.md
)
-
[
Search开发指导
](
ui-js-components-search.md
)
-
[
Search开发指导
](
ui-js-components-search.md
)
-
Canvas开发指导
-
Canvas开发指导
-
[
Canvas对象
](
ui-js-components-canvas.md
)
-
[
CanvasRenderingContext2D对象
](
ui-js-components-canvasrenderingcontext2d.md
)
-
[
CanvasRenderingContext2D对象
](
ui-js-components-canvasrenderingcontext2d.md
)
-
[
Path2D对象
](
ui-js-components-path2d.md
)
-
[
Path2D对象
](
ui-js-components-path2d.md
)
-
[
OffscreenCanvas对象
](
ui-js-components-offscreencanvas.md
)
-
[
OffscreenCanvas对象
](
ui-js-components-offscreencanvas.md
)
...
...
zh-cn/application-dev/ui/ui-js-components-canvas.md
浏览文件 @
ce241c98
# Canvas
开发指导
# Canvas
对象
Canvas组件提供画布,用于自定义绘制图形。具体用法请参考
[
CanvasRenderingContext2D对象
](
../reference/arkui-js/js-components-canvas-canvasrenderingcontext2d.md
)
。
Canvas组件提供画布,用于自定义绘制图形。具体用法请参考
[
CanvasRenderingContext2D对象
](
../reference/arkui-js/js-components-canvas-canvasrenderingcontext2d.md
)
。
...
...
zh-cn/application-dev/website.md
浏览文件 @
ce241c98
...
@@ -88,6 +88,7 @@
...
@@ -88,6 +88,7 @@
-
[
Qrcode开发指导
](
ui/ui-js-components-qrcode.md
)
-
[
Qrcode开发指导
](
ui/ui-js-components-qrcode.md
)
-
[
Search开发指导
](
ui/ui-js-components-search.md
)
-
[
Search开发指导
](
ui/ui-js-components-search.md
)
-
Canvas开发指导
-
Canvas开发指导
-
[
Canvas对象
](
ui-js-components-canvas.md
)
-
[
CanvasRenderingContext2D对象
](
ui/ui-js-components-canvasrenderingcontext2d.md
)
-
[
CanvasRenderingContext2D对象
](
ui/ui-js-components-canvasrenderingcontext2d.md
)
-
[
Path2D对象
](
ui/ui-js-components-path2d.md
)
-
[
Path2D对象
](
ui/ui-js-components-path2d.md
)
-
[
OffscreenCanvas对象
](
ui/ui-js-components-offscreencanvas.md
)
-
[
OffscreenCanvas对象
](
ui/ui-js-components-offscreencanvas.md
)
...
@@ -517,8 +518,6 @@
...
@@ -517,8 +518,6 @@
-
[
矩阵变换
](
reference/arkui-ts/ts-matrix-transformation.md
)
-
[
矩阵变换
](
reference/arkui-ts/ts-matrix-transformation.md
)
-
[
插值计算
](
reference/arkui-ts/ts-interpolation-calculation.md
)
-
[
插值计算
](
reference/arkui-ts/ts-interpolation-calculation.md
)
-
全局UI方法
-
全局UI方法
-
[
图片缓存
](
reference/arkui-ts/ts-methods-image-cache.md
)
-
[
媒体查询
](
reference/arkui-ts/ts-methods-media-query.md
)
-
弹窗
-
弹窗
-
[
警告弹窗
](
reference/arkui-ts/ts-methods-alert-dialog-box.md
)
-
[
警告弹窗
](
reference/arkui-ts/ts-methods-alert-dialog-box.md
)
-
[
列表选择弹窗
](
reference/arkui-ts/ts-methods-action-sheet.md
)
-
[
列表选择弹窗
](
reference/arkui-ts/ts-methods-action-sheet.md
)
...
@@ -526,7 +525,6 @@
...
@@ -526,7 +525,6 @@
-
[
日期时间选择弹窗
](
reference/arkui-ts/ts-methods-datepicker-dialog.md
)
-
[
日期时间选择弹窗
](
reference/arkui-ts/ts-methods-datepicker-dialog.md
)
-
[
文本选择弹窗
](
reference/arkui-ts/ts-methods-textpicker-dialog.md
)
-
[
文本选择弹窗
](
reference/arkui-ts/ts-methods-textpicker-dialog.md
)
-
[
菜单
](
reference/arkui-ts/ts-methods-menu.md
)
-
[
菜单
](
reference/arkui-ts/ts-methods-menu.md
)
-
附录
-
[
文档中涉及到的内置枚举值
](
reference/arkui-ts/ts-appendix-enums.md
)
-
[
文档中涉及到的内置枚举值
](
reference/arkui-ts/ts-appendix-enums.md
)
-
接口参考
-
接口参考
-
Ability框架
-
Ability框架
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录