This commit is contained in:
2020-04-21 22:15:26 +00:00
parent 53ab61bad5
commit 8f19feb70a

View File

@@ -3,46 +3,51 @@
<span class="v-label v-label--active theme--light"> <span class="v-label v-label--active theme--light">
{{ $ay.t("Attachments") }} {{ $ay.t("Attachments") }}
</span> </span>
<v-card :height="height" style="overflow-y:auto;" class="mx-auto"> <v-row>
<v-card-text> <v-col cols="12" sm="8">
<v-list two-line> <v-card class="mx-auto">
<v-list-item v-for="item in items" :key="item.title" @click="aClick"> <v-card-text>
<v-list-item-avatar> <div :style="cardTextStyle()">
<v-icon :class="[item.iconClass]" v-text="item.icon"></v-icon> <v-list two-line>
</v-list-item-avatar> <v-list-item
v-for="item in items"
:key="item.title"
@click="aClick"
>
<v-list-item-avatar>
<v-icon v-text="item.icon"></v-icon>
</v-list-item-avatar>
<v-list-item-content> <v-list-item-content>
<v-list-item-title v-text="item.title"></v-list-item-title> <v-list-item-title v-text="item.title"></v-list-item-title>
<v-list-item-subtitle <v-list-item-subtitle
v-text="item.subtitle" v-text="item.subtitle"
></v-list-item-subtitle> ></v-list-item-subtitle>
</v-list-item-content> </v-list-item-content>
<v-list-item-action> <v-list-item-action>
<v-btn icon> <v-btn icon>
<v-icon color="red lighten-1">fa-trash</v-icon> <v-icon>fa-trash</v-icon>
</v-btn> </v-btn>
</v-list-item-action> </v-list-item-action>
</v-list-item> </v-list-item>
</v-list> </v-list>
</v-card-text> </div>
<v-card-actions> </v-card-text>
<v-btn text>
Attach file <v-card-actions>
</v-btn> <v-file-input
</v-card-actions> :label="$ay.t('AttachFile')"
</v-card> prepend-icon="fa-paperclip"
<!-- <v-expansion-panels focusable> ></v-file-input>
<v-expansion-panel v-for="(item, i) in 5" :key="i"> <v-text-field
<v-expansion-panel-header>Item</v-expansion-panel-header> v-model="notes"
<v-expansion-panel-content> :label="$ay.t('ImageDescription')"
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do ></v-text-field>
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad </v-card-actions>
minim veniam, quis nostrud exercitation ullamco laboris nisi ut </v-card>
aliquip ex ea commodo consequat. </v-col>
</v-expansion-panel-content> </v-row>
</v-expansion-panel>
</v-expansion-panels> -->
</div> </div>
</template> </template>
<script> <script>
@@ -54,23 +59,66 @@ export default {
items: [ items: [
{ {
icon: "fa-file", icon: "fa-file",
iconClass: "grey lighten-1 white--text",
title: "drawings.pdf", title: "drawings.pdf",
subtitle: "2020-01-09" subtitle: "2020-01-09"
}, },
{ {
icon: "fa-image", icon: "fa-image",
iconClass: "grey lighten-1 white--text",
title: "Recipes", title: "Recipes",
subtitle: "Jan 17, 2014" subtitle: "Jan 17, 2014"
}, },
{ {
icon: "fa-pen", icon: "fa-pen",
iconClass: "grey lighten-1 white--text",
title: "Work", title: "Work",
subtitle: "Jan 28, 2014" subtitle: "Jan 28, 2014"
},
{
icon: "fa-file",
title: "2drawings.pdf",
subtitle: "2020-01-09"
},
{
icon: "fa-image",
title: "2Recipes",
subtitle: "Jan 17, 2014"
},
{
icon: "fa-pen",
title: "2Work",
subtitle: "Jan 28, 2014"
},
{
icon: "fa-file",
title: "3drawings.pdf",
subtitle: "2020-01-09"
},
{
icon: "fa-image",
title: "3Recipes",
subtitle: "Jan 17, 2014"
},
{
icon: "fa-pen",
title: "3Work",
subtitle: "Jan 28, 2014"
},
{
icon: "fa-file",
title: "4drawings.pdf",
subtitle: "2020-01-09"
},
{
icon: "fa-image",
title: "4Recipes",
subtitle: "Jan 17, 2014"
},
{
icon: "fa-pen",
title: "4Work",
subtitle: "Jan 28, 2014"
} }
] ],
notes: null
}; };
}, },
props: { props: {
@@ -83,6 +131,9 @@ export default {
onResize() { onResize() {
this.height = window.innerHeight * 0.25; this.height = window.innerHeight * 0.25;
}, },
cardTextStyle() {
return "height: " + this.height + "px;overflow-y:auto;";
},
aClick() { aClick() {
console.log("CLICK"); console.log("CLICK");
} }