1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-25 00:46:46 +00:00
bramw_baserow/web-frontend/modules/database/components/view/grid/fields/FunctionalGridViewFieldNumber.vue
2021-10-05 11:31:44 +00:00

16 lines
336 B
Vue

<template functional>
<div
class="grid-view__cell"
:class="{
...(data.staticClass && {
[data.staticClass]: true,
}),
'cell-error': props.value === 'NaN',
}"
>
<div class="grid-field-number">
{{ props.value !== 'NaN' ? props.value : 'Invalid Number' }}
</div>
</div>
</template>