fix select input options (#550)
This commit is contained in:
parent
3d2d485512
commit
6d4b5b8ff4
|
|
@ -295,6 +295,7 @@
|
||||||
Advanced options for your select/multiselect fields.
|
Advanced options for your select/multiselect fields.
|
||||||
</p>
|
</p>
|
||||||
<text-area-input
|
<text-area-input
|
||||||
|
v-model="optionsText"
|
||||||
:name="field.id + '_options_text'"
|
:name="field.id + '_options_text'"
|
||||||
class="mt-3"
|
class="mt-3"
|
||||||
label="Set selection options"
|
label="Set selection options"
|
||||||
|
|
@ -658,6 +659,9 @@ export default {
|
||||||
mbLimit() {
|
mbLimit() {
|
||||||
return (this.form?.workspace && this.form?.workspace.max_file_size) ? this.form?.workspace?.max_file_size : 10
|
return (this.form?.workspace && this.form?.workspace.max_file_size) ? this.form?.workspace?.max_file_size : 10
|
||||||
},
|
},
|
||||||
|
optionsText() {
|
||||||
|
return this.field[this.field.type].options.map(option => option.name).join('\n')
|
||||||
|
},
|
||||||
prefillSelectsOptions() {
|
prefillSelectsOptions() {
|
||||||
if (!['select', 'multi_select'].includes(this.field.type)) return {}
|
if (!['select', 'multi_select'].includes(this.field.type)) return {}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue