Merge branch 'frontend/kathy' into develop

This commit is contained in:
Katharina Will 2019-03-27 19:51:39 +01:00
commit 6233d89802
4 changed files with 171 additions and 166 deletions

View File

@ -62,7 +62,7 @@ module.exports = function (ctx) {
'QAvatar',
'QSpinnerPuff',
'QExpansionItem',
'QParallax',
'QParallax'
],
directives: [

View File

@ -22,7 +22,8 @@
</q-header>
<q-drawer
v-model="leftDrawerOpen"
side="right"
v-model="rightDrawerOpen"
bordered
show-if-above
content-class="">

View File

@ -1,30 +1,18 @@
<template>
<div class="q-pa-md">
<div class="q-gutter-y-md" style="max-width: 1200px">
<q-tabs
v-model="tab"
dense
align="justify"
class="bg-white text-green-8 shadow-2"
:breakpoint="0"
>
<q-tab name="table" icon="mail" />
<q-tab name="map" icon="map" />
</q-tabs>
<template>
<div class="q-pa-md">
<q-card>
<q-tab-panels v-model="tab" animated>
<q-tab-panel name="list">
<q-table
title="Caches"
:data="data"
:columns="columns"
row-key="name"
selection="single"
selection="multiple"
:selected.sync="selected"
:filter="filter"
grid
hide-header
>
hide-header>
<template v-slot:top-right>
<q-input borderless dense debounce="300" v-model="filter" placeholder="Search">
<template v-slot:append>
@ -36,13 +24,13 @@
<template v-slot:item="props">
<div
class="q-pa-xs col-xs-12 col-sm-6 col-md-4 col-lg-3 grid-style-transition"
:style="props.selected ? 'transform: scale(0.95);' : ''"
>
<q-card :class="props.selected ? 'bg-grey-2' : ''">
<q-expansion-item
expand-separator
:label="props.row.name"
>
<q-card>
<q-card-section>
<q-checkbox :dense="denseOn" v-model="props.selected" :label="props.row.name" />
</q-card-section>
<q-separator />
<q-list dense>
<q-item v-for="col in props.cols.filter(col => col.name !== 'desc')" :key="col.name">
<q-item-section>
@ -53,24 +41,39 @@
</q-item-section>
</q-item>
</q-list>
</q-card-section>
</q-card>
</q-expansion-item>
</div>
</template>
</q-table>
</div>
</template>
</div>
</div>
</q-tab-panel>
<q-tab-panel name="map">
<img src="https://www.buga2019.de/we-bilder/3.Gartenausstellung/Gelaendeplan/190320_Gelaendeplan-quadratisch.jpg?m=1553094677" />
</q-tab-panel>
</q-tab-panels>
<q-separator />
<q-tabs
v-model="tab"
dense
class="bg-white text-green-8 shadow-2"
align="justify"
narrow-indicator
>
<q-tab name="list" icon="list" />
<q-tab name="map" icon="map" />
</q-tabs>
</q-card>
</template>
<script>
export default {
data () {
return {
tab: 'mails',
panel: 'mails',
denseOn: true,
tab: 'list',
filter: '',
selected: [],
columns: [

View File

@ -5,6 +5,7 @@ const routes = [
children: [{ path: "", component: () => import("pages/Index.vue") }]
},
{
path: "/overview/",
component: () => import("layouts/MyLayout.vue"),
children: [{ path: "", component: () => import("pages/Overview.vue") }]