Skip to content

Commit 3611bfb

Browse files
committed
fix(dialog-box): fix dialog wrapper animation is not working (#3636)
1 parent 7284629 commit 3611bfb

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

packages/theme-saas/src/dialog-box/index.less

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,6 @@
155155
@apply top-0;
156156
@apply w-full;
157157
@apply h-full;
158-
@apply opacity-30;
159-
@apply bg-black;
160158
}
161159

162160
.v-modal-enter {
@@ -231,24 +229,20 @@
231229

232230
@keyframes dialog-fade-in {
233231
0% {
234-
transform: translate3d(0, -20px, 0);
235232
@apply opacity-0;
236233
}
237234

238235
100% {
239-
transform: translate3d(0, 0, 0);
240236
@apply opacity-100;
241237
}
242238
}
243239

244240
@keyframes dialog-fade-out {
245241
0% {
246-
transform: translate3d(0, 0, 0);
247242
@apply opacity-100;
248243
}
249244

250245
100% {
251-
transform: translate3d(0, -20px, 0);
252246
@apply opacity-0;
253247
}
254248
}

packages/theme/src/dialog-box/index.less

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@
3535
margin: 0;
3636
display: block;
3737
align-items: normal;
38+
39+
&.is-modal {
40+
background: var(--tv-DialogBox-mask-bg-color);
41+
}
3842
}
3943

4044
&.is-fullscreen {
@@ -205,7 +209,6 @@
205209
top: 0;
206210
width: 100%;
207211
height: 100%;
208-
background: var(--tv-DialogBox-mask-bg-color);
209212
}
210213

211214
.v-modal-enter {
@@ -283,24 +286,20 @@
283286

284287
@keyframes dialog-fade-in {
285288
0% {
286-
transform: translate3d(0, -20px, 0);
287289
opacity: 0;
288290
}
289291

290292
100% {
291-
transform: translate3d(0, 0, 0);
292293
opacity: 1;
293294
}
294295
}
295296

296297
@keyframes dialog-fade-out {
297298
0% {
298-
transform: translate3d(0, 0, 0);
299299
opacity: 1;
300300
}
301301

302302
100% {
303-
transform: translate3d(0, -20px, 0);
304303
opacity: 0;
305304
}
306305
}

packages/vue/src/dialog-box/src/pc.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
>
1919
<div
2020
v-show="visible"
21-
:class="['tiny-dialog-box__wrapper', dialogClass]"
21+
:class="['tiny-dialog-box__wrapper', dialogClass, { 'is-modal': modal }]"
2222
@click.self="handleWrapperClick"
2323
@mouseup="useMouseEventUp"
2424
@mousedown="useMouseEventDown"

0 commit comments

Comments
 (0)