WIP настроил сохранение данных аддреса, добавил блок детальной информации Документов
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
<template lang="pug">
|
||||
.base-select(@click="open = !open", :class="{'open': open }")
|
||||
.placeholder.text-base {{ itemsMap[value] || placeholder }}
|
||||
.placeholder.text-base {{ value || placeholder }}
|
||||
span.icon-down-arrow.open-icon(:class="{'open': open }")
|
||||
base-menu(v-if="open")
|
||||
.items-container(@click="open = false", @mouseleave="leaveSelect")
|
||||
.item(v-for="item in items", :key="item.id" @click="clickItem(item.id)") {{ item.label }}
|
||||
.item(v-for="item in items", :key="item.id" @click="clickItem(item.label)") {{ item.label }}
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -35,15 +35,6 @@ export default {
|
||||
this.$emit("update:modelValue", value);
|
||||
},
|
||||
},
|
||||
itemsMap() {
|
||||
return this.items.reduce(
|
||||
(acc, item) => ({
|
||||
...acc,
|
||||
[item.id]: item.label,
|
||||
}),
|
||||
{}
|
||||
);
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
clickItem(id) {
|
||||
|
||||
Reference in New Issue
Block a user