@golstats/gsc-top-player 1.0.11 → 1.0.13
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/LICENSE +21 -21
- package/README.md +53 -53
- package/dist/{FilterConditions-55d68355-DMqzcKBO.js → FilterConditions-55d68355-icU5o85T.js} +1 -1
- package/dist/{FilterField-59a73e38-CNaE03Ge.js → FilterField-59a73e38-BOM_57PM.js} +1 -1
- package/dist/{FilterSubcategories-a9b32cc9-_h5FCZ4r.js → FilterSubcategories-a9b32cc9-yXOBLwEK.js} +1 -1
- package/dist/atajada.svg +56 -56
- package/dist/backarrow.svg +3 -3
- package/dist/contorno-escudo.svg +3 -3
- package/dist/css/fonts.css +91 -91
- package/dist/fin-del-partido.svg +43 -43
- package/dist/fuera-de-lugar.svg +57 -57
- package/dist/gol.svg +48 -48
- package/dist/group-427321178.svg +8 -8
- package/dist/group-427321179.svg +5 -5
- package/dist/group-427321501.svg +5 -5
- package/dist/gsc-top-player.css +1 -1
- package/dist/gsc-top-player.es.js +1 -1
- package/dist/gsc-top-player.umd.js +9 -9
- package/dist/icn-arrow-expand.svg +3 -3
- package/dist/icn-cambio.svg +26 -26
- package/dist/icn-expand-arrow.svg +3 -3
- package/dist/icn-expand-arrow1.svg +3 -3
- package/dist/icn-falta.svg +42 -42
- package/dist/icn-filter.svg +12 -12
- package/dist/icn-filter1.svg +12 -12
- package/dist/icn-filter2.svg +12 -12
- package/dist/icn-play.svg +10 -10
- package/dist/icn-tarjeta-amarilla.svg +4 -4
- package/dist/icn-tarjeta-roja.svg +4 -4
- package/dist/icn-tiro-a-porteria.svg +36 -36
- package/dist/icn-tiros-de-esquina.svg +54 -54
- package/dist/images/events/logo-fusionado.svg +37 -37
- package/dist/{index--DcThtAY.js → index-DP7G7HpQ.js} +940 -940
- package/dist/inicia-el-partido.svg +45 -45
- package/dist/jugada-peligrosa.svg +90 -90
- package/dist/next-arrow.svg +3 -3
- package/dist/nextarrow.svg +3 -3
- package/dist/penal-fallado.svg +194 -194
- package/dist/penal-marcado.svg +189 -189
- package/dist/play-icn.svg +3 -3
- package/dist/public/images/canchaRPH.svg +30 -30
- package/dist/public/images/events/atajada.svg +56 -56
- package/dist/public/images/events/cambio.svg +26 -26
- package/dist/public/images/events/falta.svg +42 -42
- package/dist/public/images/events/fin-del-partido.svg +43 -43
- package/dist/public/images/events/fuera-de-lugar.svg +57 -57
- package/dist/public/images/events/gol.svg +48 -48
- package/dist/public/images/events/icn-cambio.svg +6 -6
- package/dist/public/images/events/icn-falta.svg +4 -4
- package/dist/public/images/events/icn-play.svg +3 -3
- package/dist/public/images/events/icn-tarjeta-amarilla.svg +4 -4
- package/dist/public/images/events/icn-tarjeta-roja.svg +4 -4
- package/dist/public/images/events/icn-tiro-a-porteria.svg +36 -36
- package/dist/public/images/events/icn-tiros-de-esquina.svg +18 -18
- package/dist/public/images/events/inicia-el-partido.svg +45 -45
- package/dist/public/images/events/jugada-peligrosa.svg +90 -90
- package/dist/public/images/events/penal-fallado.svg +194 -194
- package/dist/public/images/events/penal-marcado.svg +189 -189
- package/dist/public/images/events/tiempo-agregado.svg +74 -74
- package/dist/public/images/events/tiro-a-porteria.svg +80 -80
- package/dist/public/images/events/tiro-de-esquina.svg +54 -54
- package/dist/public/images/events/var.svg +30 -30
- package/dist/shape.svg +3 -3
- package/dist/styles.css +1176 -1176
- package/dist/tiempo-agregado.svg +74 -74
- package/dist/tiro-a-porteria.svg +80 -80
- package/dist/var.svg +30 -30
- package/package.json +1 -1
- package/src/components/comparative/categories.js +137 -137
- package/src/components/comparative/composable-filters.js +10 -10
- package/src/components/comparative/computedProperties.js +327 -327
- package/src/components/comparative/dummy-top-players.js +122 -122
- package/src/components/comparative/filtersTypes.js +117 -117
- package/src/components/comparative/gsc-button.vue +198 -198
- package/src/components/comparative/gsc-expanded-info-player.vue +710 -710
- package/src/components/comparative/gsc-head-titles.vue +1482 -1482
- package/src/components/comparative/gsc-header-tops.vue +1418 -1418
- package/src/components/comparative/gsc-top.vue +1511 -1511
- package/src/components/comparative/gsc-tops-full.vue +2473 -2473
- package/src/components/comparative/nationalities-catalog.js +233 -233
- package/src/components/comparative/playsTypes.js +142 -142
- package/src/components/comparative/useElementSize.js +23 -23
- package/src/components/gsc-top-player.vue +91 -91
- package/src/index.js +5 -5
|
@@ -1,142 +1,142 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
offensive: {
|
|
3
|
-
title: 'Ofensivo',
|
|
4
|
-
categories: [
|
|
5
|
-
{
|
|
6
|
-
name: 'Goles',
|
|
7
|
-
isSelected: false,
|
|
8
|
-
id: 1
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
name: 'Tiros a gol',
|
|
12
|
-
isSelected: false,
|
|
13
|
-
id: 2
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
name: 'Tiros a gol con destino a portería',
|
|
17
|
-
isSelected: false,
|
|
18
|
-
id: 7
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
name: 'Asistencias',
|
|
22
|
-
isSelected: false,
|
|
23
|
-
id: 4
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
name: 'Centros',
|
|
27
|
-
isSelected: false,
|
|
28
|
-
id: 10
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
name: 'Centros acertados',
|
|
32
|
-
isSelected: false,
|
|
33
|
-
id: 11
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
name: 'Participaciones en gol',
|
|
37
|
-
isSelected: false,
|
|
38
|
-
id: 5
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
name: '1vs1 exitosos ofensivos',
|
|
42
|
-
isSelected: false,
|
|
43
|
-
id: 12
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
name: '1vs1 exitosos ofensivos que terminan en gol',
|
|
47
|
-
isSelected: false,
|
|
48
|
-
id: 13
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
name: 'Balones ganados en área rival',
|
|
52
|
-
isSelected: false,
|
|
53
|
-
id: 17
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
name: 'Cabeceos en área rival',
|
|
57
|
-
isSelected: false,
|
|
58
|
-
id: 8
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
name: 'Tiros de esquina',
|
|
62
|
-
isSelected: false,
|
|
63
|
-
id: 23
|
|
64
|
-
}
|
|
65
|
-
]
|
|
66
|
-
},
|
|
67
|
-
defensive: {
|
|
68
|
-
title: 'Defensivo',
|
|
69
|
-
categories: [
|
|
70
|
-
{
|
|
71
|
-
name: '1vs1 defensivos exitosos',
|
|
72
|
-
isSelected: false,
|
|
73
|
-
id: 14
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
name: 'Cabeceo en área propia',
|
|
77
|
-
isSelected: false,
|
|
78
|
-
id: 9
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
name: 'Balones ganados en área propia',
|
|
82
|
-
isSelected: false,
|
|
83
|
-
id: 16
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
name: 'Rechaces',
|
|
87
|
-
isSelected: false,
|
|
88
|
-
id: 15
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
name: 'Atajadas',
|
|
92
|
-
isSelected: false,
|
|
93
|
-
id: 22
|
|
94
|
-
}
|
|
95
|
-
]
|
|
96
|
-
},
|
|
97
|
-
possession: {
|
|
98
|
-
title: 'Posesión',
|
|
99
|
-
categories: [
|
|
100
|
-
{
|
|
101
|
-
name: 'Pases acertados',
|
|
102
|
-
isSelected: false,
|
|
103
|
-
id: 2
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
name: 'Balones recuperados en disputa',
|
|
107
|
-
isSelected: false,
|
|
108
|
-
id: 3
|
|
109
|
-
}
|
|
110
|
-
]
|
|
111
|
-
},
|
|
112
|
-
offenses: {
|
|
113
|
-
title: 'Infracciones',
|
|
114
|
-
categories: [
|
|
115
|
-
{
|
|
116
|
-
name: 'Faltas cometidas',
|
|
117
|
-
isSelected: false,
|
|
118
|
-
id: 21
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
name: 'Faltas recibidas',
|
|
122
|
-
isSelected: false,
|
|
123
|
-
id: 19
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
name: 'Tarjetas amarillas',
|
|
127
|
-
isSelected: false,
|
|
128
|
-
id: 20
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
name: 'Tarjetas rojas',
|
|
132
|
-
isSelected: false,
|
|
133
|
-
id: 21
|
|
134
|
-
}
|
|
135
|
-
]
|
|
136
|
-
},
|
|
137
|
-
offensesConditions: {
|
|
138
|
-
areYellowCardSelected: false,
|
|
139
|
-
areRedCardSelected: false,
|
|
140
|
-
areFoulsCommittedSelected: false
|
|
141
|
-
}
|
|
142
|
-
}
|
|
1
|
+
export default {
|
|
2
|
+
offensive: {
|
|
3
|
+
title: 'Ofensivo',
|
|
4
|
+
categories: [
|
|
5
|
+
{
|
|
6
|
+
name: 'Goles',
|
|
7
|
+
isSelected: false,
|
|
8
|
+
id: 1
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
name: 'Tiros a gol',
|
|
12
|
+
isSelected: false,
|
|
13
|
+
id: 2
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'Tiros a gol con destino a portería',
|
|
17
|
+
isSelected: false,
|
|
18
|
+
id: 7
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: 'Asistencias',
|
|
22
|
+
isSelected: false,
|
|
23
|
+
id: 4
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'Centros',
|
|
27
|
+
isSelected: false,
|
|
28
|
+
id: 10
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: 'Centros acertados',
|
|
32
|
+
isSelected: false,
|
|
33
|
+
id: 11
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: 'Participaciones en gol',
|
|
37
|
+
isSelected: false,
|
|
38
|
+
id: 5
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: '1vs1 exitosos ofensivos',
|
|
42
|
+
isSelected: false,
|
|
43
|
+
id: 12
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: '1vs1 exitosos ofensivos que terminan en gol',
|
|
47
|
+
isSelected: false,
|
|
48
|
+
id: 13
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: 'Balones ganados en área rival',
|
|
52
|
+
isSelected: false,
|
|
53
|
+
id: 17
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: 'Cabeceos en área rival',
|
|
57
|
+
isSelected: false,
|
|
58
|
+
id: 8
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: 'Tiros de esquina',
|
|
62
|
+
isSelected: false,
|
|
63
|
+
id: 23
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
defensive: {
|
|
68
|
+
title: 'Defensivo',
|
|
69
|
+
categories: [
|
|
70
|
+
{
|
|
71
|
+
name: '1vs1 defensivos exitosos',
|
|
72
|
+
isSelected: false,
|
|
73
|
+
id: 14
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: 'Cabeceo en área propia',
|
|
77
|
+
isSelected: false,
|
|
78
|
+
id: 9
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: 'Balones ganados en área propia',
|
|
82
|
+
isSelected: false,
|
|
83
|
+
id: 16
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
name: 'Rechaces',
|
|
87
|
+
isSelected: false,
|
|
88
|
+
id: 15
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
name: 'Atajadas',
|
|
92
|
+
isSelected: false,
|
|
93
|
+
id: 22
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
possession: {
|
|
98
|
+
title: 'Posesión',
|
|
99
|
+
categories: [
|
|
100
|
+
{
|
|
101
|
+
name: 'Pases acertados',
|
|
102
|
+
isSelected: false,
|
|
103
|
+
id: 2
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: 'Balones recuperados en disputa',
|
|
107
|
+
isSelected: false,
|
|
108
|
+
id: 3
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
offenses: {
|
|
113
|
+
title: 'Infracciones',
|
|
114
|
+
categories: [
|
|
115
|
+
{
|
|
116
|
+
name: 'Faltas cometidas',
|
|
117
|
+
isSelected: false,
|
|
118
|
+
id: 21
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
name: 'Faltas recibidas',
|
|
122
|
+
isSelected: false,
|
|
123
|
+
id: 19
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
name: 'Tarjetas amarillas',
|
|
127
|
+
isSelected: false,
|
|
128
|
+
id: 20
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
name: 'Tarjetas rojas',
|
|
132
|
+
isSelected: false,
|
|
133
|
+
id: 21
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
offensesConditions: {
|
|
138
|
+
areYellowCardSelected: false,
|
|
139
|
+
areRedCardSelected: false,
|
|
140
|
+
areFoulsCommittedSelected: false
|
|
141
|
+
}
|
|
142
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
// useElementSize.js
|
|
2
|
-
import { ref, onMounted, onUnmounted } from 'vue'
|
|
3
|
-
|
|
4
|
-
export default function useElementSize(elementRef) {
|
|
5
|
-
const elementSize = ref({ width: 0, height: 0 })
|
|
6
|
-
|
|
7
|
-
function updateSize() {
|
|
8
|
-
const rect = elementRef.value.getBoundingClientRect()
|
|
9
|
-
elementSize.value.width = rect.width
|
|
10
|
-
elementSize.value.height = rect.height
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
onMounted(() => {
|
|
14
|
-
updateSize()
|
|
15
|
-
window.addEventListener('resize', updateSize)
|
|
16
|
-
})
|
|
17
|
-
|
|
18
|
-
onUnmounted(() => {
|
|
19
|
-
window.removeEventListener('resize', updateSize)
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
return { elementSize }
|
|
23
|
-
}
|
|
1
|
+
// useElementSize.js
|
|
2
|
+
import { ref, onMounted, onUnmounted } from 'vue'
|
|
3
|
+
|
|
4
|
+
export default function useElementSize(elementRef) {
|
|
5
|
+
const elementSize = ref({ width: 0, height: 0 })
|
|
6
|
+
|
|
7
|
+
function updateSize() {
|
|
8
|
+
const rect = elementRef.value.getBoundingClientRect()
|
|
9
|
+
elementSize.value.width = rect.width
|
|
10
|
+
elementSize.value.height = rect.height
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
onMounted(() => {
|
|
14
|
+
updateSize()
|
|
15
|
+
window.addEventListener('resize', updateSize)
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
onUnmounted(() => {
|
|
19
|
+
window.removeEventListener('resize', updateSize)
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
return { elementSize }
|
|
23
|
+
}
|
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="gsc-top-player">
|
|
3
|
-
<GSCTopFull
|
|
4
|
-
:can-play-videos="canPlayVideos"
|
|
5
|
-
:carrousel="carrousel"
|
|
6
|
-
:arrow="arrow"
|
|
7
|
-
:type-data="type"
|
|
8
|
-
:game-id="gamed"
|
|
9
|
-
:game="game"
|
|
10
|
-
:season-active="season"
|
|
11
|
-
:teamselect="teamView"
|
|
12
|
-
:category-view="categoryView"
|
|
13
|
-
:num-rows="numRows"
|
|
14
|
-
:dummy-data="dummyData"
|
|
15
|
-
/>
|
|
16
|
-
</div>
|
|
17
|
-
</template>
|
|
18
|
-
|
|
19
|
-
<script setup>
|
|
20
|
-
import GSCTopFull from '@/components/comparative/gsc-tops-full.vue'
|
|
21
|
-
import { dummyTopPlayers } from './comparative/dummy-top-players.js'
|
|
22
|
-
|
|
23
|
-
// Definir todas las props
|
|
24
|
-
const props = defineProps({
|
|
25
|
-
categoryView: {
|
|
26
|
-
type: Array,
|
|
27
|
-
default: () => [],
|
|
28
|
-
},
|
|
29
|
-
canPlayVideos: {
|
|
30
|
-
type: Boolean,
|
|
31
|
-
default: true,
|
|
32
|
-
},
|
|
33
|
-
carrousel: {
|
|
34
|
-
type: Boolean,
|
|
35
|
-
default: false,
|
|
36
|
-
},
|
|
37
|
-
arrow: {
|
|
38
|
-
type: Boolean,
|
|
39
|
-
default: false,
|
|
40
|
-
},
|
|
41
|
-
type: {
|
|
42
|
-
type: Number,
|
|
43
|
-
default: 1,
|
|
44
|
-
},
|
|
45
|
-
game: {
|
|
46
|
-
type: Object,
|
|
47
|
-
default: () => ({}),
|
|
48
|
-
},
|
|
49
|
-
gamed: {
|
|
50
|
-
type: Number,
|
|
51
|
-
default: 90209,
|
|
52
|
-
},
|
|
53
|
-
season: {
|
|
54
|
-
type: Number,
|
|
55
|
-
default: 1909,
|
|
56
|
-
},
|
|
57
|
-
teamView: {
|
|
58
|
-
type: Number,
|
|
59
|
-
default: 0,
|
|
60
|
-
},
|
|
61
|
-
numRows: {
|
|
62
|
-
type: Number,
|
|
63
|
-
default: 5,
|
|
64
|
-
},
|
|
65
|
-
useDummyData: {
|
|
66
|
-
type: Boolean,
|
|
67
|
-
default: true,
|
|
68
|
-
},
|
|
69
|
-
})
|
|
70
|
-
|
|
71
|
-
// Si useDummyData es true, usa datos dummy, si es false busca datos reales
|
|
72
|
-
const dummyData = props.useDummyData ? dummyTopPlayers : null
|
|
73
|
-
</script>
|
|
74
|
-
|
|
75
|
-
<style scoped>
|
|
76
|
-
.gsc-top-player {
|
|
77
|
-
width: 100%;
|
|
78
|
-
max-width: 100%;
|
|
79
|
-
display: block;
|
|
80
|
-
box-sizing: border-box;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
h1 {
|
|
84
|
-
color: #42b883;
|
|
85
|
-
margin-bottom: 10px;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
p {
|
|
89
|
-
color: #666;
|
|
90
|
-
}
|
|
91
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="gsc-top-player">
|
|
3
|
+
<GSCTopFull
|
|
4
|
+
:can-play-videos="canPlayVideos"
|
|
5
|
+
:carrousel="carrousel"
|
|
6
|
+
:arrow="arrow"
|
|
7
|
+
:type-data="type"
|
|
8
|
+
:game-id="gamed"
|
|
9
|
+
:game="game"
|
|
10
|
+
:season-active="season"
|
|
11
|
+
:teamselect="teamView"
|
|
12
|
+
:category-view="categoryView"
|
|
13
|
+
:num-rows="numRows"
|
|
14
|
+
:dummy-data="dummyData"
|
|
15
|
+
/>
|
|
16
|
+
</div>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<script setup>
|
|
20
|
+
import GSCTopFull from '@/components/comparative/gsc-tops-full.vue'
|
|
21
|
+
import { dummyTopPlayers } from './comparative/dummy-top-players.js'
|
|
22
|
+
|
|
23
|
+
// Definir todas las props
|
|
24
|
+
const props = defineProps({
|
|
25
|
+
categoryView: {
|
|
26
|
+
type: Array,
|
|
27
|
+
default: () => [],
|
|
28
|
+
},
|
|
29
|
+
canPlayVideos: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: true,
|
|
32
|
+
},
|
|
33
|
+
carrousel: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: false,
|
|
36
|
+
},
|
|
37
|
+
arrow: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: false,
|
|
40
|
+
},
|
|
41
|
+
type: {
|
|
42
|
+
type: Number,
|
|
43
|
+
default: 1,
|
|
44
|
+
},
|
|
45
|
+
game: {
|
|
46
|
+
type: Object,
|
|
47
|
+
default: () => ({}),
|
|
48
|
+
},
|
|
49
|
+
gamed: {
|
|
50
|
+
type: Number,
|
|
51
|
+
default: 90209,
|
|
52
|
+
},
|
|
53
|
+
season: {
|
|
54
|
+
type: Number,
|
|
55
|
+
default: 1909,
|
|
56
|
+
},
|
|
57
|
+
teamView: {
|
|
58
|
+
type: Number,
|
|
59
|
+
default: 0,
|
|
60
|
+
},
|
|
61
|
+
numRows: {
|
|
62
|
+
type: Number,
|
|
63
|
+
default: 5,
|
|
64
|
+
},
|
|
65
|
+
useDummyData: {
|
|
66
|
+
type: Boolean,
|
|
67
|
+
default: true,
|
|
68
|
+
},
|
|
69
|
+
})
|
|
70
|
+
|
|
71
|
+
// Si useDummyData es true, usa datos dummy, si es false busca datos reales
|
|
72
|
+
const dummyData = props.useDummyData ? dummyTopPlayers : null
|
|
73
|
+
</script>
|
|
74
|
+
|
|
75
|
+
<style scoped>
|
|
76
|
+
.gsc-top-player {
|
|
77
|
+
width: 100%;
|
|
78
|
+
max-width: 100%;
|
|
79
|
+
display: block;
|
|
80
|
+
box-sizing: border-box;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
h1 {
|
|
84
|
+
color: #42b883;
|
|
85
|
+
margin-bottom: 10px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
p {
|
|
89
|
+
color: #666;
|
|
90
|
+
}
|
|
91
|
+
</style>
|
package/src/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
import GscTopPlayer from './components/gsc-top-player.vue'
|
|
3
|
-
|
|
4
|
-
// Exportar también como componente nombrado
|
|
5
|
-
export { GscTopPlayer }
|
|
1
|
+
'use strict'
|
|
2
|
+
import GscTopPlayer from './components/gsc-top-player.vue'
|
|
3
|
+
|
|
4
|
+
// Exportar también como componente nombrado
|
|
5
|
+
export { GscTopPlayer }
|