|
|
@ -3,6 +3,7 @@ import type { ColumnType, LinkToAnotherRecordType, RollupType } from 'nocodb-sdk |
|
|
|
import { |
|
|
|
import { |
|
|
|
CellValueInj, |
|
|
|
CellValueInj, |
|
|
|
ColumnInj, |
|
|
|
ColumnInj, |
|
|
|
|
|
|
|
IsExpandedFormOpenInj, |
|
|
|
MetaInj, |
|
|
|
MetaInj, |
|
|
|
computed, |
|
|
|
computed, |
|
|
|
inject, |
|
|
|
inject, |
|
|
@ -10,7 +11,6 @@ import { |
|
|
|
ref, |
|
|
|
ref, |
|
|
|
useMetas, |
|
|
|
useMetas, |
|
|
|
useShowNotEditableWarning, |
|
|
|
useShowNotEditableWarning, |
|
|
|
IsExpandedFormOpenInj, |
|
|
|
|
|
|
|
} from '#imports' |
|
|
|
} from '#imports' |
|
|
|
|
|
|
|
|
|
|
|
const { metas } = useMetas() |
|
|
|
const { metas } = useMetas() |
|
|
@ -54,7 +54,7 @@ const childColumn = computed(() => { |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div @dblclick="activateShowEditNonEditableFieldWarning" :class="isExpandedFormOpen ? 'px-2' : 'px-0'"> |
|
|
|
<div :class="isExpandedFormOpen ? 'px-2' : 'px-0'" @dblclick="activateShowEditNonEditableFieldWarning"> |
|
|
|
<div v-if="['count', 'avg', 'sum', 'countDistinct', 'sumDistinct', 'avgDistinct'].includes(colOptions.rollup_function)"> |
|
|
|
<div v-if="['count', 'avg', 'sum', 'countDistinct', 'sumDistinct', 'avgDistinct'].includes(colOptions.rollup_function)"> |
|
|
|
{{ value }} |
|
|
|
{{ value }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|