add: update & create load

This commit is contained in:
Alexandro Uc Santos
2023-12-12 19:04:12 -06:00
parent 1ffc3d8ed8
commit 292d125216
4 changed files with 150 additions and 63 deletions

View File

@@ -12,6 +12,11 @@
required: false,
default: true,
},
readonly: {
type: Boolean,
required: false,
default: false,
},
name: {
type: String,
required: true,
@@ -40,6 +45,8 @@
:id="name"
:name="name"
:value="field"
:disabled="readonly"
:readonly="readonly"
@input="$event => $emit('update:field', $event.target.value)">
<span class="help" v-if="helpText.length > 0">{{ helpText }}</span>
</div>