new update

This commit is contained in:
Luca Haid
2025-04-24 13:39:26 +02:00
parent adabe9a7a2
commit 4108eb99c9
22 changed files with 992 additions and 337 deletions
@@ -55,6 +55,7 @@ Vue.component('tt-positions-manager',
<template v-for="(field, key) in config.fields">
<template v-if="typeof field.showCondition === 'function' ? field.showCondition(formData) : true">
<slot :name="key" v-bind:field="field" v-bind:value="formData[key]">
<div :style="field.style ?? {}" :key="key + field.label">
<tt-input
v-if="field.type === 'input'"
:label="field.label"
@@ -96,6 +97,9 @@ Vue.component('tt-positions-manager',
v-model="formData[key]"
:options="field.options"
/>
<slot :name="key + '-prepend'" v-bind:field="field" v-bind:value="formData[key]"/>
</div>
</slot>
</template>
</template>