Browse Source

Merge pull request #3783 from nocodb/fix/cell-icon

fix(nc-gui): cell icons & add duration icon
pull/3791/head
Raju Udava 2 years ago committed by GitHub
parent
commit
0edc917a49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      packages/nc-gui/components/smartsheet-header/CellIcon.vue

7
packages/nc-gui/components/smartsheet-header/CellIcon.vue

@ -11,8 +11,8 @@ import TextAreaIcon from '~icons/mdi/card-text-outline'
import StringIcon from '~icons/mdi/alpha-a-box-outline' import StringIcon from '~icons/mdi/alpha-a-box-outline'
import BooleanIcon from '~icons/mdi/check-box-outline' import BooleanIcon from '~icons/mdi/check-box-outline'
import CalendarIcon from '~icons/mdi/calendar' import CalendarIcon from '~icons/mdi/calendar'
import SingleSelectIcon from '~icons/mdi/radiobox-marked' import SingleSelectIcon from '~icons/mdi/arrow-down-drop-circle'
import MultiSelectIcon from '~icons/mdi/checkbox-multiple-marked' import MultiSelectIcon from '~icons/mdi/format-list-bulleted-square'
import DatetimeIcon from '~icons/mdi/calendar-clock' import DatetimeIcon from '~icons/mdi/calendar-clock'
import RatingIcon from '~icons/mdi/star' import RatingIcon from '~icons/mdi/star'
import GenericIcon from '~icons/mdi/square-rounded' import GenericIcon from '~icons/mdi/square-rounded'
@ -23,6 +23,7 @@ import CurrencyIcon from '~icons/mdi/currency-usd-circle-outline'
import PercentIcon from '~icons/mdi/percent-outline' import PercentIcon from '~icons/mdi/percent-outline'
import DecimalIcon from '~icons/mdi/decimal' import DecimalIcon from '~icons/mdi/decimal'
import SpecificDBTypeIcon from '~icons/mdi/database-settings' import SpecificDBTypeIcon from '~icons/mdi/database-settings'
import DurationIcon from '~icons/mdi/timer-outline'
const props = defineProps<{ columnMeta?: ColumnType }>() const props = defineProps<{ columnMeta?: ColumnType }>()
@ -66,6 +67,8 @@ const icon = computed(() => {
return WebIcon return WebIcon
} else if (additionalColMeta.isCurrency.value) { } else if (additionalColMeta.isCurrency.value) {
return CurrencyIcon return CurrencyIcon
} else if (additionalColMeta.isDuration.value) {
return DurationIcon
} else if (additionalColMeta.isPercent.value) { } else if (additionalColMeta.isPercent.value) {
return PercentIcon return PercentIcon
} else if (additionalColMeta.isInt.value || additionalColMeta.isFloat.value) { } else if (additionalColMeta.isInt.value || additionalColMeta.isFloat.value) {

Loading…
Cancel
Save