Skip to content

Commit

Permalink
fix: fix draggable prop for dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Justineo committed Jul 8, 2021
1 parent 07f9040 commit 5784a59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions packages/veui-theme-dls/components/dialog.less
Expand Up @@ -8,6 +8,8 @@
&-box {
.fixed(0);
display: flex;
justify-content: center;
align-items: center;

&:not(&-mask) {
pointer-events: none;
Expand All @@ -28,7 +30,6 @@
flex-direction: column;
background: @dls-dialog-background-color;
padding-bottom: @dls-dialog-padding-y;
.veui-position-center();
max-height: @dls-dialog-max-height;
overflow-y: auto;
outline: none;
Expand Down Expand Up @@ -164,6 +165,6 @@

.@{veui-prefix}-overlay-enter &-content,
.@{veui-prefix}-overlay-leave-to &-content {
transform: translate(50%, calc(50% - @transition-offset));
transform: translateY(-@transition-offset);
}
}
3 changes: 2 additions & 1 deletion packages/veui/src/components/Dialog.vue
Expand Up @@ -20,7 +20,8 @@
@afterclose="handleAfterClose"
>
<div
v-drag.translate="{
ref="content"
v-drag:content.translate="{
disabled: !draggable,
containment: '@window',
handle: 'head',
Expand Down

1 comment on commit 5784a59

@vercel
Copy link

@vercel vercel bot commented on 5784a59 Jul 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.