Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Motion Bank
MB.js
Quasar Components MoSys
Commits
9a475ee3
Commit
9a475ee3
authored
May 20, 2020
by
christianrhansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set background-size via select
parent
5a8a653c
Pipeline
#59810
passed with stage
in 1 minute and 23 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
27 deletions
+10
-27
partials/CellStyleEditor.vue
partials/CellStyleEditor.vue
+10
-27
No files found.
partials/CellStyleEditor.vue
View file @
9a475ee3
...
...
@@ -23,20 +23,14 @@
q-item-main.bg-grey-9.q-py-sm(style="border-radius: .15rem;")
//
q-tooltip.z-max.shadow-6.bg-grey-9(anchor="center left", self="center right", :offset="[8, 0]",
style="border: 1px solid rgba(255,255,255,0.1);") Fit image to cell
q-tooltip.z-max.shadow-6.bg-grey-9(anchor="center left", self="center right", :offset="[8, 0]",
style="border: 1px solid rgba(255,255,255,0.1);") Fit image to cell
q-item-tile.q-px-md
q-select(
v-model="test",
:options="selectOptions")
q-checkbox.full-width.q-py-sm(
dark,
v-model="cell.configuration._value.backgroundSize",
label="Fit image to cell
",
@input="value => setCssAttribute('backgroundSize',
'contain'
)")
:options="css.backgroundSizes
",
@input="value => setCssAttribute('backgroundSize',
value
)")
</
template
>
...
...
@@ -46,30 +40,19 @@
props
:
[
'
cell
'
,
'
annotation
'
],
data
()
{
return
{
selectOptions
:
[
{
label
:
'
Google
'
,
value
:
'
goog
'
},
{
label
:
'
Facebook
'
,
value
:
'
fb
'
}
],
test
:
'
goog
'
,
updatedCell
:
undefined
,
model
:
{
backgroundPosition
:
undefined
,
backgroundSize
:
false
},
css
:
{
backgroundPositions
:
[
'
top left
'
,
'
top
'
,
'
top right
'
,
'
left
'
,
'
center
'
,
'
right
'
,
'
bottom left
'
,
'
bottom
'
,
'
bottom right
'
]
backgroundPositions
:
[
'
top left
'
,
'
top
'
,
'
top right
'
,
'
left
'
,
'
center
'
,
'
right
'
,
'
bottom left
'
,
'
bottom
'
,
'
bottom right
'
],
backgroundSizes
:
[
{
label
:
'
Contain
'
,
value
:
'
contain
'
},
{
label
:
'
Cover
'
,
value
:
'
cover
'
},
{
label
:
'
Unset
'
,
value
:
'
unset
'
}
]
},
backgroundSizes
:
[
{
label
:
'
Contain
'
,
value
:
'
contain
'
},
{
label
:
'
Cover
'
,
value
:
'
cover
'
},
{
label
:
'
None
'
,
value
:
'
none
'
}
],
cssAttributes
:
{
backgroundSize
:
'
background-size
'
,
backgroundPosition
:
'
background-position
'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment