Browse Source

enhancement: add icons to search list

pull/2163/head
Wing-Kam Wong 3 years ago
parent
commit
e90d6e718f
  1. 3
      packages/nc-gui/components/project/spreadsheet/RowsXcDataTable.vue
  2. 6
      packages/nc-gui/components/project/spreadsheet/mixins/spreadsheet.js

3
packages/nc-gui/components/project/spreadsheet/RowsXcDataTable.vue

@ -29,6 +29,9 @@
:key="col.column_name"
@click="searchField = col.title"
>
<v-icon color="grey darken-4" small class="mr-1">
{{ col.icon }}
</v-icon>
<span class="caption">{{ col.title }}</span>
</v-list-item>
</v-list>

6
packages/nc-gui/components/project/spreadsheet/mixins/spreadsheet.js

@ -1,4 +1,5 @@
import { isVirtualCol, filterOutSystemColumns } from 'nocodb-sdk'
import { getUIDTIcon } from '~/components/project/spreadsheet/helpers/uiTypes'
export default {
data: () => ({
@ -91,7 +92,10 @@ export default {
}, [])
},
availableRealColumns() {
return this.availableColumns && this.availableColumns.filter(c => !isVirtualCol(c))
return this.availableColumns && this.availableColumns.filter(c => !isVirtualCol(c)).map(c => ({
...c,
icon: getUIDTIcon(c.uidt)
}))
},
allColumns() {

Loading…
Cancel
Save