Merge branch 'development'

This commit is contained in:
Methapon2001 2023-12-15 16:27:37 +07:00
commit 445c97cca0
No known key found for this signature in database
GPG key ID: 849924FEF46BD132
2 changed files with 6 additions and 7 deletions

View file

@ -21,13 +21,14 @@ const props = defineProps<{
AND: { AND: {
field: string field: string
value: string value: string
exact: boolean exact?: boolean
}[] }[]
OR: { OR: {
field: string field: string
value: string value: string
exact: boolean exact?: boolean
}[] }[]
exact?: boolean
} }
}>() }>()

View file

@ -31,11 +31,9 @@ const optionsField = [
{ label: 'หมวดหมู่ (category)', value: 'category' }, { label: 'หมวดหมู่ (category)', value: 'category' },
{ label: 'เนื้อหาในไฟล์ (content)', value: 'attachment.content' }, { label: 'เนื้อหาในไฟล์ (content)', value: 'attachment.content' },
] ]
const submitSearchData = ref<{ const submitSearchData = ref<
AND: { field: string; value: string; exact?: boolean }[] InstanceType<typeof AdvancedSearch>['submitSearchData']
OR: { field: string; value: string; exact?: boolean }[] >({
exact?: boolean
}>({
AND: [], AND: [],
OR: [], OR: [],
}) })