@eturnity/eturnity_reusable_components 7.45.5-EPDM-10609.3 → 7.45.5-EPDM-10609.5
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.
package/package.json
CHANGED
@@ -83,7 +83,7 @@
|
|
83
83
|
) => (props.top ? props.top : 'calc(' + props.iconSize + ' + 5px)')};
|
84
84
|
${(props) =>
|
85
85
|
props.left
|
86
|
-
? 'left: ' + props.left
|
86
|
+
? 'left: ' + props.left + ' !important'
|
87
87
|
: props.alignArrow === 'left'
|
88
88
|
? 'left: calc(' + props.iconSize + ' /2 - 18px)'
|
89
89
|
: props.alignArrow === 'center'
|
@@ -260,15 +260,13 @@
|
|
260
260
|
const textOverlayTop =
|
261
261
|
iconImgTop - iconImgHeight / 2 + TEXT_OVERLAY_TOP_OFFSET
|
262
262
|
|
263
|
-
console.log(textOverlayTop)
|
264
|
-
|
265
263
|
return `${textOverlayTop}px`
|
266
264
|
},
|
267
265
|
getTextOverlayLeft() {
|
268
266
|
const iconImg = this.$refs.iconImg.$el
|
269
267
|
const iconImgLeft = iconImg.getBoundingClientRect().left
|
270
268
|
const iconImgWidth = iconImg.clientWidth
|
271
|
-
const textOverlayLeft = iconImgLeft + iconImgWidth / 2 -
|
269
|
+
const textOverlayLeft = iconImgLeft + iconImgWidth / 2 - 80
|
272
270
|
|
273
271
|
if (this.alignArrow === 'center') {
|
274
272
|
return `${textOverlayLeft}px`
|
@@ -141,12 +141,11 @@
|
|
141
141
|
computed: {},
|
142
142
|
methods: {
|
143
143
|
clickHandler(e) {
|
144
|
-
if (this.isDisabled) {
|
144
|
+
if (this.isDisabled || !!this.$attrs?.onClick) {
|
145
145
|
// prevent emitter if the option is disabled
|
146
146
|
return
|
147
|
-
} else {
|
148
|
-
this.$parent.$emit('option-selected', this.value, e)
|
149
147
|
}
|
148
|
+
this.$parent.$emit('option-selected', this.value, e)
|
150
149
|
},
|
151
150
|
hoverHandler() {
|
152
151
|
this.$parent.$emit('option-hovered', this.value)
|