diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-transition-animation-component.md b/zh-cn/application-dev/reference/arkui-ts/ts-transition-animation-component.md
index 27e49abebea9cec1e379b5ff2168fb034e819dff..7952f69866714bb7337b17f6543250491db42991 100644
--- a/zh-cn/application-dev/reference/arkui-ts/ts-transition-animation-component.md
+++ b/zh-cn/application-dev/reference/arkui-ts/ts-transition-animation-component.md
@@ -19,10 +19,10 @@
| 参数名称 | 参数类型 | 必填 | 参数描述 |
| -------- | -------- | -------- | -------- |
| type | [TransitionType](ts-appendix-enums.md#transitiontype) | 否 | 默认包括组件新增和删除。
默认值:TransitionType.All
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
不指定Type时说明插入删除使用同一种效果。 |
-| opacity | number | 否 | 设置组件转场时的透明度效果,为插入时起点和删除时终点的值。
默认值:1
取值范围: [0, 1]
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
设置小于0的值时,按值为0处理;设置大于1的值时,按值为1处理。 |
+| opacity | number | 否 | 设置组件转场时的透明度效果,为插入时起点和删除时终点的值。
默认值:1
取值范围: [0, 1]
从API version 9开始,该接口支持在ArkTS卡片中使用。
**说明:**
设置小于0或大于1的非法值时,按1处理。 |
| translate | {
x? : number \| string,
y? : number \| string,
z? : number \| string
} | 否 | 设置组件转场时的平移效果,为插入时起点和删除时终点的值。
-x:横向的平移距离。
-y:纵向的平移距离。
-z:竖向的平移距离。
从API version 9开始,该接口支持在ArkTS卡片中使用。 |
| scale | {
x? : number,
y? : number,
z? : number,
centerX? : number \| string,
centerY? : number \| string
} | 否 | 设置组件转场时的缩放效果,为插入时起点和删除时终点的值。
-x:横向放大倍数(或缩小比例)。
-y:纵向放大倍数(或缩小比例)。
-z:竖向放大倍数(或缩小比例)。
- centerX、centerY指缩放中心点,centerX和centerY默认值是"50%"。
- 中心点为0时,默认的是组件的左上角。
从API version 9开始,该接口支持在ArkTS卡片中使用。 |
-| rotate | {
x?: number,
y?: number,
z?: number,
angle?: number \| string,
centerX?: number \| string,
centerY?: number \| string
} | 否 | 设置组件转场时的旋转效果,为插入时起点和删除时终点的值。
-x:横向的旋转向量。
-y:纵向的旋转向量。
-z:竖向的旋转向量。
- centerX,centerY指旋转中心点,centerX和centerY默认值是"50%"。
- 中心点为(0,0)时,默认的是组件的左上角。
从API version 9开始,该接口支持在ArkTS卡片中使用。 |
+| rotate | {
x?: number,
y?: number,
z?: number,
angle: number \| string,
centerX?: number \| string,
centerY?: number \| string
} | 否 | 设置组件转场时的旋转效果,为插入时起点和删除时终点的值。
-x:横向的旋转向量。
-y:纵向的旋转向量。
-z:竖向的旋转向量。
- centerX,centerY指旋转中心点,centerX和centerY默认值是"50%"。
- 中心点为(0,0)时,默认的是组件的左上角。
从API version 9开始,该接口支持在ArkTS卡片中使用。 |
## 示例
diff --git a/zh-cn/application-dev/ui/ui-js-animate-dynamic-effects.md b/zh-cn/application-dev/ui/ui-js-animate-dynamic-effects.md
index e9d60c5cf47743b28b909dcdfd84d06e837284f2..44abac846ce2424573af6a897890faa63f488fa7 100644
--- a/zh-cn/application-dev/ui/ui-js-animate-dynamic-effects.md
+++ b/zh-cn/application-dev/ui/ui-js-animate-dynamic-effects.md
@@ -153,7 +153,7 @@ button{
```js
// xxx.js
import animator from '@ohos.animator';
-import prompt from '@system.prompt';
+import promptAction from '@ohos.promptAction';
export default {
data: {
scaleVal:1,
@@ -175,7 +175,7 @@ export default {
var _this= this;
//添加动画重放事件
this.animation.onrepeat = function() {
- prompt.showToast({
+ promptAction.showToast({
message: 'repeat'
});
var repeatoptions = {
@@ -217,7 +217,7 @@ export default {
var _this= this;
//添加动画完成事件
this.animation.onfinish = function() {
- prompt.showToast({
+ promptAction.showToast({
message: 'finish'
})
};
diff --git a/zh-cn/application-dev/ui/ui-js-components-dialog.md b/zh-cn/application-dev/ui/ui-js-components-dialog.md
index 563372437786c72aed45cb1ab3f3cf4cc9e82570..91defb304a19deabd099cfdc2da6e9c4820f2dfa 100644
--- a/zh-cn/application-dev/ui/ui-js-components-dialog.md
+++ b/zh-cn/application-dev/ui/ui-js-components-dialog.md
@@ -267,7 +267,6 @@ export default {
// xxx.js
var info = null;
import promptAction from '@ohos.promptAction';
-
export default {
data: {
curYear:'',
diff --git a/zh-cn/application-dev/ui/ui-js-components-grid.md b/zh-cn/application-dev/ui/ui-js-components-grid.md
index 757bd8019ebb26a4da64af74152e73d66ea5418a..252819211fdc274575910279e0859f140d705b1f 100644
--- a/zh-cn/application-dev/ui/ui-js-components-grid.md
+++ b/zh-cn/application-dev/ui/ui-js-components-grid.md
@@ -215,7 +215,7 @@ text{
```js
// index.js
-import prompt from '@system.prompt';
+import promptAction from '@ohos.promptAction';
export default {
data:{
list:[
@@ -226,7 +226,7 @@ export default {
fresh:false
},
refresh(e) {
- prompt.showToast({
+ promptAction.showToast({
message: 'refreshing'
})
var that = this;
@@ -234,7 +234,7 @@ export default {
setTimeout(function () {
that.fresh = false;
that.list.unshift({src: 'common/images/4.png',id:'4'});
- prompt.showToast({
+ promptAction.showToast({
message: 'succeed'
})
}, 2000)
diff --git a/zh-cn/application-dev/ui/ui-js-components-image-animator.md b/zh-cn/application-dev/ui/ui-js-components-image-animator.md
index cd6376954a2e8291995c24210af83b4e0fa7bed5..d707239ec2242bd8b5a9c5097bbf48549513101f 100644
--- a/zh-cn/application-dev/ui/ui-js-components-image-animator.md
+++ b/zh-cn/application-dev/ui/ui-js-components-image-animator.md
@@ -285,7 +285,7 @@ button{
```js
// index.js
-import prompt from '@system.prompt';
+import promptAction from '@ohos.promptAction';
export default {
data: {
rev:false,
@@ -317,7 +317,7 @@ export default {
this.$element('img').resume()
},
getimgstate(e) {
- prompt.showToast({
+ promptAction.showToast({
message: '当前状态:' + this.$element('img').getState()
})
},
diff --git a/zh-cn/application-dev/ui/ui-js-components-rating.md b/zh-cn/application-dev/ui/ui-js-components-rating.md
index b77e395d932bc4b05969844fc182b95d4ff5fded..379359f379612cb991438eff61b102077e24983a 100644
--- a/zh-cn/application-dev/ui/ui-js-components-rating.md
+++ b/zh-cn/application-dev/ui/ui-js-components-rating.md
@@ -154,10 +154,10 @@ rating {
```js
// xxx.js
-import prompt from '@system.prompt';
+import promptAction from '@ohos.promptAction';
export default {
showrating(e) {
- prompt.showToast({
+ promptAction.showToast({
message: '当前评分' + e.rating
})
}