From 6ecd8c59d605d04e4f61fb9fb048acf33a47409d Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Fri, 16 Oct 2020 18:28:35 +0200 Subject: [PATCH] table component: style sticky table header --- src/App.vue | 6 +- src/components/Table/Table.vue | 123 +++++++++++++++------------------ 2 files changed, 58 insertions(+), 71 deletions(-) diff --git a/src/App.vue b/src/App.vue index fed02a5..c2223a1 100644 --- a/src/App.vue +++ b/src/App.vue @@ -12,12 +12,12 @@ - + @@ -50,7 +50,7 @@ export default { }), mounted() { const vm = this - this.$jquery.getJSON('https://de1.api.radio-browser.info/json/stations/topclick?limit=10') + this.$jquery.getJSON('https://de1.api.radio-browser.info/json/stations/topclick?limit=20') .done(function(data) { vm.tableData = data }) diff --git a/src/components/Table/Table.vue b/src/components/Table/Table.vue index 140eee4..73ed794 100644 --- a/src/components/Table/Table.vue +++ b/src/components/Table/Table.vue @@ -12,7 +12,8 @@ - {{ stationData }}
-
+
@@ -31,7 +32,6 @@
@@ -63,28 +63,21 @@ export default { default: '', }, }, - computed: { - style() { - return 'background-image: url(' + this.stationImg + ')' - }, - }, }