WIP Изменила BaseAddingNetwork

This commit is contained in:
Daria Golova
2023-02-21 19:05:12 +03:00
parent 6c1f1279b2
commit 2f2c331189
8 changed files with 212 additions and 164 deletions

View File

@@ -13,7 +13,19 @@
map-options
)
template(v-slot:selected)
span {{ textSelect }}
span(v-if="!value.icon") {{ textSelect }}
q-icon(
v-else,
:name="iconSelect",
size="20px"
)
template(
v-slot:option="scope",
v-if="value.icon"
)
q-item(v-bind="scope.itemProps", style="justify-content: center")
q-item-section(avatar, style="padding: 0px; min-width: 0px")
q-icon(:name="scope.opt.icon", size="20px")
</template>
<script>
@@ -55,6 +67,9 @@ export default {
textSelect() {
return this.value.label ? this.value.label : this.placeholder;
},
iconSelect() {
return this.value?.icon ? this.value.icon : this.placeholder;
},
},
};
</script>