Browse Source

fix: extract color prop from meta

pull/9660/head
Pranav C 1 month ago
parent
commit
81598faef5
  1. 5
      packages/nc-gui/components/cell/Checkbox.vue
  2. 2
      packages/nc-gui/components/cell/Rating.vue

5
packages/nc-gui/components/cell/Checkbox.vue

@ -38,11 +38,12 @@ const isSurveyForm = inject(IsSurveyFormInj, ref(false))
const isGrid = inject(IsGridInj, ref(false))
const checkboxMeta = computed(() => {
const icon = extractCheckboxIcon(column?.value?.meta);
const icon = extractCheckboxIcon(column?.value?.meta)
return {
icon,
color: 'primary',
...parseProp(column?.value?.meta),
icon,
}
})

2
packages/nc-gui/components/cell/Rating.vue

@ -18,10 +18,10 @@ const isExpandedFormOpen = inject(IsExpandedFormOpenInj, ref(false))!
const ratingMeta = computed(() => {
const icon = extractRatingIcon(column?.value?.meta)
return {
icon,
color: '#fcb401',
max: 5,
...parseProp(column.value?.meta),
icon,
}
})

Loading…
Cancel
Save