mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
@@ -52,9 +52,8 @@
|
||||
<div class="field half" v-if="fieldData.schema">
|
||||
<div class="label type-label">{{ $t('precision_scale') }}</div>
|
||||
<div class="precision-scale">
|
||||
<v-input type="number" :placeholder="10" v-model="fieldData.schema.precision" />
|
||||
|
||||
<v-input type="number" :placeholder="5" v-model="fieldData.schema.scale" />
|
||||
<v-input type="number" :placeholder="10" v-model="fieldData.schema.numeric_precision" />
|
||||
<v-input type="number" :placeholder="5" v-model="fieldData.schema.numeric_scale" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -129,13 +128,7 @@
|
||||
},
|
||||
]"
|
||||
/>
|
||||
<v-input
|
||||
v-else
|
||||
class="monospace"
|
||||
v-model="defaultValue"
|
||||
disabled
|
||||
:placeholder="$t('add_a_default_value')"
|
||||
/>
|
||||
<v-input v-else class="monospace" v-model="defaultValue" disabled :placeholder="$t('add_a_default_value')" />
|
||||
</div>
|
||||
|
||||
<div class="field half-left" v-if="fieldData.schema">
|
||||
|
||||
@@ -37,8 +37,8 @@ function initLocalStore(collection: string, field: string, type: typeof localTyp
|
||||
default_value: undefined,
|
||||
max_length: undefined,
|
||||
is_nullable: true,
|
||||
precision: null,
|
||||
scale: null,
|
||||
numeric_precision: null,
|
||||
numeric_scale: null,
|
||||
},
|
||||
meta: {
|
||||
hidden: false,
|
||||
|
||||
Reference in New Issue
Block a user