Browse Source

chore/gui-v2-count-cell-added-icon-to-cell-header

pull/2949/head
Muhammed Mustafa 2 years ago
parent
commit
8020665e0a
  1. 3
      packages/nc-gui-v2/components/smartsheet-header/CellIcon.vue
  2. 2
      packages/nc-gui-v2/composables/useColumn.ts

3
packages/nc-gui-v2/components/smartsheet-header/CellIcon.vue

@ -6,6 +6,7 @@ import { useColumn } from '#imports'
import KeyIcon from '~icons/mdi/key-variant'
import JSONIcon from '~icons/mdi/code-json'
// import FKIcon from '~icons/mdi/link-variant'
import CountIcon from '~icons/mdi/counter'
import TextAreaIcon from '~icons/mdi/card-text-outline'
import StringIcon from '~icons/mdi/alpha-a-box-outline'
import BooleanIcon from '~icons/mdi/check-box-outline'
@ -56,6 +57,8 @@ const icon = computed(() => {
return DecimalIcon
} else if (additionalColMeta.isPhoneNumber) {
return FilePhoneIcon
} else if (additionalColMeta.isCount) {
return CountIcon
}
// else if(additionalColMeta.isForeignKey) {
// return FKIcon

2
packages/nc-gui-v2/composables/useColumn.ts

@ -34,6 +34,7 @@ export function useColumn(column: ColumnType) {
const isDecimal = uiDatatype === UITypes.Decimal
const isDuration = uiDatatype === UITypes.Duration
const isPercent = uiDatatype === UITypes.Percent
const isCount = uiDatatype === UITypes.Count
const isAutoSaved = [
UITypes.SingleLineText,
UITypes.LongText,
@ -66,6 +67,7 @@ export function useColumn(column: ColumnType) {
isEnum,
isSet,
isURL,
isCount,
isEmail,
isAttachment,
isRating,

Loading…
Cancel
Save