1
0
Fork 1
mirror of https://github.com/hay-kot/homebox.git synced 2024-12-28 17:56:29 +00:00
homebox/frontend/components/DetailAction.vue

18 lines
448 B
Vue
Raw Normal View History

2023-02-11 04:38:50 +00:00
<template>
<div class="grid grid-cols-1 md:grid-cols-4 gap-10 py-6">
<div class="col-span-3">
<h4 class="mb-1 text-lg font-semibold">
<slot name="title"></slot>
</h4>
<p class="text-sm">
<slot></slot>
</p>
</div>
<BaseButton class="btn-primary mt-auto" @click="$emit('action')">
<slot name="button">
<slot name="title"></slot>
</slot>
</BaseButton>
</div>
</template>