@golstats/gsc-top-player 1.0.6 → 1.0.8
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/README.md +36 -120
- package/dist/{FilterConditions-55d68355-CTSW6o91.js → FilterConditions-55d68355-DgmObXIt.js} +1 -1
- package/dist/{FilterField-59a73e38-DdD3Ksgf.js → FilterField-59a73e38-09cJ-DRW.js} +1 -1
- package/dist/{FilterSubcategories-a9b32cc9-DAFVxceX.js → FilterSubcategories-a9b32cc9-DNpw7zPl.js} +1 -1
- package/dist/gsc-top-player.css +1 -1
- package/dist/gsc-top-player.es.js +1 -1
- package/dist/gsc-top-player.umd.js +11 -11
- package/dist/{index-4fXNxjqw.js → index-BUTX2R4X.js} +1011 -1008
- package/package.json +1 -1
- package/src/App.vue +15 -7
- package/src/components/comparative/gsc-header-tops.vue +256 -230
- package/src/components/comparative/gsc-row.vue +2 -2
- package/src/components/comparative/gsc-top.vue +1 -2
- package/src/components/comparative/gsc-tops-full.vue +1 -1
- package/src/components/gsc-top-player.vue +6 -3
|
@@ -599,7 +599,7 @@ export default {
|
|
|
599
599
|
.rowwPlayer420Games {
|
|
600
600
|
align-self: stretch;
|
|
601
601
|
display: flex;
|
|
602
|
-
height:
|
|
602
|
+
height: 60px !important;
|
|
603
603
|
flex-direction: row;
|
|
604
604
|
align-items: center;
|
|
605
605
|
justify-content: flex-start;
|
|
@@ -615,7 +615,7 @@ export default {
|
|
|
615
615
|
.rowwPlayer460Games {
|
|
616
616
|
align-self: stretch;
|
|
617
617
|
display: flex;
|
|
618
|
-
height:
|
|
618
|
+
height: 60px !important;
|
|
619
619
|
flex-direction: row;
|
|
620
620
|
align-items: center;
|
|
621
621
|
justify-content: flex-start;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="type == 0 ? 'gsc-top' : 'gsc-top-full'">
|
|
3
3
|
<div ref="myDivRef">
|
|
4
|
-
{{ elementSize.width }}
|
|
5
4
|
<template v-if="type == 0">
|
|
6
5
|
<template v-if="topData.length > 0">
|
|
7
6
|
<!-- Título de la categoría con línea verde -->
|
|
@@ -451,7 +450,7 @@ export default {
|
|
|
451
450
|
computed: {
|
|
452
451
|
topData() {
|
|
453
452
|
// Si hay dummyData, úsala directamente
|
|
454
|
-
if (this.dummyData
|
|
453
|
+
if (this.dummyData) {
|
|
455
454
|
return [this.dummyData]
|
|
456
455
|
}
|
|
457
456
|
this.changeStateLoading(true)
|
|
@@ -62,11 +62,14 @@ const props = defineProps({
|
|
|
62
62
|
type: Number,
|
|
63
63
|
default: 5,
|
|
64
64
|
},
|
|
65
|
+
useDummyData: {
|
|
66
|
+
type: Boolean,
|
|
67
|
+
default: true,
|
|
68
|
+
},
|
|
65
69
|
})
|
|
66
70
|
|
|
67
|
-
// Si
|
|
68
|
-
const dummyData =
|
|
69
|
-
props.categoryView.length === 1 && props.categoryView[0].id === 0 ? dummyTopPlayers : null
|
|
71
|
+
// Si useDummyData es true, usa datos dummy, si es false busca datos reales de la categoría
|
|
72
|
+
const dummyData = props.useDummyData ? dummyTopPlayers : null
|
|
70
73
|
</script>
|
|
71
74
|
|
|
72
75
|
<style scoped>
|