Form overhaul: Feature Form

This commit is contained in:
Stefan Zermatten
2023-05-16 20:54:38 +02:00
parent b65b4b4497
commit c8a53a0235

View File

@@ -1,12 +1,5 @@
<template lang="html"> <template lang="html">
<div class="feature-form"> <div class="feature-form">
<text-field
ref="focusFirst"
label="Name"
:value="model.name"
:error-messages="errors.name"
@change="change('name', ...arguments)"
/>
<inline-computation-field <inline-computation-field
label="Summary" label="Summary"
hint="This will appear in the feature card in the character sheet" hint="This will appear in the feature card in the character sheet"
@@ -25,23 +18,12 @@
$emit('change', {path: ['description', ...path], value, ack})" $emit('change', {path: ['description', ...path], value, ack})"
/> />
<smart-combobox
label="Tags" <form-sections
multiple v-if="$slots.default"
chips
deletable-chips
hint="Used to let slots find this property in a library, should otherwise be left blank"
:value="model.tags"
:error-messages="errors.tags"
@change="change('tags', ...arguments)"
/>
<form-section
v-if="$slots.children"
name="Children"
standalone
> >
<slot name="children" /> <slot />
</form-section> </form-sections>
</div> </div>
</template> </template>