WIP Сделала сортировку

This commit is contained in:
Daria Golova
2023-05-03 17:08:20 +03:00
parent 8f6ddc3d8b
commit 669c6b8e53
3 changed files with 82 additions and 22 deletions

View File

@@ -14,7 +14,8 @@
dense,
:behavior="behavior",
emit-value,
map-options
map-options,
:clearable="clearable"
)
template(v-slot:selected)
span(v-if="!value?.icon") {{ textSelect }}
@@ -76,13 +77,9 @@ export default {
label: String,
readonly: Boolean,
width: String,
clearable: Boolean,
},
emits: ["update:modelValue"],
data() {
return {
open: false,
};
},
computed: {
value: {
get() {
@@ -93,6 +90,7 @@ export default {
},
},
textSelect() {
if (typeof this.modelValue === "string") return this.value;
return this.value?.label ? this.value.label : this.placeholder;
},
iconSelect() {
@@ -102,6 +100,8 @@ export default {
};
</script>
<style lang="sass">
.q-menu
font-feature-settings: 'pnum' on, 'lnum' on !important
.q-btn--outline:before, .q-field--outlined .q-field__control:before
border-width: 1px !important
.q-field__marginal