File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 3
3
<td >
4
4
<slot name =" checkbox" />
5
5
</td >
6
- <td v-for =" {field: column} in columns " :key =" column" >
6
+ <td v-for =" {field: column} in resultColumns " :key =" column" >
7
7
<template v-if =" column === ' _type' " >{{ doc[column] }}</template >
8
8
<template v-else >{{ renderValue(doc, column) }}</template >
9
9
</td >
26
26
27
27
<script setup lang="ts">
28
28
import { useTranslation } from ' ../../composables/i18n.ts'
29
- import { ref } from ' vue'
29
+ import { computed , ref } from ' vue'
30
30
import RowMenuAction from ' ../indices/RowMenuAction.vue'
31
31
import EditDocument from ' ./EditDocument.vue'
32
32
import { useSearchStore } from ' ../../store/search.ts'
33
33
34
- const props = defineProps <{ columns: any [], doc: any }>()
34
+ const props = defineProps <{ columns: any [], doc: Record < string , any > }>()
35
35
const emit = defineEmits ([' reload' ])
36
36
const t = useTranslation ()
37
37
38
38
const dropdown = ref (false )
39
39
const searchStore = useSearchStore ()
40
+ const resultColumns = computed (() => (props .columns .slice (0 , - 1 )))
40
41
41
42
const edit = ref (false )
42
43
const docInfo = () => ({ index: props .doc ._index , type: props .doc ._type , id: props .doc ._id })
Original file line number Diff line number Diff line change 51
51
:visible-columns =" searchStore.visibleColumns"
52
52
selection =" multiple"
53
53
@request =" onRequest" >
54
- <template #body =" {row } " >
55
- <search-result :columns =" slicedTableColumns " :doc =" row" @reload =" reload" >
54
+ <template #body =" {row , cols } " >
55
+ <search-result :columns =" cols " :doc =" row" @reload =" reload" >
56
56
<template #checkbox >
57
57
<q-checkbox v-model =" selectedItems" :val =" genDocStr(row)" size =" 32px"
58
58
@update:model-value =" setIndeterminate" />
You can’t perform that action at this time.
0 commit comments