mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-01 16:27:03 +00:00
22 lines
501 B
Vue
22 lines
501 B
Vue
<script setup lang="ts">
|
|
interface Props {
|
|
modelValue: number | string | null | undefined
|
|
}
|
|
|
|
const props = defineProps<Props>()
|
|
|
|
const column = inject(ColumnInj)
|
|
|
|
const durationType = computed(() => parseProp(column?.value?.meta)?.duration || 0)
|
|
|
|
const localState = computed(() => {
|
|
return convertMS2Duration(props.modelValue, durationType.value)
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<div class="duration-cell-wrapper truncate">
|
|
<span class="nc-cell-field"> {{ localState }}</span>
|
|
</div>
|
|
</template>
|