@afeefa/vue-app 0.0.109 → 0.0.110
Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.110
|
package/package.json
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
<template #activator="{ on }">
|
15
15
|
<div
|
16
16
|
style="width: max-content;"
|
17
|
-
:class="
|
17
|
+
:class="activatorClass"
|
18
18
|
v-on="on"
|
19
19
|
>
|
20
20
|
<slot name="activator" />
|
@@ -56,7 +56,7 @@ import { ComponentWidthMixin } from './mixins/ComponentWidthMixin'
|
|
56
56
|
import { CancelOnEscMixin } from '@a-vue/services/escape/CancelOnEscMixin'
|
57
57
|
|
58
58
|
@Component({
|
59
|
-
props: ['show', 'icon', 'title', 'beforeClose', '
|
59
|
+
props: ['show', 'icon', 'title', 'beforeClose', 'anchorPosition', 'screenCentered']
|
60
60
|
})
|
61
61
|
export default class ADialog extends Mixins(UsesPositionServiceMixin, ComponentWidthMixin, CancelOnEscMixin) {
|
62
62
|
modalId = randomCssClass(10)
|
@@ -121,7 +121,9 @@ export default class ADialog extends Mixins(UsesPositionServiceMixin, ComponentW
|
|
121
121
|
@Watch('modal')
|
122
122
|
modalChanged () {
|
123
123
|
if (this.modal) {
|
124
|
-
this.
|
124
|
+
if (!this.screenCentered) {
|
125
|
+
this.setPosition()
|
126
|
+
}
|
125
127
|
} else {
|
126
128
|
this.removeTransientAnchor()
|
127
129
|
}
|
@@ -204,13 +206,12 @@ export default class ADialog extends Mixins(UsesPositionServiceMixin, ComponentW
|
|
204
206
|
|
205
207
|
:deep(.v-dialog) {
|
206
208
|
position: absolute;
|
207
|
-
top: 0;
|
208
|
-
left: 0;
|
209
209
|
margin: 0;
|
210
210
|
|
211
211
|
transition: none;
|
212
212
|
|
213
213
|
&.v-fade-transition {
|
214
|
+
|
214
215
|
&-enter-active, &-leave, &-leave-to {
|
215
216
|
transition: opacity .3s ease;
|
216
217
|
}
|
package/src-admin/bootstrap.js
CHANGED