WIP Поправила форму создания, заменила селекты

This commit is contained in:
Daria Golova
2022-11-14 18:39:48 +03:00
parent 91bc4db2de
commit 558795a8b7
7 changed files with 240 additions and 144 deletions

View File

@@ -0,0 +1,31 @@
<template lang="pug">
.base-options(:style="styles")
slot
</template>
<script>
export default {
name: "BaseOptions",
computed: {
parent() {
return this.$parent.$el;
},
parentSize() {
return this.parent?.getBoundingClientRect();
},
styles() {
return {
top: this.parentSize.height + "px",
left: "-1px",
minWidth: this.parentSize.width + "px",
};
},
},
};
</script>
<style scoped lang="sass">
.base-options
position: absolute
z-index: 10
</style>