new update
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user