2021-07-08 15:00:07 +00:00
|
|
|
<template>
|
|
|
|
|
<div class="pm-vue-card">
|
2022-08-15 12:46:01 -04:00
|
|
|
<div
|
|
|
|
|
:class="item.INIT_DATE ? 'pm-case-unread' : 'pm-case-read'"
|
|
|
|
|
class="card pm-vue-card-inside"
|
|
|
|
|
style="width: 20rem"
|
|
|
|
|
@dblclick="dblClick"
|
|
|
|
|
>
|
2021-09-20 12:16:15 -04:00
|
|
|
<div class="card-view-body">
|
2021-07-08 20:20:05 +00:00
|
|
|
<slot> </slot>
|
2021-07-08 15:00:07 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
name: "VueCardView",
|
2021-07-21 15:09:39 +00:00
|
|
|
props: ["options", "item"],
|
2021-07-08 15:00:07 +00:00
|
|
|
data() {
|
2021-07-13 15:10:59 +00:00
|
|
|
return {};
|
2021-07-08 15:00:07 +00:00
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
classBtn(cls) {
|
|
|
|
|
return "btn btn-slim btn-force-radius v-btn-header " + cls;
|
|
|
|
|
},
|
2021-07-21 17:13:46 +00:00
|
|
|
/**
|
|
|
|
|
* Event handler dbl click
|
|
|
|
|
*/
|
2021-07-21 15:09:39 +00:00
|
|
|
dblClick(event){
|
|
|
|
|
this.options.dblClick(event, this.item, this.options);
|
|
|
|
|
}
|
2021-07-08 15:00:07 +00:00
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
.pm-vue-card {
|
|
|
|
|
display: inline-block;
|
2021-07-13 15:10:59 +00:00
|
|
|
padding: 0.7rem;
|
|
|
|
|
}
|
|
|
|
|
.pm-vue-card-inside {
|
|
|
|
|
border-left: solid lightseagreen;
|
|
|
|
|
color: #212529;
|
|
|
|
|
background-color: #f8f9fa;
|
|
|
|
|
}
|
|
|
|
|
.pm-vue-card-inside:hover {
|
|
|
|
|
background-color: #cfd9e4;
|
2021-07-08 15:00:07 +00:00
|
|
|
}
|
2021-09-20 12:16:15 -04:00
|
|
|
.card-view-body {
|
2021-08-30 11:04:40 -04:00
|
|
|
height: 266px;
|
|
|
|
|
overflow-x: hidden;
|
2021-09-27 17:04:00 -04:00
|
|
|
flex: 1 1 auto;
|
|
|
|
|
min-height: 1px;
|
|
|
|
|
padding: 1.25rem;
|
2021-08-30 11:04:40 -04:00
|
|
|
}
|
2022-08-15 12:46:01 -04:00
|
|
|
.pm-case-read {
|
|
|
|
|
border-left: 15px solid transparent;
|
|
|
|
|
border-radius: 0.25rem;
|
|
|
|
|
border-width: 1px 1px 1px 15px;
|
|
|
|
|
background-image:
|
|
|
|
|
linear-gradient(white, white),
|
|
|
|
|
linear-gradient(to bottom, #70C6F3, #0099DC);
|
|
|
|
|
background-origin: border-box;
|
|
|
|
|
background-clip: content-box, border-box;
|
|
|
|
|
}
|
|
|
|
|
.pm-case-unread {
|
|
|
|
|
border-left: 15px solid transparent;
|
|
|
|
|
border-radius: 0.25rem;
|
|
|
|
|
border-width: 1px 1px 1px 15px;
|
|
|
|
|
background-image:
|
|
|
|
|
linear-gradient(white, white),
|
|
|
|
|
linear-gradient(to bottom, rgba(204,204,204,1),rgba(135,135,135,1));
|
|
|
|
|
background-origin: border-box;
|
|
|
|
|
background-clip: content-box, border-box;
|
|
|
|
|
}
|
2021-07-08 15:00:07 +00:00
|
|
|
</style>
|