Skip to content

Commit 4ad667a

Browse files
committed
Merge branch 'dev' of github.com:quasarframework/quasar into dev
2 parents 87ca435 + acc9939 commit 4ad667a

File tree

42 files changed

+5420
-5378
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+5420
-5378
lines changed

docs/src/examples/DomMorph/ImageGallery.vue renamed to docs/src/examples/MorphUtils/ImageGallery.vue

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<template>
22
<div class="q-pa-md">
33
<div
4-
class="fixed-full image-gallery__blinder bg-orange"
4+
class="fixed-full image-gallery__blinder bg-grey-8"
55
:class="indexZoomed !== void 0 ? 'image-gallery__blinder--active' : void 0"
66
@click="zoomImage()"
77
/>
88

99
<div
1010
class="row justify-center q-gutter-sm q-mx-auto scroll relative-position"
11-
style="max-width: 80vw; max-height: 80vh; z-index: 1"
11+
style="max-width: 80vw; max-height: 80vh"
1212
>
1313
<q-img
1414
v-for="(src, index) in images"
@@ -40,25 +40,27 @@
4040
width: 150px
4141
max-width: 20vw
4242
cursor: pointer
43-
z-index: 2
4443
4544
&-full
4645
width: 800px
4746
max-width: 70vw
48-
z-index: 1000
47+
z-index: 2002
4948
pointer-events: none
5049
5150
&--active
5251
pointer-events: all
5352
&__blinder
5453
opacity: 0
55-
z-index: 0
54+
z-index: 2000
5655
pointer-events: none
5756
transition: opacity 0.3s ease-in-out
5857
5958
&--active
60-
opacity: 0.2
59+
opacity: 0.6
6160
pointer-events: all
61+
62+
+ div > .image-gallery__image
63+
z-index: 2001
6264
</style>
6365

6466
<script>
@@ -122,7 +124,7 @@ export default {
122124
waitFor: this.imgLoaded.promise,
123125
duration: 400,
124126
hideFromClone: true,
125-
style: 'z-index: 1',
127+
style: 'z-index: 2002',
126128
onReady: end => {
127129
if (end === 'from' && this.indexZoomed === index) {
128130
this.indexZoomed = void 0
@@ -148,7 +150,7 @@ export default {
148150
{
149151
duration: 200,
150152
keepToClone: true,
151-
style: 'z-index: 1',
153+
style: 'z-index: 2002',
152154
onReady: zoom
153155
}
154156
)
File renamed without changes.
File renamed without changes.
File renamed without changes.

docs/src/pages/quasar-utils/morph-utils.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ If the `cancel` function is called after the end of the animation nothing will h
7272

7373
## Examples
7474

75-
<doc-example title="Morphing the same element" file="DomMorph/SameElement" />
75+
<doc-example title="Morphing the same element" file="MorphUtils/SameElement" />
7676

77-
<doc-example title="Morphing a QCard from a QFabAction" file="DomMorph/FabCard" />
77+
<doc-example title="Morphing a QCard from a QFabAction" file="MorphUtils/FabCard" />
7878

79-
<doc-example title="Image gallery " file="DomMorph/ImageGallery" />
79+
<doc-example title="Image gallery " file="MorphUtils/ImageGallery" />
8080

81-
<doc-example title="Horizontal image strip " file="DomMorph/ImageStripHorizontal" />
81+
<doc-example title="Horizontal image strip " file="MorphUtils/ImageStripHorizontal" />
8282

83-
<doc-example title="Vertical image strip " file="DomMorph/ImageStripVertical" />
83+
<doc-example title="Vertical image strip " file="MorphUtils/ImageStripVertical" />

extras/build/utils/index.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,19 @@ const decoders = {
118118
}
119119
}
120120

121+
function getAttributesAsStyle (el) {
122+
const exceptions = ['d', 'style', 'width', 'height', 'rx', 'ry', 'r', 'x', 'y', 'x1', 'y1', 'x2', 'y2', 'cx', 'cy', 'points', 'class', 'xmlns', 'viewBox', 'id', 'name', 'transform', 'data-name']
123+
let styleString = ''
124+
for(let i = 0; i < el.attributes.length; ++i) {
125+
const attr = el.attributes[i]
126+
if (exceptions.includes(attr.nodeName) !== true) {
127+
if (attr.nodeName === 'fill' && attr.nodeValue === 'currentColor') continue
128+
styleString += `${attr.nodeName}:${attr.nodeValue};`
129+
}
130+
}
131+
return styleString
132+
}
133+
121134
function parseDom (el, pathsDefinitions) {
122135
const type = el.nodeName
123136

@@ -135,7 +148,7 @@ function parseDom (el, pathsDefinitions) {
135148

136149
const paths = {
137150
path: decoders[type](el),
138-
style: el.getAttribute('style'),
151+
style: el.getAttribute('style') || getAttributesAsStyle(el),
139152
transform: el.getAttribute('transform')
140153
}
141154

extras/ionicons-v5/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)