6 changed files with 59 additions and 13 deletions
@ -0,0 +1,29 @@ |
|||
<template> |
|||
<div> |
|||
<md-table :v-model="players" md-sort="score" md-sort-order="desc" md-card md-fixed-header @md-selected="openPlayer" md-height="150px"> |
|||
<md-table-row slot="md-table-row" slot-scope="{ item }" md-selectable="single"> |
|||
<md-table-cell style="font-family: tf2secondary" md-label="Имя" md-sort-by="name">{{ item.name }}</md-table-cell> |
|||
<md-table-cell style="font-family: tf2secondary" md-label="Очки" md-sort-by="score">{{ item.score }}</md-table-cell> |
|||
<md-table-cell style="font-family: tf2secondary" md-label="Наиграно" md-sort-by="sec">{{ item.duration }}</md-table-cell> |
|||
<md-tooltip class="tooltip" md-direction="top">Нажми чтоб узнать поподробнее про {{item.name}}</md-tooltip> |
|||
</md-table-row> |
|||
</md-table> |
|||
<PlayerExtendedInfo ref="pei" :player="selected_player"/> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
export default { |
|||
name: "PlayersTable", |
|||
props: { |
|||
players: { |
|||
type: Object, |
|||
default: Object.create({ |
|||
"name":"", |
|||
"score":0, |
|||
"duration":0 |
|||
}) |
|||
} |
|||
} |
|||
} |
|||
</script> |
Loading…
Reference in new issue