2
0
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:
18alantom 2022-09-19 17:07:55 +05:30
parent 9592ec4bc7
commit fef2016b6a
2 changed files with 3 additions and 1 deletions

View File

@ -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');
}

View File

@ -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)"