This commit is contained in:
@@ -1,9 +1,38 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div v-resize="onResize">
|
||||||
<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-expansion-panels focusable>
|
<v-card :height="height" style="overflow-y:auto;" class="mx-auto">
|
||||||
|
<v-card-text>
|
||||||
|
<v-list two-line>
|
||||||
|
<v-list-item v-for="item in items" :key="item.title" @click="aClick">
|
||||||
|
<v-list-item-avatar>
|
||||||
|
<v-icon :class="[item.iconClass]" v-text="item.icon"></v-icon>
|
||||||
|
</v-list-item-avatar>
|
||||||
|
|
||||||
|
<v-list-item-content>
|
||||||
|
<v-list-item-title v-text="item.title"></v-list-item-title>
|
||||||
|
<v-list-item-subtitle
|
||||||
|
v-text="item.subtitle"
|
||||||
|
></v-list-item-subtitle>
|
||||||
|
</v-list-item-content>
|
||||||
|
|
||||||
|
<v-list-item-action>
|
||||||
|
<v-btn icon>
|
||||||
|
<v-icon color="red lighten-1">fa-trash</v-icon>
|
||||||
|
</v-btn>
|
||||||
|
</v-list-item-action>
|
||||||
|
</v-list-item>
|
||||||
|
</v-list>
|
||||||
|
</v-card-text>
|
||||||
|
<v-card-actions>
|
||||||
|
<v-btn text>
|
||||||
|
Attach file
|
||||||
|
</v-btn>
|
||||||
|
</v-card-actions>
|
||||||
|
</v-card>
|
||||||
|
<!-- <v-expansion-panels focusable>
|
||||||
<v-expansion-panel v-for="(item, i) in 5" :key="i">
|
<v-expansion-panel v-for="(item, i) in 5" :key="i">
|
||||||
<v-expansion-panel-header>Item</v-expansion-panel-header>
|
<v-expansion-panel-header>Item</v-expansion-panel-header>
|
||||||
<v-expansion-panel-content>
|
<v-expansion-panel-content>
|
||||||
@@ -13,14 +42,36 @@
|
|||||||
aliquip ex ea commodo consequat.
|
aliquip ex ea commodo consequat.
|
||||||
</v-expansion-panel-content>
|
</v-expansion-panel-content>
|
||||||
</v-expansion-panel>
|
</v-expansion-panel>
|
||||||
</v-expansion-panels>
|
</v-expansion-panels> -->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
created() {},
|
created() {},
|
||||||
data() {
|
data() {
|
||||||
return {};
|
return {
|
||||||
|
height: 300,
|
||||||
|
items: [
|
||||||
|
{
|
||||||
|
icon: "fa-file",
|
||||||
|
iconClass: "grey lighten-1 white--text",
|
||||||
|
title: "drawings.pdf",
|
||||||
|
subtitle: "2020-01-09"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: "fa-image",
|
||||||
|
iconClass: "grey lighten-1 white--text",
|
||||||
|
title: "Recipes",
|
||||||
|
subtitle: "Jan 17, 2014"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: "fa-pen",
|
||||||
|
iconClass: "grey lighten-1 white--text",
|
||||||
|
title: "Work",
|
||||||
|
subtitle: "Jan 28, 2014"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
ayaType: Number,
|
ayaType: Number,
|
||||||
@@ -28,6 +79,13 @@ export default {
|
|||||||
readonly: Boolean
|
readonly: Boolean
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {}
|
methods: {
|
||||||
|
onResize() {
|
||||||
|
this.height = window.innerHeight * 0.25;
|
||||||
|
},
|
||||||
|
aClick() {
|
||||||
|
console.log("CLICK");
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user