This commit is contained in:
parent
703ede9ba5
commit
5351ef0172
|
@ -303,17 +303,16 @@ const resetField = (fieldId: string) => {
|
||||||
</attachment-input>
|
</attachment-input>
|
||||||
</template>
|
</template>
|
||||||
<template v-else-if="fieldConfig.type === 'tags'">
|
<template v-else-if="fieldConfig.type === 'tags'">
|
||||||
<!-- TODO: Make Tags work -->
|
|
||||||
<Pills
|
<Pills
|
||||||
:id="fieldConfig.id"
|
:id="fieldConfig.id"
|
||||||
ref="tags"
|
|
||||||
:get="model => { values[fieldConfig.id] = model.currents.map(({ label }) => label) }"
|
:get="model => { values[fieldConfig.id] = model.currents.map(({ label }) => label) }"
|
||||||
:set="model => ({
|
:set="model => ({
|
||||||
...model,
|
...model,
|
||||||
|
others: [],
|
||||||
currents: (values[fieldConfig.id] as string[]).map(tag => ({ type: 'custom' as const, label: tag })),
|
currents: (values[fieldConfig.id] as string[]).map(tag => ({ type: 'custom' as const, label: tag })),
|
||||||
})"
|
})"
|
||||||
:label="fieldConfig.label"
|
:label="fieldConfig.label"
|
||||||
required="fieldConfig.required"
|
:required="fieldConfig.required"
|
||||||
>
|
>
|
||||||
<Button
|
<Button
|
||||||
icon="bi-x"
|
icon="bi-x"
|
||||||
|
|
Loading…
Reference in New Issue