Skip to content

Commit 7518179

Browse files
committed
临时解决dialog 隐藏时出现闪现白色
1 parent 054b1be commit 7518179

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/modules/PopupDialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ PopupDialog.defaultProps = {
6565
cancelBtn: null,
6666
overlayOpacity: 0.7,
6767
overlayBackgroundColor: '#000',
68-
dialogStyle: { overflow: 'hidden' }
68+
dialogStyle: { overflow: 'hidden',backgroundColor:'rgba(0,0,0,.3)' }
6969
};
7070
const styles = StyleSheet.create({
7171
container: {

src/redux/actions/dialogType.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ export const LOGINMN_DIALOG = {
2323
children: <ViewTest routh="LOGIN" />,
2424
dialogTitle: <DialogTitle title="LOGIN" />,
2525
confirmBtn: { title: '设置字体颜色', bgColor: '#188eee' },
26-
cancelBtn: { title: '关闭按钮', bgColor: '#9DABC0' }
26+
cancelBtn: { title: '关闭按钮', bgColor: '#9DABC0' },
27+
dialogStyle: { backgroundColor: '#fff' }
2728
};
2829

2930
export const HOME_DIALOG = {
@@ -32,5 +33,6 @@ export const HOME_DIALOG = {
3233
height: 300,
3334
children: <ViewTest routh="HOME" />,
3435
confirmBtn: { title: '设置字体颜色', bgColor: '#188eee' },
35-
cancelBtn: { title: '关闭按钮', bgColor: '#9DABC0' }
36+
cancelBtn: { title: '关闭按钮', bgColor: '#9DABC0' },
37+
dialogStyle: { backgroundColor: '#fff' }
3638
};

0 commit comments

Comments
 (0)