mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
879 B
36 lines
879 B
<script setup lang="ts"> |
|
import type { ColumnType } from 'nocodb-sdk' |
|
import { isVirtualCol } from 'nocodb-sdk' |
|
import { ReadonlyInj, IsGroupByLabelInj } from '#imports' |
|
|
|
defineProps<{ |
|
column: ColumnType |
|
modelValue: any |
|
}>() |
|
|
|
provide(ReadonlyInj, ref(true)) |
|
provide(IsGroupByLabelInj, ref(true)) |
|
</script> |
|
|
|
<template> |
|
<div class="pointer-events-none"> |
|
<LazySmartsheetRow :row="{ row: { [column.title]: modelValue }, rowMeta: {} }"> |
|
<LazySmartsheetVirtualCell |
|
v-if="isVirtualCol(column)" |
|
:model-value="modelValue" |
|
class="!text-gray-600" |
|
:column="column" |
|
:read-only="true" |
|
/> |
|
|
|
<LazySmartsheetCell |
|
v-else |
|
:model-value="modelValue" |
|
class="!text-gray-600" |
|
:column="column" |
|
:edit-enabled="false" |
|
:read-only="true" |
|
/> |
|
</LazySmartsheetRow> |
|
</div> |
|
</template>
|
|
|