mirror of https://github.com/nocodb/nocodb
Browse Source
* feat: display number/decimal value according to locale format * fix: thousands separator text --------- Co-authored-by: Raju Udava <86527202+dstala@users.noreply.github.com>pull/8640/head
Ramesh Mane
6 months ago
committed by
GitHub
6 changed files with 47 additions and 6 deletions
@ -0,0 +1,25 @@
|
||||
<script setup lang="ts"> |
||||
const props = defineProps<{ |
||||
value: any |
||||
}>() |
||||
|
||||
const emit = defineEmits(['update:value']) |
||||
|
||||
const vModel = useVModel(props, 'value', emit) |
||||
|
||||
// set default value |
||||
vModel.value.meta = { |
||||
isLocaleString: false, |
||||
...(vModel.value.meta || {}), |
||||
} |
||||
</script> |
||||
|
||||
<template> |
||||
<a-form-item> |
||||
<div class="flex items-center gap-1"> |
||||
<NcSwitch v-if="vModel.meta" v-model:checked="vModel.meta.isLocaleString"> |
||||
<div class="text-sm text-gray-800 select-none">{{ $t('labels.showThousandsSeparator') }}</div> |
||||
</NcSwitch> |
||||
</div> |
||||
</a-form-item> |
||||
</template> |
Loading…
Reference in new issue