WIP Изменила BaseAddingNetwork
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user