Заменил селекты на BaseSelect

This commit is contained in:
DwCay
2022-11-03 10:35:37 +03:00
parent 5ae67320d5
commit 0786baee42
8 changed files with 61 additions and 52 deletions

View File

@@ -21,12 +21,10 @@ export default {
return {
left: this.parentSize.left + "px",
top: this.parentSize.top + this.parentSize.height + "px",
minWidth: this.parentSize.width + "px",
};
},
},
mounted() {
console.log(this.parentSize);
},
};
</script>

View File

@@ -3,7 +3,7 @@
.placeholder.text-base {{ itemsMap[value] || placeholder }}
span.icon-down-arrow.open-icon(:class="{'open': open }")
base-menu(v-if="open")
.items-container(@click="open = false", @mouseleave="fasdfasd")
.items-container(@click="open = false", @mouseleave="leaveSelect")
.item(v-for="item in items", :key="item.id" @click="clickItem(item.id)") {{ item.label }}
</template>
@@ -49,13 +49,10 @@ export default {
clickItem(id) {
this.value = id;
},
fasdfasd() {
leaveSelect() {
this.open = false;
},
},
mounted() {
console.log(this.$.appContext.app._container);
},
};
</script>