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.
26 lines
588 B
26 lines
588 B
6 months ago
|
<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>
|