2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 07:40:55 +00:00

fix: Background prop in FormControl

This commit is contained in:
Faris Ansari 2019-11-22 00:37:27 +05:30
parent b0640930cf
commit f52ee12e66
2 changed files with 5 additions and 3 deletions

View File

@ -27,7 +27,8 @@ export default {
'placeholder',
'size',
'showLabel',
'readOnly'
'readOnly',
'background'
],
inject: {
doctype: {
@ -49,7 +50,8 @@ export default {
this.inputClass,
{
'px-3 py-2': this.size !== 'small',
'px-2 py-1': this.size === 'small'
'px-2 py-1': this.size === 'small',
'bg-gray-100': this.background
},
'focus:outline-none focus:bg-gray-200 rounded-5px w-full text-gray-900'
];

View File

@ -9,8 +9,8 @@
<div class="mt-6 flex text-base px-8" v-if="report.filterFields">
<div class="ml-3 first:ml-0 w-32" v-for="df in report.filterFields">
<FormControl
input-class="bg-gray-100"
size="small"
:background="true"
:df="df"
:value="filters[df.fieldname]"
@change="value => onFilterChange(df, value)"