mirror of
https://github.com/frappe/books.git
synced 2024-11-10 15:50:56 +00:00
fix: Render defaults fields in TwoColumnForm
This commit is contained in:
parent
09fe18af5a
commit
b346a61eb9
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="text-sm" :class="{ 'border-t': !noBorder }">
|
<div class="text-sm" :class="{ 'border-t': !noBorder }">
|
||||||
<template v-for="df in fields">
|
<template v-for="df in formFields">
|
||||||
<FormControl
|
<FormControl
|
||||||
:key="df.fieldname"
|
:key="df.fieldname"
|
||||||
v-if="df.fieldtype === 'Table'"
|
v-if="df.fieldtype === 'Table'"
|
||||||
@ -193,6 +193,9 @@ let TwoColumnForm = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
formFields() {
|
||||||
|
return this.fields || this.doc.meta.getQuickEditFields();
|
||||||
|
},
|
||||||
style() {
|
style() {
|
||||||
let templateColumns = (this.columnRatio || [1, 1])
|
let templateColumns = (this.columnRatio || [1, 1])
|
||||||
.map(r => `${r}fr`)
|
.map(r => `${r}fr`)
|
||||||
|
Loading…
Reference in New Issue
Block a user