@thinkpixellab-public/px-vue 3.0.13 → 3.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -29,22 +29,22 @@ export default {
|
|
|
29
29
|
}, this.resizeDebounceValue)
|
|
30
30
|
: null;
|
|
31
31
|
|
|
32
|
-
const resizeFn =
|
|
32
|
+
const resizeFn = () => {
|
|
33
33
|
// debounced version
|
|
34
34
|
if (resizeDebouncedFn) {
|
|
35
35
|
if (!this.resizing) {
|
|
36
36
|
this.resizing = true;
|
|
37
37
|
if (this.resizeStarted) {
|
|
38
|
-
this.resizeStarted(
|
|
38
|
+
this.resizeStarted();
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
resizeDebouncedFn(
|
|
41
|
+
resizeDebouncedFn();
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
// regular version
|
|
45
45
|
else {
|
|
46
46
|
if (this.resize) {
|
|
47
|
-
this.resize(
|
|
47
|
+
this.resize();
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
};
|
package/components/PxContain.vue
CHANGED
package/components/PxFloat.vue
CHANGED
|
@@ -487,12 +487,14 @@ export default {
|
|
|
487
487
|
if (typeof reference == 'string') {
|
|
488
488
|
// previous sibling
|
|
489
489
|
if (reference == 'previous') {
|
|
490
|
-
reference = this.$el.
|
|
490
|
+
reference = this.$el.previousElementSibling;
|
|
491
|
+
console.log(reference);
|
|
491
492
|
}
|
|
492
493
|
|
|
493
494
|
// next sibling
|
|
494
495
|
else if (reference == 'next') {
|
|
495
|
-
reference = this.$el.
|
|
496
|
+
reference = this.$el.nextElementSibling;
|
|
497
|
+
console.log(reference);
|
|
496
498
|
}
|
|
497
499
|
|
|
498
500
|
// selector
|
|
@@ -574,6 +576,20 @@ $d: 0.4s;
|
|
|
574
576
|
}
|
|
575
577
|
}
|
|
576
578
|
|
|
579
|
+
&--menu & {
|
|
580
|
+
&__popup {
|
|
581
|
+
display: flex;
|
|
582
|
+
flex-direction: column;
|
|
583
|
+
@include css-map(
|
|
584
|
+
popup(
|
|
585
|
+
(
|
|
586
|
+
padding: 0,
|
|
587
|
+
)
|
|
588
|
+
)
|
|
589
|
+
);
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
|
|
577
593
|
// sizes
|
|
578
594
|
|
|
579
595
|
&--sm & {
|
package/package.json
CHANGED
package/plugins/common.js
CHANGED
|
@@ -23,6 +23,9 @@ export default {
|
|
|
23
23
|
Vue.prototype.cssUrl = cssUrl;
|
|
24
24
|
|
|
25
25
|
// filters
|
|
26
|
+
// note: filters can be called as methods with something like
|
|
27
|
+
// this.$options.filters.slug('Make me a slug.');
|
|
28
|
+
|
|
26
29
|
Vue.filter('aspect', aspect);
|
|
27
30
|
Vue.filter('kebab', kebab);
|
|
28
31
|
Vue.filter('slug', slug);
|