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
5d965336
Commit
5d965336
authored
May 19, 2020
by
christianrhansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
preparing image cell for custom cell styling
parent
ccf9c97d
Pipeline
#59676
passed with stage
in 3 minutes and 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
partials/cells/CellImage.vue
partials/cells/CellImage.vue
+4
-7
No files found.
partials/cells/CellImage.vue
View file @
5d965336
...
...
@@ -5,16 +5,14 @@
template(v-if="display")
conditional-link.fit.text-center.relative-position.linked(v-if="link", :url="link")
.fit(:style="cellBg"
, :class="cell.stylesheet.value"
)
.fit(:style="cellBg")
q-btn.absolute-center.bg-primary.text-white(round, flat, size="sm")
q-icon(v-if="link", name="link")
// img(:src="imgSrc")
// img(v-else, :src="imgSrc")
.fit(v-else, :style="cellBg", :class="cell.stylesheet.value")
.fit(v-else, :style="cellBg")
template(v-else)
div.q-pa-sm.cell-background(:style="cellBg"
, :class="cell.stylesheet.value"
)
div.q-pa-sm.cell-background(:style="cellBg")
.absolute-top-left.q-pa-sm
cell-info(:cell="cell", type="Image Cell")
...
...
@@ -55,8 +53,7 @@
return
this
.
cell
.
source
.
_value
.
link
},
cellBg
()
{
// if (this.preview) return 'background-image: url(\'' + this.imgSrc + '\');'
return
'
background-image: url(
\'
'
+
this
.
imgSrc
+
'
\'
);
'
return
'
background-image: url(
\'
'
+
this
.
imgSrc
+
'
\'
);
'
+
this
.
cell
.
stylesheet
.
value
}
}
}
...
...
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