WIP Поправила форму создания, заменила селекты
This commit is contained in:
31
src/components/base/BaseOptions.vue
Normal file
31
src/components/base/BaseOptions.vue
Normal 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>
|
||||
Reference in New Issue
Block a user