mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
fix: Base Control
Use input-class prop instead of background to set background color
This commit is contained in:
parent
0e5df61045
commit
3655451250
@ -28,7 +28,6 @@ export default {
|
||||
'size',
|
||||
'showLabel',
|
||||
'readOnly',
|
||||
'background',
|
||||
'autofocus'
|
||||
],
|
||||
inject: {
|
||||
@ -55,8 +54,7 @@ export default {
|
||||
let classes = [
|
||||
{
|
||||
'px-3 py-2': this.size !== 'small',
|
||||
'px-2 py-1': this.size === 'small',
|
||||
'bg-gray-100': this.background
|
||||
'px-2 py-1': this.size === 'small'
|
||||
},
|
||||
'focus:outline-none focus:bg-gray-200 rounded w-full text-gray-900 placeholder-gray-400'
|
||||
];
|
||||
|
@ -28,7 +28,7 @@
|
||||
<div class="w-24">
|
||||
<FormControl
|
||||
size="small"
|
||||
:background="true"
|
||||
input-class="bg-gray-100"
|
||||
:df="{
|
||||
placeholder: 'Field',
|
||||
fieldname: 'fieldname',
|
||||
@ -42,7 +42,7 @@
|
||||
<div class="ml-2 w-24">
|
||||
<FormControl
|
||||
size="small"
|
||||
:background="true"
|
||||
input-class="bg-gray-100"
|
||||
:df="{
|
||||
placeholder: 'Condition',
|
||||
fieldname: 'condition',
|
||||
@ -56,7 +56,7 @@
|
||||
<div class="ml-2 w-24">
|
||||
<FormControl
|
||||
size="small"
|
||||
:background="true"
|
||||
input-class="bg-gray-100"
|
||||
:df="{
|
||||
placeholder: 'Value',
|
||||
fieldname: 'value',
|
||||
|
@ -14,7 +14,7 @@
|
||||
>
|
||||
<FormControl
|
||||
size="small"
|
||||
:background="true"
|
||||
input-class="bg-gray-100"
|
||||
:df="df"
|
||||
:value="filters[df.fieldname]"
|
||||
@change="value => onFilterChange(df, value)"
|
||||
|
Loading…
Reference in New Issue
Block a user