Skip to content

Commit

Permalink
Merge e50e136 into a2683e9
Browse files Browse the repository at this point in the history
  • Loading branch information
vschst committed Dec 1, 2020
2 parents a2683e9 + e50e136 commit 373b857
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/dialog/src/component.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@after-leave="afterLeave">
<div
v-show="visible"
class="el-dialog__wrapper"
:class="['el-dialog__wrapper', wrapperClass]"
@click.self="handleWrapperClick">
<div
role="dialog"
Expand Down Expand Up @@ -92,6 +92,11 @@
fullscreen: Boolean,
wrapperClass: {
type: String,
default: ''
},
customClass: {
type: String,
default: ''
Expand Down
3 changes: 3 additions & 0 deletions types/dialog.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ export declare class ElDialog extends ElementUIComponent {
/** Whether scroll of body is disabled while Dialog is displayed */
lockScroll: boolean

/** Custom class names for Dialog wrapper */
wrapperClass: string

/** Custom class names for Dialog */
customClass: string

Expand Down

0 comments on commit 373b857

Please sign in to comment.