diff --git a/src/components/Table.vue b/src/components/Table.vue index 346ee7c..3c7d97e 100644 --- a/src/components/Table.vue +++ b/src/components/Table.vue @@ -10,12 +10,15 @@ - +
- + {{ station.name }} @@ -51,8 +54,14 @@ export default { default() { return [] }, }, }, + data() { + return { + activeItem: null, + } + }, methods: { - doPlay(station) { + doPlay(idx, station) { + this.activeItem = idx this.$emit('doPlay', station) }, }, @@ -107,6 +116,10 @@ table { } } + tr.selected { + background-color: var(--color-primary-light); + } + tr td:first-child { padding-left: 40px; width: 32px;