Files
luos/resources/assets/js/components/dataViews/vueCardView/VueCard.vue

41 lines
681 B
Vue
Raw Normal View History

2021-07-08 15:00:07 +00:00
<template>
<div class="pm-vue-card">
2021-07-13 15:10:59 +00:00
<div class="card pm-vue-card-inside" style="width: 20rem">
2021-07-08 15:00:07 +00:00
<div class="card-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",
props: ["columns", "item"],
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;
},
},
};
</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
}
</style>