mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 16:28:31 +00:00
Update the nuxt3 version. Co-authored-by: Jonathan Adeline <jonathan@baserow.io> Co-authored-by: Bram Wiepjes <bramw@protonmail.com> Co-authored-by: Cezary <cezary@baserow.io> Co-authored-by: Tsering Paljor <tsering@baserow.io> Co-authored-by: Przemyslaw Kukulski <przemyslaw+gh@baserow.io> Co-authored-by: Bram <bram2w@users.noreply.github.com>
39 lines
741 B
Vue
39 lines
741 B
Vue
<template>
|
|
<div
|
|
v-if="value !== null"
|
|
class="array-field__item"
|
|
:class="{ 'cell-error': value === 'NaN' }"
|
|
>
|
|
<div class="array-field__ellipsis">
|
|
{{
|
|
value === 'NaN'
|
|
? $t('fieldErrors.invalidNumber')
|
|
: formatFrontendNumber(field, value)
|
|
}}
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { formatDecimalNumber } from '@baserow/modules/database/utils/number'
|
|
|
|
export default {
|
|
name: 'FunctionalFormulaArrayNumberItem',
|
|
props: {
|
|
value: {
|
|
type: null,
|
|
default: null,
|
|
},
|
|
field: {
|
|
type: Object,
|
|
required: true,
|
|
},
|
|
},
|
|
methods: {
|
|
formatFrontendNumber(field, value) {
|
|
return formatDecimalNumber(field, value)
|
|
},
|
|
},
|
|
}
|
|
</script>
|