2
0
mirror of https://github.com/frappe/books.git synced 2024-09-20 11:29:00 +00:00

fix: Render defaults fields in TwoColumnForm

This commit is contained in:
Faris Ansari 2020-02-03 19:08:15 +05:30
parent 09fe18af5a
commit b346a61eb9

View File

@ -1,6 +1,6 @@
<template>
<div class="text-sm" :class="{ 'border-t': !noBorder }">
<template v-for="df in fields">
<template v-for="df in formFields">
<FormControl
:key="df.fieldname"
v-if="df.fieldtype === 'Table'"
@ -193,6 +193,9 @@ let TwoColumnForm = {
}
},
computed: {
formFields() {
return this.fields || this.doc.meta.getQuickEditFields();
},
style() {
let templateColumns = (this.columnRatio || [1, 1])
.map(r => `${r}fr`)