mirror of
https://github.com/frappe/books.git
synced 2024-11-12 16:36:27 +00:00
fix: text left for two column forms
This commit is contained in:
parent
9592ec4bc7
commit
fef2016b6a
@ -39,6 +39,7 @@ export default {
|
||||
size: String,
|
||||
showLabel: Boolean,
|
||||
autofocus: Boolean,
|
||||
textRight: { type: [null, Boolean], default: null },
|
||||
readOnly: { type: [null, Boolean], default: null },
|
||||
required: { type: [null, Boolean], default: null },
|
||||
},
|
||||
@ -78,7 +79,7 @@ export default {
|
||||
'placeholder-gray-500',
|
||||
];
|
||||
|
||||
if (isNumeric(this.df)) {
|
||||
if (this.textRight ?? isNumeric(this.df)) {
|
||||
classes.push('text-right');
|
||||
}
|
||||
|
||||
|
@ -81,6 +81,7 @@
|
||||
:value="getRegularValue(df)"
|
||||
:class="{ 'p-2': df.fieldtype === 'Check' }"
|
||||
:read-only="readOnly"
|
||||
:text-right="false"
|
||||
@change="async (value) => await onChange(df, value)"
|
||||
@focus="activateInlineEditing(df)"
|
||||
@new-doc="async (newdoc) => await onChange(df, newdoc.name)"
|
||||
|
Loading…
Reference in New Issue
Block a user