feat: เพิ่มค้นหาตรงตัวในสโตร์ search
This commit is contained in:
parent
6c66defb89
commit
4fb92cb422
1 changed files with 4 additions and 0 deletions
|
|
@ -11,6 +11,7 @@ export interface AdvancedSearch {
|
|||
op: 'AND' | 'OR'
|
||||
field: 'title' | 'keyword'
|
||||
value: string
|
||||
exact: boolean
|
||||
}
|
||||
|
||||
export interface AdvancedSearchFields {
|
||||
|
|
@ -22,6 +23,7 @@ export const useSearchDataStore = defineStore('searched', () => {
|
|||
const foundFile = ref<StorageFile[]>([])
|
||||
const isAdvSearchCall = ref<boolean>(false)
|
||||
const isSearch = ref<Boolean>(false)
|
||||
const isExact = ref<boolean>(false)
|
||||
const isActFoundFile = ref<Boolean>(false)
|
||||
const searchData = ref<Search>({
|
||||
field: 'title',
|
||||
|
|
@ -32,6 +34,7 @@ export const useSearchDataStore = defineStore('searched', () => {
|
|||
op: 'AND',
|
||||
field: 'title',
|
||||
value: '',
|
||||
exact: false,
|
||||
},
|
||||
])
|
||||
const advSearchDataField = ref<AdvancedSearchFields>({
|
||||
|
|
@ -46,6 +49,7 @@ export const useSearchDataStore = defineStore('searched', () => {
|
|||
return {
|
||||
foundFile,
|
||||
isSearch,
|
||||
isExact,
|
||||
isAdvSearchCall,
|
||||
isActFoundFile,
|
||||
searchData,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue