Form overhaul: Constant Form
This commit is contained in:
@@ -1,12 +1,7 @@
|
||||
<template lang="html">
|
||||
<div>
|
||||
<div class="layout wrap">
|
||||
<text-field
|
||||
label="Name"
|
||||
:value="model.name"
|
||||
:error-messages="errors.name"
|
||||
@change="change('name', ...arguments)"
|
||||
/>
|
||||
<v-row dense>
|
||||
<v-col cols="12">
|
||||
<text-field
|
||||
label="Variable name"
|
||||
:value="model.variableName"
|
||||
@@ -15,7 +10,8 @@
|
||||
:error-messages="errors.variableName"
|
||||
@change="change('variableName', ...arguments)"
|
||||
/>
|
||||
</div>
|
||||
</v-col>
|
||||
<v-col cols="12">
|
||||
<text-field
|
||||
label="Value"
|
||||
hint="Calculation of the constant value, use 'text' for a string value, [1,2,3] for a matrix, or 123 for a number"
|
||||
@@ -24,13 +20,13 @@
|
||||
@change="change('calculation', ...arguments)"
|
||||
/>
|
||||
<calculation-error-list :errors="clientErrors" />
|
||||
<form-section
|
||||
v-if="$slots.children"
|
||||
name="Children"
|
||||
standalone
|
||||
</v-col>
|
||||
</v-row>
|
||||
<form-sections
|
||||
v-if="$slots.default"
|
||||
>
|
||||
<slot name="children" />
|
||||
</form-section>
|
||||
<slot />
|
||||
</form-sections>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user