|
|
|
@ -20,7 +20,7 @@ if (!vModel.value.meta?.precision) vModel.value.meta.precision = precisions[0].i
|
|
|
|
|
<template> |
|
|
|
|
<div class="flex flex-col mt-2 gap-2"> |
|
|
|
|
<div class="flex flex-row space-x-2"> |
|
|
|
|
<a-form-item class="flex w-1/2" label="Precision"> |
|
|
|
|
<a-form-item class="flex w-1/2" :label="$t('placeholder.precision')"> |
|
|
|
|
<a-select v-model:value="vModel.meta.precision" dropdown-class-name="nc-dropdown-precision"> |
|
|
|
|
<a-select-option v-for="(precision, i) of precisions" :key="i" :value="precision.id"> |
|
|
|
|
<div class="flex flex-row items-center"> |
|
|
|
@ -31,15 +31,15 @@ if (!vModel.value.meta?.precision) vModel.value.meta.precision = precisions[0].i
|
|
|
|
|
</a-select-option> |
|
|
|
|
</a-select> |
|
|
|
|
</a-form-item> |
|
|
|
|
<a-form-item label="Default Number (%)"> |
|
|
|
|
<a-input v-model:value="vModel.meta.default" name="default" type="number" /> |
|
|
|
|
<a-form-item :label="$t('labels.defaultNumberPercent')"> |
|
|
|
|
<a-input v-model:value="vModel.meta.default" :name="$t('labels.default')" type="number" /> |
|
|
|
|
</a-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div class="flex flex-row mt-2"> |
|
|
|
|
<a-form-item> |
|
|
|
|
<div class="flex flex-row space-x-2 items-center"> |
|
|
|
|
<a-switch v-model:checked="vModel.meta.negative" name="negative" /> |
|
|
|
|
<div class="text-xs">Allow negative numbers</div> |
|
|
|
|
<a-switch v-model:checked="vModel.meta.negative" :name="$t('labels.negative')" /> |
|
|
|
|
<div class="text-xs">{{ $t('placeholder.allowNegativeNumbers') }}</div> |
|
|
|
|
</div> |
|
|
|
|
</a-form-item> |
|
|
|
|
</div> |
|
|
|
|