Browse Source

feat(gui-v2): colored primary value

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/3172/head
mertmit 2 years ago
parent
commit
aa9ff45d50
  1. 5
      packages/nc-gui-v2/components/smartsheet/Cell.vue

5
packages/nc-gui-v2/components/smartsheet/Cell.vue

@ -54,6 +54,10 @@ const isManualSaved = $computed(() => {
return [UITypes.Currency, UITypes.Duration].includes(column?.value?.uidt as UITypes)
})
const isPrimary = computed(() => {
return column?.value?.pv
})
const vModel = computed({
get: () => props.modelValue,
set: (val) => {
@ -108,6 +112,7 @@ const syncAndNavigate = (dir: NavigateDir) => {
<template>
<div
class="nc-cell w-full h-full"
:class="{ 'text-blue-600': isPrimary }"
@keydown.stop.left
@keydown.stop.right
@keydown.stop.up

Loading…
Cancel
Save