Files
luos/resources/assets/js/components/home/newRequest/ProcessCard.vue

60 lines
1003 B
Vue
Raw Normal View History

2020-12-02 19:46:17 +00:00
<template>
2020-12-16 18:26:40 +00:00
<div :class="classCard()" @click="clickCard(data)">
2020-12-02 19:46:17 +00:00
<b-card
:sub-title="data.title"
class="overflow-hidden"
style="min-width: 340px; max-width: 340px"
bg-variant="light"
>
<b-card-text class="v-process-card-text">
{{ data.description }}
</b-card-text>
</b-card>
</div>
</template>
<script>
export default {
name: "ProcessCard",
props: {
data: Object,
2020-12-16 18:26:40 +00:00
disable: Boolean,
2020-12-02 19:46:17 +00:00
},
data() {
return {};
},
methods: {
2020-12-16 18:26:40 +00:00
classCard() {
if (this.disable) {
return "v-inline v-process-card v-disable";
}
return "v-inline v-process-card";
},
clickCard(data) {
if (!this.disable) {
this.data.onClick(data);
}
2020-12-02 19:46:17 +00:00
},
},
};
</script>
<style>
.v-inline {
display: inline-block;
}
2020-12-16 18:26:40 +00:00
.v-disable {
opacity: 0.2;
}
2020-12-02 19:46:17 +00:00
.v-process-card {
margin-right: 15px;
margin-bottom: 15px;
border-left: solid lightseagreen;
}
.v-process-card-text {
font-size: 13px;
}
</style>