From 1d14302c0f514194647c7f57fbd703307c3a460b Mon Sep 17 00:00:00 2001 From: panlichen Date: Thu, 28 Nov 2024 15:21:23 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20[Issues:=20#IB7NU2]=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9react-native-dropdownalert=E6=8C=87=E5=AF=BC=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- en/react-native-dropdownalert.md | 132 ++++++++++++++-------------- zh-cn/react-native-dropdownalert.md | 132 ++++++++++++++-------------- 2 files changed, 132 insertions(+), 132 deletions(-) diff --git a/en/react-native-dropdownalert.md b/en/react-native-dropdownalert.md index 40ef1c92..a2357e23 100644 --- a/en/react-native-dropdownalert.md +++ b/en/react-native-dropdownalert.md @@ -304,13 +304,13 @@ DropDownAlertImage 是 DropdownAlert 库导出的一个枚举对象,列举了 #### DropDownAlertImage Property -| Name | Description | Type | **Required** | Platform | HarmonyOS Support | -| ------- | ---------------------------------------------------------------------- | ------------------- | ------------ | -------- | ----------------- | -| Info | Info 时使用的图片资源,使用源库的资源 equire('./assets/info.png') | ImageSourcePropType | no | All | yes | -| Warn | Info 时使用的图片资源,使用源库的资源 require('./assets/warn.png') | ImageSourcePropType | no | All | yes | -| Error | Info 时使用的图片资源,使用源库的资源 require('./assets/error.png') | ImageSourcePropType | no | All | yes | -| Success | Info 时使用的图片资源,使用源库的资源 require('./assets/success.png') | ImageSourcePropType | no | All | yes | -| Cancel | cancel 时使用的图片资源,使用源库的资源 require('./assets/cancel.png') | ImageSourcePropType | no | All | yes | +| Name | Description | Type | **Required** | Platform | HarmonyOS Support | +| ------- | ------------------------------------------------------------------------ | ------------------- | ------------ | -------- | ----------------- | +| Info | Info 时使用的图片资源,使用源库的资源 require('./assets/info.png') | ImageSourcePropType | no | All | yes | +| Warn | Warn 时使用的图片资源,使用源库的资源 require('./assets/warn.png') | ImageSourcePropType | no | All | yes | +| Error | Error 时使用的图片资源,使用源库的资源 require('./assets/error.png') | ImageSourcePropType | no | All | yes | +| Success | Success 时使用的图片资源,使用源库的资源 require('./assets/success.png') | ImageSourcePropType | no | All | yes | +| Cancel | Cancel 时使用的图片资源,使用源库的资源 require('./assets/cancel.png') | ImageSourcePropType | no | All | yes | ### DropdownAlertToValue @@ -373,65 +373,65 @@ DropdownAlert 是 DropdownAlert 库导出的核心组件,定义了弹框所有 #### DropdownAlert Property -| Name | Description | Type | **Required** | Platform | HarmonyOS Support | -| -------------------------------- | ------------------------------------------------------------------------------------------------------------ | ------------------------------ | ------------ | -------- | ----------------- | -| imageSrc | 弹框未指定图片资源的时候使用的默认自定义图片 | ImageSourcePropType | no | All | yes | -| infoImageSrc | 弹框未指定类型为 Info 时,使用的自定义图片 | ImageSourcePropType | no | All | yes | -| warnImageSrc | 弹框未指定类型为 Warn 时,使用的自定义图片 | ImageSourcePropType | no | All | yes | -| errorImageSrc | 弹框未指定类型为 Error 时,使用的自定义图片 | ImageSourcePropType | no | All | yes | -| successImageSrc | 弹框未指定类型为 Success 时,使用的自定义图片 | ImageSourcePropType | no | All | yes | -| cancelImageSrc | 弹框未指定类型为 Cancel 时,使用的自定义图片 | ImageSourcePropType | no | All | yes | -| infoColor | 弹框未指定类型为 Info 时,使用的自定义颜色 | ColorValue | no | All | yes | -| warnColor | 弹框未指定类型为 Warn 时,使用的自定义颜色 | ColorValue | no | All | yes | -| errorColor | 弹框未指定类型为 Error 时,使用的自定义颜色 | ColorValue | no | All | yes | -| successColor | 弹框未指定类型为 Success 时,使用的自定义颜色 | ColorValue | no | All | yes | -| activeStatusBarBackgroundColor | 弹框出现时,将状态栏置为设置的颜色,需要配合 updateStatusBar=true 才生效 | ColorValue | no | Android | yes | -| inactiveStatusBarBackgroundColor | 弹框消失时,将状态栏置为设置的颜色,需要配合 updateStatusBar=true 才生效 | ColorValue | no | Android | yes | -| dismissInterval | 弹窗自动消失的时间毫秒值 | number | no | All | yes | -| titleNumberOfLines | 弹窗标题的最大行数, | number | no | All | yes | -| messageNumberOfLines | 弹窗正文的最大行数,超过则省略 | number | no | All | yes | -| elevation | 高度 | number | no | All | yes | -| zIndex | z 轴的值,类型 | number | no | All | yes | -| panResponderDismissDistance | 下滑弹窗消失距离 | number | no | All | yes | -| animatedViewStyle | DropAlert 对象内部的 animatedView 样式 | ViewStyle | no | All | yes | -| alertViewStyle | DropAlert 对象内部的 alertViewStyle 样式 | ViewStyle | no | All | yes | -| safeViewStyle | DropAlert 对象内部的 safeView 样式 | ViewStyle | no | All | yes | -| textViewStyle | DropAlert 对象内部的 textView 样式 | ViewStyle | no | All | yes | -| cancelViewStyle | DropAlert 对象内部的 cancelView 样式 | ViewStyle | no | All | yes | -| titleTextStyle | DropAlert 对象内部的 titleText 样式 | TextStyle | no | All | yes | -| messageTextStyle | DropAlert 对象内部的 messageText 文字样式 | TextStyle | no | All | yes | -| imageStyle | DropAlert 对象内部的 image 样式 | ImageStyle | no | All | yes | -| cancelImageStyle | DropAlert 对象内部的 cancelImage 图片样式 | ImageStyle | no | All | yes | -| onDismissAutomatic | 弹窗关闭触发的函数,支持的关闭方式为自动关闭 | function | no | All | yes | -| onDismissCancel | 弹窗关闭触发的函数,支持的关闭方式为点击 cancel | function | no | All | yes | -| onDismissPress | 弹窗关闭触发的函数,支持的关闭方式为点击弹窗 | function | no | All | yes | -| onDismissPanResponder | 弹窗关闭触发的函数,支持的关闭方式为向下滑动,仅在 alertPosition 为“bottom”时生效 | function | no | All | yes | -| onDismissProgrammatic | 弹窗关闭触发的函数,支持的关闭方式为程序式关闭,也是默认的值,如果非上面四种关闭方式,则默认触发此关闭函数。 | function | no | All | yes | -| showCancel | 是否显示弹窗的 cancel 模块 | boolean | no | All | yes | -| onDismissPressDisabled | 是否允许通过点击关闭弹窗 | boolean | no | All | yes | -| panResponderEnabled | 是否允许通过向下滑动关闭弹窗,仅在 alertPosition 为“bottom”时生效 | boolean | no | All | yes | -| translucent | 是否半透明 | boolean | no | All | yes | -| updateStatusBar | 是否更新状态栏 | boolean | no | All | yes | -| activeStatusBarStyle | 弹框出现时,将状态栏置为设置的样式,需要配合 updateStatusBar=true 才生效 | StatusBarStyle | no | Android | yes | -| inactiveStatusBarStyle | 弹框消失时,将状态栏置为设置的样式,需要配合 updateStatusBar=true 才生效 | StatusBarStyle | no | Android | yes | -| renderImage | 函数式返回的图片 | render function | no | All | yes | -| renderCancel | 函数式返回的取消 | render function | no | All | yes | -| renderTitle | 函数式返回的弹窗消息标题 | render function | no | All | yes | -| renderMessage | 函数式返回的弹窗消息正文 | render function | no | All | yes | -| titleTextProps | 消息标题文字样式 | TextProps | no | All | yes | -| messageTextProps | 消息正文文字样式 | TextProps | no | All | yes | -| animatedViewProps | DropAlert 对象内部的 animatedView 属性 | ViewProps | no | All | yes | -| alertTouchableOpacityProps | 弹窗透明度样式设置 | TouchableOpacityProps | no | All | yes | -| safeViewProps | DropAlert 对象内部的 safeView 属性 | ViewProps | no | All | yes | -| textViewProps | DropAlert 对象内部的 text 属性 | ViewProps | no | All | yes | -| imageProps | DropAlert 对象内部的 image 属性 | ImageProps | no | All | yes | -| cancelTouchableOpacityProps | DropAlert 对象内部的 cancelTouchableOpacityProps 配置 | TouchableOpacityProps | no | All | yes | -| cancelImageProps | DropAlert 对象内部的 cancelImageProps 属性 | ImageProps | no | All | yes | -| alert | 弹窗弹出触发事件 | function | no | All | yes | -| dismiss | 弹窗消失触发事件 | function | no | All | yes | -| springAnimationConfig | 弹簧效果参数 | Animated.SpringAnimationConfig | no | All | yes | -| children | 弹窗子元素 | ReactNode | no | All | yes | -| alertPosition | top' 或者 'bottom' | string | no | All | yes | +| Name | Description | Type | **Required** | Platform | HarmonyOS Support | +| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------ | ------------ | -------- | ----------------- | +| imageSrc | 弹框未指定图片资源的时候使用的默认自定义图片 | ImageSourcePropType | no | All | yes | +| infoImageSrc | 弹框未指定类型为 Info 时,使用的自定义图片 | ImageSourcePropType | no | All | yes | +| warnImageSrc | 弹框未指定类型为 Warn 时,使用的自定义图片 | ImageSourcePropType | no | All | yes | +| errorImageSrc | 弹框未指定类型为 Error 时,使用的自定义图片 | ImageSourcePropType | no | All | yes | +| successImageSrc | 弹框未指定类型为 Success 时,使用的自定义图片 | ImageSourcePropType | no | All | yes | +| cancelImageSrc | 弹框未指定类型为 Cancel 时,使用的自定义图片 | ImageSourcePropType | no | All | yes | +| infoColor | 弹框未指定类型为 Info 时,使用的自定义颜色 | ColorValue | no | All | yes | +| warnColor | 弹框未指定类型为 Warn 时,使用的自定义颜色 | ColorValue | no | All | yes | +| errorColor | 弹框未指定类型为 Error 时,使用的自定义颜色 | ColorValue | no | All | yes | +| successColor | 弹框未指定类型为 Success 时,使用的自定义颜色 | ColorValue | no | All | yes | +| activeStatusBarBackgroundColor | 弹框出现时,将状态栏置为设置的颜色,需要配合 updateStatusBar=true 才生效 | ColorValue | no | Android | yes | +| inactiveStatusBarBackgroundColor | 弹框消失时,将状态栏置为设置的颜色,需要配合 updateStatusBar=true 才生效 | ColorValue | no | Android | yes | +| dismissInterval | 弹窗自动消失的时间毫秒值 | number | no | All | yes | +| titleNumberOfLines | 弹窗标题的最大行数, | number | no | All | yes | +| messageNumberOfLines | 弹窗正文的最大行数,超过则省略 | number | no | All | yes | +| elevation | 视图的高度,此属性可以为视图添加一个投影,并且会影响视图层叠的顺序。此属性仅支持 Android5.0 及以上版本。 | number | no | Android | no | +| zIndex | z 轴的值 | number | no | All | no | +| panResponderDismissDistance | 下滑弹窗消失距离 | number | no | All | yes | +| animatedViewStyle | 此属性可接收一个 ViewStyle 对象,用于设置弹窗内部的 Animated.View 的样式。 | ViewStyle | no | All | no | +| alertViewStyle | 此属性可接收一个 ViewStyle 对象,用于设置弹窗的样式。 | ViewStyle | no | All | yes | +| safeViewStyle | 此属性可接收一个 ViewStyle 对象,用于设置弹窗内部的 safeView 的样式。 | ViewStyle | no | All | yes | +| textViewStyle | 此属性可接收一个 ViewStyle 对象,用于设置弹窗文字的样式。 | ViewStyle | no | All | yes | +| cancelViewStyle | 此属性可接收一个 ViewStyle 对象,用于设置弹窗内部取消按钮的样式。 | ViewStyle | no | All | yes | +| titleTextStyle | 此属性可接收一个 TextStyle 对象,用于设置弹窗标题的样式。 | TextStyle | no | All | yes | +| messageTextStyle | 此属性可接收一个 TextStyle 对象,用于设置弹窗正文的样式。 | TextStyle | no | All | yes | +| imageStyle | 此属性可接收一个 ImageStyle 对象,用于设置弹窗内图片的样式。 | ImageStyle | no | All | yes | +| cancelImageStyle | 此属性可接收一个 ImageStyle 对象,用于设置弹窗内取消按钮所用图片的样式。 | ImageStyle | no | All | yes | +| onDismissAutomatic | 弹窗关闭触发的函数,支持的关闭方式为自动关闭 | function | no | All | yes | +| onDismissCancel | 弹窗关闭触发的函数,支持的关闭方式为点击 cancel | function | no | All | yes | +| onDismissPress | 弹窗关闭触发的函数,支持的关闭方式为点击弹窗 | function | no | All | yes | +| onDismissPanResponder | 弹窗关闭触发的函数,支持的关闭方式为向下滑动,仅在 alertPosition 为“bottom”时生效 | function | no | All | yes | +| onDismissProgrammatic | 弹窗关闭触发的函数,支持的关闭方式为程序式关闭,也是默认的值,如果非上面四种关闭方式,则默认触发此关闭函数。 | function | no | All | no | +| showCancel | 是否显示弹窗的 cancel 模块 | boolean | no | All | yes | +| onDismissPressDisabled | 是否允许通过点击关闭弹窗 | boolean | no | All | yes | +| panResponderEnabled | 是否允许通过向下滑动关闭弹窗,仅在 alertPosition 为“bottom”时生效 | boolean | no | All | yes | +| translucent | 指定状态栏是否透明。设置为 true 时,应用会延伸到状态栏之下绘制(即所谓“沉浸式”——被状态栏遮住一部分)。常和带有半透明背景色的状态栏搭配使用,此属性仅支持 Android。 | boolean | no | Android | no | +| updateStatusBar | 是否更新状态栏 | boolean | no | All | yes | +| activeStatusBarStyle | 弹框出现时,将状态栏置为设置的样式,需要配合 updateStatusBar=true 才生效 | StatusBarStyle | no | Android | yes | +| inactiveStatusBarStyle | 弹框消失时,将状态栏置为设置的样式,需要配合 updateStatusBar=true 才生效 | StatusBarStyle | no | Android | yes | +| renderImage | 函数式返回的图片 | render function | no | All | yes | +| renderCancel | 函数式返回的取消 | render function | no | All | yes | +| renderTitle | 函数式返回的弹窗消息标题 | render function | no | All | yes | +| renderMessage | 函数式返回的弹窗消息正文 | render function | no | All | yes | +| titleTextProps | 消息标题文字样式 | TextProps | no | All | yes | +| messageTextProps | 消息正文文字样式 | TextProps | no | All | yes | +| animatedViewProps | 此属性可接收一个 ViewProps 对象,用于设置弹窗对象内部的 Animated.View 的属性。 | ViewProps | no | All | yes | +| alertTouchableOpacityProps | 弹窗透明度样式设置 | TouchableOpacityProps | no | All | yes | +| safeViewProps | 此属性可接收一个 ViewProps 对象,用于设置弹窗对象内部的 safeView 的属性。 | ViewProps | no | All | yes | +| textViewProps | 此属性可接收一个 ViewProps 对象,用于设置弹窗对象内部的文本展示区域的属性。 | ViewProps | no | All | yes | +| imageProps | 此属性可接收一个 ImageProps 对象,用于设置弹窗对象内部的图片的属性。 | ImageProps | no | All | yes | +| cancelTouchableOpacityProps | 此属性可接收一个 TouchableOpacityProps 对象,用于设置弹窗对象内部的取消按钮的属性。 | TouchableOpacityProps | no | All | yes | +| cancelImageProps | 此属性可接收一个 ImageProps 对象,用于设置弹窗对象内部的取消按钮图片的属性。 | ImageProps | no | All | yes | +| alert | 弹窗弹出触发事件 | function | no | All | yes | +| dismiss | 弹窗消失触发事件 | function | no | All | yes | +| springAnimationConfig | 弹簧效果参数 | Animated.SpringAnimationConfig | no | All | yes | +| children | 弹窗子元素 | ReactNode | no | All | yes | +| alertPosition | 设置弹窗弹出的位置,top 从屏幕顶部弹出,或者设置为 bottom 从屏幕底部弹出。默认值为 top。 | string | no | All | yes | ## Known Issues diff --git a/zh-cn/react-native-dropdownalert.md b/zh-cn/react-native-dropdownalert.md index ec5962b7..461c6707 100644 --- a/zh-cn/react-native-dropdownalert.md +++ b/zh-cn/react-native-dropdownalert.md @@ -304,13 +304,13 @@ DropDownAlertImage 是 DropdownAlert 库导出的一个枚举对象,列举了 #### DropDownAlertImage 属性 -| Name | Description | Type | **Required** | Platform | HarmonyOS Support | -| ------- | ---------------------------------------------------------------------- | ------------------- | ------------ | -------- | ----------------- | -| Info | Info 时使用的图片资源,使用源库的资源 equire('./assets/info.png') | ImageSourcePropType | no | All | yes | -| Warn | Info 时使用的图片资源,使用源库的资源 require('./assets/warn.png') | ImageSourcePropType | no | All | yes | -| Error | Info 时使用的图片资源,使用源库的资源 require('./assets/error.png') | ImageSourcePropType | no | All | yes | -| Success | Info 时使用的图片资源,使用源库的资源 require('./assets/success.png') | ImageSourcePropType | no | All | yes | -| Cancel | cancel 时使用的图片资源,使用源库的资源 require('./assets/cancel.png') | ImageSourcePropType | no | All | yes | +| Name | Description | Type | **Required** | Platform | HarmonyOS Support | +| ------- | ------------------------------------------------------------------------ | ------------------- | ------------ | -------- | ----------------- | +| Info | Info 时使用的图片资源,使用源库的资源 require('./assets/info.png') | ImageSourcePropType | no | All | yes | +| Warn | Warn 时使用的图片资源,使用源库的资源 require('./assets/warn.png') | ImageSourcePropType | no | All | yes | +| Error | Error 时使用的图片资源,使用源库的资源 require('./assets/error.png') | ImageSourcePropType | no | All | yes | +| Success | Success 时使用的图片资源,使用源库的资源 require('./assets/success.png') | ImageSourcePropType | no | All | yes | +| Cancel | Cancel 时使用的图片资源,使用源库的资源 require('./assets/cancel.png') | ImageSourcePropType | no | All | yes | ### DropdownAlertToValue @@ -373,65 +373,65 @@ DropdownAlert 是 DropdownAlert 库导出的核心组件,定义了弹框所有 #### DropdownAlert 属性 -| Name | Description | Type | **Required** | Platform | HarmonyOS Support | -| -------------------------------- | ------------------------------------------------------------------------------------------------------------ | ------------------------------ | ------------ | -------- | ----------------- | -| imageSrc | 弹框未指定图片资源的时候使用的默认自定义图片 | ImageSourcePropType | no | All | yes | -| infoImageSrc | 弹框未指定类型为 Info 时,使用的自定义图片 | ImageSourcePropType | no | All | yes | -| warnImageSrc | 弹框未指定类型为 Warn 时,使用的自定义图片 | ImageSourcePropType | no | All | yes | -| errorImageSrc | 弹框未指定类型为 Error 时,使用的自定义图片 | ImageSourcePropType | no | All | yes | -| successImageSrc | 弹框未指定类型为 Success 时,使用的自定义图片 | ImageSourcePropType | no | All | yes | -| cancelImageSrc | 弹框未指定类型为 Cancel 时,使用的自定义图片 | ImageSourcePropType | no | All | yes | -| infoColor | 弹框未指定类型为 Info 时,使用的自定义颜色 | ColorValue | no | All | yes | -| warnColor | 弹框未指定类型为 Warn 时,使用的自定义颜色 | ColorValue | no | All | yes | -| errorColor | 弹框未指定类型为 Error 时,使用的自定义颜色 | ColorValue | no | All | yes | -| successColor | 弹框未指定类型为 Success 时,使用的自定义颜色 | ColorValue | no | All | yes | -| activeStatusBarBackgroundColor | 弹框出现时,将状态栏置为设置的颜色,需要配合 updateStatusBar=true 才生效 | ColorValue | no | Android | yes | -| inactiveStatusBarBackgroundColor | 弹框消失时,将状态栏置为设置的颜色,需要配合 updateStatusBar=true 才生效 | ColorValue | no | Android | yes | -| dismissInterval | 弹窗自动消失的时间毫秒值 | number | no | All | yes | -| titleNumberOfLines | 弹窗标题的最大行数, | number | no | All | yes | -| messageNumberOfLines | 弹窗正文的最大行数,超过则省略 | number | no | All | yes | -| elevation | 高度 | number | no | All | no | -| zIndex | z 轴的值,类型 | number | no | All | no | -| panResponderDismissDistance | 下滑弹窗消失距离 | number | no | All | yes | -| animatedViewStyle | DropAlert 对象内部的 animatedView 样式 | ViewStyle | no | All | no | -| alertViewStyle | DropAlert 对象内部的 alertViewStyle 样式 | ViewStyle | no | All | yes | -| safeViewStyle | DropAlert 对象内部的 safeView 样式 | ViewStyle | no | All | yes | -| textViewStyle | DropAlert 对象内部的 textView 样式 | ViewStyle | no | All | yes | -| cancelViewStyle | DropAlert 对象内部的 cancelView 样式 | ViewStyle | no | All | yes | -| titleTextStyle | DropAlert 对象内部的 titleText 样式 | TextStyle | no | All | yes | -| messageTextStyle | DropAlert 对象内部的 messageText 文字样式 | TextStyle | no | All | yes | -| imageStyle | DropAlert 对象内部的 image 样式 | ImageStyle | no | All | yes | -| cancelImageStyle | DropAlert 对象内部的 cancelImage 图片样式 | ImageStyle | no | All | yes | -| onDismissAutomatic | 弹窗关闭触发的函数,支持的关闭方式为自动关闭 | function | no | All | yes | -| onDismissCancel | 弹窗关闭触发的函数,支持的关闭方式为点击 cancel | function | no | All | yes | -| onDismissPress | 弹窗关闭触发的函数,支持的关闭方式为点击弹窗 | function | no | All | yes | -| onDismissPanResponder | 弹窗关闭触发的函数,支持的关闭方式为向下滑动,仅在 alertPosition 为“bottom”时生效 | function | no | All | yes | -| onDismissProgrammatic | 弹窗关闭触发的函数,支持的关闭方式为程序式关闭,也是默认的值,如果非上面四种关闭方式,则默认触发此关闭函数。 | function | no | All | no | -| showCancel | 是否显示弹窗的 cancel 模块 | boolean | no | All | yes | -| onDismissPressDisabled | 是否允许通过点击关闭弹窗 | boolean | no | All | yes | -| panResponderEnabled | 是否允许通过向下滑动关闭弹窗,仅在 alertPosition 为“bottom”时生效 | boolean | no | All | yes | -| translucent | 是否半透明 | boolean | no | All | no | -| updateStatusBar | 是否更新状态栏 | boolean | no | All | yes | -| activeStatusBarStyle | 弹框出现时,将状态栏置为设置的样式,需要配合 updateStatusBar=true 才生效 | StatusBarStyle | no | Android | yes | -| inactiveStatusBarStyle | 弹框消失时,将状态栏置为设置的样式,需要配合 updateStatusBar=true 才生效 | StatusBarStyle | no | Android | yes | -| renderImage | 函数式返回的图片 | render function | no | All | yes | -| renderCancel | 函数式返回的取消 | render function | no | All | yes | -| renderTitle | 函数式返回的弹窗消息标题 | render function | no | All | yes | -| renderMessage | 函数式返回的弹窗消息正文 | render function | no | All | yes | -| titleTextProps | 消息标题文字样式 | TextProps | no | All | yes | -| messageTextProps | 消息正文文字样式 | TextProps | no | All | yes | -| animatedViewProps | DropAlert 对象内部的 animatedView 属性 | ViewProps | no | All | yes | -| alertTouchableOpacityProps | 弹窗透明度样式设置 | TouchableOpacityProps | no | All | yes | -| safeViewProps | DropAlert 对象内部的 safeView 属性 | ViewProps | no | All | yes | -| textViewProps | DropAlert 对象内部的 text 属性 | ViewProps | no | All | yes | -| imageProps | DropAlert 对象内部的 image 属性 | ImageProps | no | All | yes | -| cancelTouchableOpacityProps | DropAlert 对象内部的 cancelTouchableOpacityProps 配置 | TouchableOpacityProps | no | All | yes | -| cancelImageProps | DropAlert 对象内部的 cancelImageProps 属性 | ImageProps | no | All | yes | -| alert | 弹窗弹出触发事件 | function | no | All | yes | -| dismiss | 弹窗消失触发事件 | function | no | All | yes | -| springAnimationConfig | 弹簧效果参数 | Animated.SpringAnimationConfig | no | All | yes | -| children | 弹窗子元素 | ReactNode | no | All | yes | -| alertPosition | top' 或者 'bottom' | string | no | All | yes | +| Name | Description | Type | **Required** | Platform | HarmonyOS Support | +| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------ | ------------ | -------- | ----------------- | +| imageSrc | 弹框未指定图片资源的时候使用的默认自定义图片 | ImageSourcePropType | no | All | yes | +| infoImageSrc | 弹框未指定类型为 Info 时,使用的自定义图片 | ImageSourcePropType | no | All | yes | +| warnImageSrc | 弹框未指定类型为 Warn 时,使用的自定义图片 | ImageSourcePropType | no | All | yes | +| errorImageSrc | 弹框未指定类型为 Error 时,使用的自定义图片 | ImageSourcePropType | no | All | yes | +| successImageSrc | 弹框未指定类型为 Success 时,使用的自定义图片 | ImageSourcePropType | no | All | yes | +| cancelImageSrc | 弹框未指定类型为 Cancel 时,使用的自定义图片 | ImageSourcePropType | no | All | yes | +| infoColor | 弹框未指定类型为 Info 时,使用的自定义颜色 | ColorValue | no | All | yes | +| warnColor | 弹框未指定类型为 Warn 时,使用的自定义颜色 | ColorValue | no | All | yes | +| errorColor | 弹框未指定类型为 Error 时,使用的自定义颜色 | ColorValue | no | All | yes | +| successColor | 弹框未指定类型为 Success 时,使用的自定义颜色 | ColorValue | no | All | yes | +| activeStatusBarBackgroundColor | 弹框出现时,将状态栏置为设置的颜色,需要配合 updateStatusBar=true 才生效 | ColorValue | no | Android | yes | +| inactiveStatusBarBackgroundColor | 弹框消失时,将状态栏置为设置的颜色,需要配合 updateStatusBar=true 才生效 | ColorValue | no | Android | yes | +| dismissInterval | 弹窗自动消失的时间毫秒值 | number | no | All | yes | +| titleNumberOfLines | 弹窗标题的最大行数, | number | no | All | yes | +| messageNumberOfLines | 弹窗正文的最大行数,超过则省略 | number | no | All | yes | +| elevation | 视图的高度,此属性可以为视图添加一个投影,并且会影响视图层叠的顺序。此属性仅支持 Android5.0 及以上版本。 | number | no | Android | no | +| zIndex | z 轴的值 | number | no | All | no | +| panResponderDismissDistance | 下滑弹窗消失距离 | number | no | All | yes | +| animatedViewStyle | 此属性可接收一个 ViewStyle 对象,用于设置弹窗内部的 Animated.View 的样式。 | ViewStyle | no | All | no | +| alertViewStyle | 此属性可接收一个 ViewStyle 对象,用于设置弹窗的样式。 | ViewStyle | no | All | yes | +| safeViewStyle | 此属性可接收一个 ViewStyle 对象,用于设置弹窗内部的 safeView 的样式。 | ViewStyle | no | All | yes | +| textViewStyle | 此属性可接收一个 ViewStyle 对象,用于设置弹窗文字的样式。 | ViewStyle | no | All | yes | +| cancelViewStyle | 此属性可接收一个 ViewStyle 对象,用于设置弹窗内部取消按钮的样式。 | ViewStyle | no | All | yes | +| titleTextStyle | 此属性可接收一个 TextStyle 对象,用于设置弹窗标题的样式。 | TextStyle | no | All | yes | +| messageTextStyle | 此属性可接收一个 TextStyle 对象,用于设置弹窗正文的样式。 | TextStyle | no | All | yes | +| imageStyle | 此属性可接收一个 ImageStyle 对象,用于设置弹窗内图片的样式。 | ImageStyle | no | All | yes | +| cancelImageStyle | 此属性可接收一个 ImageStyle 对象,用于设置弹窗内取消按钮所用图片的样式。 | ImageStyle | no | All | yes | +| onDismissAutomatic | 弹窗关闭触发的函数,支持的关闭方式为自动关闭 | function | no | All | yes | +| onDismissCancel | 弹窗关闭触发的函数,支持的关闭方式为点击 cancel | function | no | All | yes | +| onDismissPress | 弹窗关闭触发的函数,支持的关闭方式为点击弹窗 | function | no | All | yes | +| onDismissPanResponder | 弹窗关闭触发的函数,支持的关闭方式为向下滑动,仅在 alertPosition 为“bottom”时生效 | function | no | All | yes | +| onDismissProgrammatic | 弹窗关闭触发的函数,支持的关闭方式为程序式关闭,也是默认的值,如果非上面四种关闭方式,则默认触发此关闭函数。 | function | no | All | no | +| showCancel | 是否显示弹窗的 cancel 模块 | boolean | no | All | yes | +| onDismissPressDisabled | 是否允许通过点击关闭弹窗 | boolean | no | All | yes | +| panResponderEnabled | 是否允许通过向下滑动关闭弹窗,仅在 alertPosition 为“bottom”时生效 | boolean | no | All | yes | +| translucent | 指定状态栏是否透明。设置为 true 时,应用会延伸到状态栏之下绘制(即所谓“沉浸式”——被状态栏遮住一部分)。常和带有半透明背景色的状态栏搭配使用,此属性仅支持 Android。 | boolean | no | Android | no | +| updateStatusBar | 是否更新状态栏 | boolean | no | All | yes | +| activeStatusBarStyle | 弹框出现时,将状态栏置为设置的样式,需要配合 updateStatusBar=true 才生效 | StatusBarStyle | no | Android | yes | +| inactiveStatusBarStyle | 弹框消失时,将状态栏置为设置的样式,需要配合 updateStatusBar=true 才生效 | StatusBarStyle | no | Android | yes | +| renderImage | 函数式返回的图片 | render function | no | All | yes | +| renderCancel | 函数式返回的取消 | render function | no | All | yes | +| renderTitle | 函数式返回的弹窗消息标题 | render function | no | All | yes | +| renderMessage | 函数式返回的弹窗消息正文 | render function | no | All | yes | +| titleTextProps | 消息标题文字样式 | TextProps | no | All | yes | +| messageTextProps | 消息正文文字样式 | TextProps | no | All | yes | +| animatedViewProps | 此属性可接收一个 ViewProps 对象,用于设置弹窗对象内部的 Animated.View 的属性。 | ViewProps | no | All | yes | +| alertTouchableOpacityProps | 弹窗透明度样式设置 | TouchableOpacityProps | no | All | yes | +| safeViewProps | 此属性可接收一个 ViewProps 对象,用于设置弹窗对象内部的 safeView 的属性。 | ViewProps | no | All | yes | +| textViewProps | 此属性可接收一个 ViewProps 对象,用于设置弹窗对象内部的文本展示区域的属性。 | ViewProps | no | All | yes | +| imageProps | 此属性可接收一个 ImageProps 对象,用于设置弹窗对象内部的图片的属性。 | ImageProps | no | All | yes | +| cancelTouchableOpacityProps | 此属性可接收一个 TouchableOpacityProps 对象,用于设置弹窗对象内部的取消按钮的属性。 | TouchableOpacityProps | no | All | yes | +| cancelImageProps | 此属性可接收一个 ImageProps 对象,用于设置弹窗对象内部的取消按钮图片的属性。 | ImageProps | no | All | yes | +| alert | 弹窗弹出触发事件 | function | no | All | yes | +| dismiss | 弹窗消失触发事件 | function | no | All | yes | +| springAnimationConfig | 弹簧效果参数 | Animated.SpringAnimationConfig | no | All | yes | +| children | 弹窗子元素 | ReactNode | no | All | yes | +| alertPosition | 设置弹窗弹出的位置,top 从屏幕顶部弹出,或者设置为 bottom 从屏幕底部弹出。默认值为 top。 | string | no | All | yes | ## 遗留问题 -- Gitee