From 6b6bac0202e44ea00c86c00a5a0913df45eb987a Mon Sep 17 00:00:00 2001 From: Tobias Klika Date: Thu, 1 Oct 2020 12:00:18 +0200 Subject: [PATCH] define inline property + style for tables --- zero.Web.UI/App/components/pagination.vue | 14 +++++++++++--- zero.Web.UI/App/components/tables/table.vue | 18 ++++++++++++++++-- 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/zero.Web.UI/App/components/pagination.vue b/zero.Web.UI/App/components/pagination.vue index 5234369a..cecb0c3c 100644 --- a/zero.Web.UI/App/components/pagination.vue +++ b/zero.Web.UI/App/components/pagination.vue @@ -1,6 +1,6 @@  @@ -27,6 +27,10 @@ page: { type: Number, default: 1 + }, + inline: { + type: Boolean, + default: false } }, @@ -34,6 +38,10 @@ values: function () { return Array.apply(null, Array(this.pages)).map(function (_, i) { return i + 1; }); + }, + buttonType() + { + return this.inline ? 'light' : 'light onbg'; } }, diff --git a/zero.Web.UI/App/components/tables/table.vue b/zero.Web.UI/App/components/tables/table.vue index bd21fe2c..922c295c 100644 --- a/zero.Web.UI/App/components/tables/table.vue +++ b/zero.Web.UI/App/components/tables/table.vue @@ -1,6 +1,6 @@