mirror of
https://github.com/frappe/books.git
synced 2025-02-08 23:18:31 +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,
|
size: String,
|
||||||
showLabel: Boolean,
|
showLabel: Boolean,
|
||||||
autofocus: Boolean,
|
autofocus: Boolean,
|
||||||
|
textRight: { type: [null, Boolean], default: null },
|
||||||
readOnly: { type: [null, Boolean], default: null },
|
readOnly: { type: [null, Boolean], default: null },
|
||||||
required: { type: [null, Boolean], default: null },
|
required: { type: [null, Boolean], default: null },
|
||||||
},
|
},
|
||||||
@ -78,7 +79,7 @@ export default {
|
|||||||
'placeholder-gray-500',
|
'placeholder-gray-500',
|
||||||
];
|
];
|
||||||
|
|
||||||
if (isNumeric(this.df)) {
|
if (this.textRight ?? isNumeric(this.df)) {
|
||||||
classes.push('text-right');
|
classes.push('text-right');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -81,6 +81,7 @@
|
|||||||
:value="getRegularValue(df)"
|
:value="getRegularValue(df)"
|
||||||
:class="{ 'p-2': df.fieldtype === 'Check' }"
|
:class="{ 'p-2': df.fieldtype === 'Check' }"
|
||||||
:read-only="readOnly"
|
:read-only="readOnly"
|
||||||
|
:text-right="false"
|
||||||
@change="async (value) => await onChange(df, value)"
|
@change="async (value) => await onChange(df, value)"
|
||||||
@focus="activateInlineEditing(df)"
|
@focus="activateInlineEditing(df)"
|
||||||
@new-doc="async (newdoc) => await onChange(df, newdoc.name)"
|
@new-doc="async (newdoc) => await onChange(df, newdoc.name)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user