@mixd-id/web-scaffold 0.1.230406320 → 0.1.230406321
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -92,7 +92,8 @@ export default {
|
|
|
92
92
|
const transitionEnd = () => {
|
|
93
93
|
window.addEventListener('click', this.onDismiss)
|
|
94
94
|
window.addEventListener('scroll', this.onDismiss)
|
|
95
|
-
|
|
95
|
+
if(this.$refs.contextMenu)
|
|
96
|
+
this.$refs.contextMenu.removeEventListener('transitionend', transitionEnd)
|
|
96
97
|
this.$emit('open')
|
|
97
98
|
}
|
|
98
99
|
|
|
@@ -200,6 +201,12 @@ export default {
|
|
|
200
201
|
transformOrigin = 'bottom right'
|
|
201
202
|
break
|
|
202
203
|
|
|
204
|
+
case 'right':
|
|
205
|
+
left = Math.round(rect.x + rect.width)
|
|
206
|
+
top = Math.round(rect.y - 1)
|
|
207
|
+
transformOrigin = 'top left'
|
|
208
|
+
break
|
|
209
|
+
|
|
203
210
|
default:
|
|
204
211
|
left = Math.round(rect.x)
|
|
205
212
|
top = Math.round(rect.y + rect.height + 8)
|
package/src/components/Toast.vue
CHANGED