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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "classcard-ui",
3
- "version": "0.2.1471",
3
+ "version": "0.2.1472",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -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
- v-bind:key="count.number"
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="count.toolTip.showToolTip || hoveredStatNumber === count.number"
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="hoveredStatNumber = count.number"
53
- @mouseleave.native="hoveredStatNumber = null"
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
- hoveredStatNumber: null,
141
+ hoveredStatIndex: null,
140
142
  };
141
143
  },
142
144
  methods: {