File tree Expand file tree Collapse file tree 4 files changed +6
-0
lines changed Expand file tree Collapse file tree 4 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,7 @@ export default {
129
129
| confirmButtonText | Confirm button text | * string* | ` Confirm ` | - |
130
130
| confirmButtonColor | Confirm button color | * string* | ` #1989fa ` | - |
131
131
| overlay | Whether to show overlay | * boolean* | ` true ` | - |
132
+ | overlayStyle | Custom overlay style | * object* | - | 2.2.7 |
132
133
| closeOnPopstate | Whether to close when popstate | * boolean* | ` false ` | 2.0.5 |
133
134
| closeOnClickOverlay | Whether to close when click overlay | * boolean* | ` false ` | - |
134
135
| lockScroll | Whether to lock body scroll | * boolean* | ` true ` | - |
@@ -151,6 +152,7 @@ export default {
151
152
| confirm-button-text | Confirm button text | * string* | ` Confirm ` | - |
152
153
| confirm-button-color | Confirm button color | * string* | ` #1989fa ` | - |
153
154
| overlay | Whether to show overlay | * boolean* | ` true ` | - |
155
+ | overlay-style | Custom overlay style | * object* | - | 2.2.7 |
154
156
| close-on-popstate | Whether to close when popstate | * boolean* | ` false ` | 2.0.5 |
155
157
| close-on-click-overlay | Whether to close when click overlay | * boolean* | ` false ` | - |
156
158
| lock-scroll | Whether to lock background scroll | * boolean* | ` true ` | - |
Original file line number Diff line number Diff line change @@ -158,6 +158,7 @@ export default {
158
158
| cancelButtonText | 取消按钮文案 | * string* | ` 取消 ` | - |
159
159
| cancelButtonColor | 取消按钮颜色 | * string* | ` #000 ` | - |
160
160
| overlay | 是否展示遮罩层 | * boolean* | ` true ` | - |
161
+ | overlayStyle | 自定义遮罩层样式 | * object* | - | 2.2.7 |
161
162
| closeOnPopstate | 是否在页面回退时自动关闭 | * boolean* | ` false ` | 2.0.5 |
162
163
| closeOnClickOverlay | 是否在点击遮罩层后关闭弹窗 | * boolean* | ` false ` | - |
163
164
| lockScroll | 是否锁定背景滚动 | * boolean* | ` true ` | - |
@@ -182,6 +183,7 @@ export default {
182
183
| cancel-button-text | 取消按钮文案 | * string* | ` 取消 ` | - |
183
184
| cancel-button-color | 取消按钮颜色 | * string* | ` #000 ` | - |
184
185
| overlay | 是否展示遮罩层 | * boolean* | ` true ` | - |
186
+ | overlay-style | 自定义遮罩层样式 | * object* | - | 2.2.7 |
185
187
| close-on-popstate | 是否在页面回退时自动关闭 | * boolean* | ` false ` | 2.0.5 |
186
188
| close-on-click-overlay | 是否在点击遮罩层后关闭弹窗 | * boolean* | ` false ` | - |
187
189
| lock-scroll | 是否锁定背景滚动 | * boolean* | ` true ` | - |
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ Dialog.defaultOptions = {
53
53
lockScroll : true ,
54
54
transition : 'van-dialog-bounce' ,
55
55
beforeClose : null ,
56
+ overlayStyle : null ,
56
57
messageAlign : '' ,
57
58
getContainer : 'body' ,
58
59
cancelButtonText : '' ,
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ export type DialogOptions = {
9
9
lockScroll ?: boolean ;
10
10
transition ?: string ;
11
11
messageAlign ?: string ;
12
+ overlayStyle ?: object ;
12
13
closeOnPopstate ?: boolean ;
13
14
cancelButtonText ?: string ;
14
15
cancelButtonColor ?: string ;
You can’t perform that action at this time.
0 commit comments