mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-07 05:03:26 +08:00
Fix barcode button [SCI-8485]
This commit is contained in:
parent
2bbeef0775
commit
bbdb852377
1 changed files with 9 additions and 4 deletions
|
@ -1,9 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="flex items-center">
|
<div class="flex items-center mr-3 flex-nowrap">
|
||||||
<button v-if="!searchOpened" class="btn btn-light icon-btn" @click="openSearch">
|
<button v-if="!searchOpened" class="btn btn-light icon-btn" @click="openSearch">
|
||||||
<i class="fas fa-search"></i>
|
<i class="fas fa-search"></i>
|
||||||
</button>
|
</button>
|
||||||
<div v-if="searchOpened || barcodeSearchOpened" class="w-52">
|
<div v-if="searchOpened || barcodeSearchOpened" class="w-52 flex">
|
||||||
<div v-if="searchOpened" class="sci-input-container right-icon">
|
<div v-if="searchOpened" class="sci-input-container right-icon">
|
||||||
<input
|
<input
|
||||||
ref="searchInput"
|
ref="searchInput"
|
||||||
|
@ -82,12 +82,17 @@ export default {
|
||||||
},
|
},
|
||||||
closeBarcodeSearch() {
|
closeBarcodeSearch() {
|
||||||
if (this.barcodeValue.length == 0) {
|
if (this.barcodeValue.length == 0) {
|
||||||
this.barcodeSearchOpened = false;
|
setTimeout(() => {
|
||||||
|
this.barcodeSearchOpened = false;
|
||||||
|
}, 100);
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
closeSearch() {
|
closeSearch() {
|
||||||
if (this.value.length == 0) {
|
if (this.value.length == 0) {
|
||||||
this.searchOpened = false;
|
setTimeout(() => {
|
||||||
|
this.searchOpened = false;
|
||||||
|
}, 100);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
updateRepositoySearch() {
|
updateRepositoySearch() {
|
||||||
|
|
Loading…
Reference in a new issue