@golstats/gsc-top-player 1.0.9 → 1.0.11
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/{FilterConditions-55d68355-C06ae5UH.js → FilterConditions-55d68355-DMqzcKBO.js} +1 -1
- package/dist/{FilterField-59a73e38-CwFxdon3.js → FilterField-59a73e38-CNaE03Ge.js} +1 -1
- package/dist/{FilterSubcategories-a9b32cc9-Dfm_NNj7.js → FilterSubcategories-a9b32cc9-_h5FCZ4r.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-DQaQpguj.js → index--DcThtAY.js} +1334 -1273
- package/package.json +1 -1
- package/src/App.vue +3 -85
- package/src/components/comparative/dummy-top-players.js +28 -28
- package/src/components/comparative/gsc-header-tops.vue +165 -1
- package/src/components/comparative/gsc-row.vue +388 -36
- package/src/components/comparative/gsc-top.vue +15 -1
- package/src/components/gsc-top-player.vue +1 -1
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
? '180px'
|
|
56
56
|
: '110px'
|
|
57
57
|
"
|
|
58
|
-
buttonFontSize="
|
|
58
|
+
:buttonFontSize="getButtonFontSize()"
|
|
59
59
|
iconSize="11px"
|
|
60
60
|
@expand="clickexpand"
|
|
61
61
|
@more="morestats"
|
|
@@ -766,6 +766,20 @@ export default {
|
|
|
766
766
|
],
|
|
767
767
|
}),
|
|
768
768
|
methods: {
|
|
769
|
+
getButtonFontSize() {
|
|
770
|
+
// Ajustar el tamaño de la fuente según el ancho del componente
|
|
771
|
+
if (this.elementSize.width > 500) {
|
|
772
|
+
return '14px'
|
|
773
|
+
} else if (this.elementSize.width > 400) {
|
|
774
|
+
return '13px'
|
|
775
|
+
} else if (this.elementSize.width > 300) {
|
|
776
|
+
return '12px'
|
|
777
|
+
} else if (this.elementSize.width > 200) {
|
|
778
|
+
return '11px'
|
|
779
|
+
} else {
|
|
780
|
+
return '10px'
|
|
781
|
+
}
|
|
782
|
+
},
|
|
769
783
|
changeStateLoading(value) {
|
|
770
784
|
this.isloading = value
|
|
771
785
|
},
|
|
@@ -68,7 +68,7 @@ const props = defineProps({
|
|
|
68
68
|
},
|
|
69
69
|
})
|
|
70
70
|
|
|
71
|
-
// Si useDummyData es true, usa datos dummy, si es false busca datos reales
|
|
71
|
+
// Si useDummyData es true, usa datos dummy, si es false busca datos reales
|
|
72
72
|
const dummyData = props.useDummyData ? dummyTopPlayers : null
|
|
73
73
|
</script>
|
|
74
74
|
|