fix create form and fix origin
This commit is contained in:
@@ -15,9 +15,8 @@
|
||||
:popup-content-style="{height: candidates?.length > 3 ? '216px' : ''}"
|
||||
v-model="value"
|
||||
ref="selectRef"
|
||||
@blur="pasteFullName"
|
||||
)
|
||||
//template(#selected)
|
||||
// .text-dark.text-sm.font-medium(v-if="person") {{ person.last_name + ' ' + person.first_name + ' ' + person.patronymic }}
|
||||
template(v-slot:iconLeft)
|
||||
q-icon.search-icon(name="app:search", size="20px")
|
||||
template(v-slot:customOption="{props, data}")
|
||||
@@ -60,6 +59,7 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
pickedFullName() {
|
||||
if (!this.value.first_name) return "";
|
||||
return (
|
||||
this.value.last_name +
|
||||
" " +
|
||||
@@ -70,8 +70,8 @@ export default {
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
pickedFullName(val) {
|
||||
this.$refs?.selectRef?.updateInputValue(val, true);
|
||||
pickedFullName() {
|
||||
this.pasteFullName();
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
@@ -87,8 +87,10 @@ export default {
|
||||
});
|
||||
});
|
||||
},
|
||||
test(slotProps) {
|
||||
console.log(slotProps);
|
||||
pasteFullName() {
|
||||
this.$nextTick(() => {
|
||||
this.$refs?.selectRef?.updateInputValue(this.pickedFullName, true);
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user