2
0
mirror of https://github.com/frappe/books.git synced 2025-03-20 10:02:23 +00:00

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1.1 KiB
Vue
Raw Normal View History

<template>
2022-04-22 16:32:03 +05:30
<div class="w-600 shadow rounded-lg border relative" style="height: 700px">
<div class="px-6 py-8">
<h1 class="text-2xl font-semibold"><slot name="title"></slot></h1>
</div>
2022-04-22 16:32:03 +05:30
<div class="px-6 window-no-drag">
<slot name="content"></slot>
</div>
2022-04-22 16:32:03 +05:30
<div
2022-04-22 16:32:03 +05:30
class="flex justify-between px-6 pb-6 window-no-drag absolute w-600"
style="top: 100%; transform: translateY(-100%)"
>
2022-04-22 16:32:03 +05:30
<Button class="text-sm text-grey-900 w-28" @click="$emit('secondary-clicked')">
<slot name="secondaryButton"></slot>
</Button>
<Button
@click="$emit('primary-clicked')"
type="primary"
2022-04-22 16:32:03 +05:30
class="text-sm text-white w-28"
:disabled="primaryDisabled"
>
<slot name="primaryButton"></slot>
</Button>
</div>
</div>
</template>
<script>
2022-04-20 12:08:47 +05:30
import Button from 'src/components/Button.vue';
export default {
emits: ['primary-clicked', 'secondary-clicked'],
components: { Button },
props: {
usePrimary: { type: Boolean, default: true },
primaryDisabled: { type: Boolean, default: false },
},
};
</script>