@mixd-id/web-scaffold 0.1.240411054 → 0.1.240411055

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@mixd-id/web-scaffold",
3
3
  "private": false,
4
- "version": "0.1.240411054",
4
+ "version": "0.1.240411055",
5
5
  "scripts": {
6
6
  "dev": "vite serve",
7
7
  "build": "vite build",
@@ -31,15 +31,16 @@
31
31
  </slot>
32
32
  </div>
33
33
 
34
- <div v-if="useLegend && items && items.length > 1" :class="$style.legend">
34
+ <div :class="$style.legend">
35
35
  <div v-for="_index in items.length"
36
- :class="$style.legendItem + (index === _index - 1 ? ` ${$style.legendItemActive}` : '')"
37
- @click="index = _index - 1">
36
+ :class="$style.legendItem + (index === _index - 1 ? ` ${$style.legendItemActive}` : '')"
37
+ @click="setIndex(_index - 1)">
38
38
  <slot name="legend">
39
- <div></div>
39
+ <div></div>
40
40
  </slot>
41
41
  </div>
42
42
  </div>
43
+
43
44
  </div>
44
45
  </template>
45
46
 
@@ -314,7 +315,7 @@ export default{
314
315
  .comp{
315
316
  overflow: hidden;
316
317
  position: relative;
317
- @apply flex flex-col;
318
+ @apply flex flex-col bg-red-100;
318
319
  }
319
320
 
320
321
  .comp img{