Последняя версия с сервера прошлого разработчика

This commit is contained in:
2025-07-10 04:35:51 +00:00
commit c731570032
1174 changed files with 134314 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
<template>
<div
ref="menu"
:style="styles"
class="select-none overflow-hidden bg-white border border-60 shadow rounded-lg"
>
<slot />
</div>
</template>
<script>
export default {
props: {
width: {
default: 120,
},
},
mounted() {
// If we recieve a click event from an anchor or button element, let's make sure
// and close the dropdown's menu so it doesn't stay visible if we toggle a modal.
this.$refs.menu.addEventListener('click', event => {
if (event.target.tagName != 'A' && event.target.tagName != 'BUTTON') {
Nova.$emit('close-dropdowns')
}
})
},
computed: {
styles() {
return {
width: `${this.width}px`,
}
},
},
}
</script>