@thinkpixellab-public/px-vue 4.0.21 → 4.0.22
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.
|
@@ -21,7 +21,7 @@ ar
|
|
|
21
21
|
<PxIconButton
|
|
22
22
|
v-if="!disabled && !arrowsHidden"
|
|
23
23
|
:class="[bem('button', { start: true, visible: arrowStartVisible }), buttonClass]"
|
|
24
|
-
:iconClass="
|
|
24
|
+
:iconClass="combineIconClasses(bem('arrow-icon'), iconClass)"
|
|
25
25
|
:icon="arrowStartIcon"
|
|
26
26
|
:disabled="!arrowStartVisible"
|
|
27
27
|
aria-label="Scroll to previous"
|
|
@@ -40,7 +40,7 @@ ar
|
|
|
40
40
|
<PxIconButton
|
|
41
41
|
v-if="!disabled && !arrowsHidden"
|
|
42
42
|
:class="[bem('button', { end: true, visible: arrowEndVisible }), buttonClass]"
|
|
43
|
-
:iconClass="
|
|
43
|
+
:iconClass="combineIconClasses(bem('arrow-icon'), iconClass)"
|
|
44
44
|
:icon="arrowEndIcon"
|
|
45
45
|
:disabled="!arrowEndVisible"
|
|
46
46
|
aria-label="Scroll to next"
|
|
@@ -139,6 +139,9 @@ export default {
|
|
|
139
139
|
},
|
|
140
140
|
|
|
141
141
|
methods: {
|
|
142
|
+
combineIconClasses(...classNames) {
|
|
143
|
+
return classNames.filter((c) => c).join(' ');
|
|
144
|
+
},
|
|
142
145
|
pxIconProps(attrs) {
|
|
143
146
|
return propsFilter(PxIcon)(attrs);
|
|
144
147
|
},
|