classcard-ui 0.2.1471 → 0.2.1472
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/dist/classcard-ui.common.js +69 -65
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +69 -65
- package/dist/classcard-ui.umd.js.map +1 -1
- package/dist/classcard-ui.umd.min.js +1 -1
- package/dist/classcard-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CStats/CStats.vue +8 -6
package/package.json
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
<dl class="mt-4 grid grid-cols-1 gap-6" :class="dynamicGridSize">
|
|
15
15
|
<div
|
|
16
16
|
:class="['pt-3', showStatsBorder ? 'border-t border-gray-200' : '']"
|
|
17
|
-
v-for="count in statsCount"
|
|
18
|
-
|
|
17
|
+
v-for="(count, statIndex) in statsCount"
|
|
18
|
+
:key="statIndex"
|
|
19
19
|
>
|
|
20
20
|
<div
|
|
21
21
|
class="leading-6 md:flex-col md:items-start md:justify-center lg:flex-row lg:items-end lg:justify-between"
|
|
@@ -38,7 +38,9 @@
|
|
|
38
38
|
class="relative ml-2 inline-flex shrink-0 items-center self-center"
|
|
39
39
|
>
|
|
40
40
|
<c-tool-tip
|
|
41
|
-
v-if="
|
|
41
|
+
v-if="
|
|
42
|
+
count.toolTip.showToolTip || hoveredStatIndex === statIndex
|
|
43
|
+
"
|
|
42
44
|
color="#1f2937"
|
|
43
45
|
:classes="tooltipClasses(count)"
|
|
44
46
|
:tooltip-text="count.toolTip.text"
|
|
@@ -49,8 +51,8 @@
|
|
|
49
51
|
:type="count.icon.type"
|
|
50
52
|
:class="count.icon.class"
|
|
51
53
|
:cursorType="count.icon.cursorType"
|
|
52
|
-
@mouseover.native="
|
|
53
|
-
@mouseleave.native="
|
|
54
|
+
@mouseover.native="hoveredStatIndex = statIndex"
|
|
55
|
+
@mouseleave.native="hoveredStatIndex = null"
|
|
54
56
|
></c-icon>
|
|
55
57
|
</span>
|
|
56
58
|
<c-icon
|
|
@@ -136,7 +138,7 @@ export default {
|
|
|
136
138
|
},
|
|
137
139
|
data() {
|
|
138
140
|
return {
|
|
139
|
-
|
|
141
|
+
hoveredStatIndex: null,
|
|
140
142
|
};
|
|
141
143
|
},
|
|
142
144
|
methods: {
|