2022-02-17 13:16:36 +05:30
|
|
|
<template>
|
2022-06-09 17:57:11 +05:30
|
|
|
<div class="w-form shadow-lg rounded-lg border relative bg-white" style="height: 700px">
|
2022-05-26 00:28:54 +05:30
|
|
|
<!-- Slide Title -->
|
2022-05-31 17:45:25 +05:30
|
|
|
<div class="p-4">
|
2022-05-26 00:28:54 +05:30
|
|
|
<h1 class="text-2xl font-semibold select-none">
|
|
|
|
<slot name="title"></slot>
|
|
|
|
</h1>
|
2022-02-17 13:16:36 +05:30
|
|
|
</div>
|
2022-05-26 00:28:54 +05:30
|
|
|
<hr />
|
2022-02-17 13:16:36 +05:30
|
|
|
|
2022-05-26 00:28:54 +05:30
|
|
|
<!-- Slide Content -->
|
|
|
|
<div class="window-no-drag">
|
2022-02-17 13:16:36 +05:30
|
|
|
<slot name="content"></slot>
|
|
|
|
</div>
|
2022-04-22 16:32:03 +05:30
|
|
|
|
2022-05-26 00:28:54 +05:30
|
|
|
<!-- Slide Buttons -->
|
2022-02-17 13:16:36 +05:30
|
|
|
<div
|
2022-05-31 17:45:25 +05:30
|
|
|
class="flex justify-between px-4 pb-4 window-no-drag absolute w-form"
|
2022-04-22 16:32:03 +05:30
|
|
|
style="top: 100%; transform: translateY(-100%)"
|
2022-02-17 13:16:36 +05:30
|
|
|
>
|
2022-05-26 00:28:54 +05:30
|
|
|
<Button
|
|
|
|
class="text-sm text-grey-900 w-28"
|
|
|
|
@click="$emit('secondary-clicked')"
|
|
|
|
>
|
2022-02-17 13:16:36 +05:30
|
|
|
<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"
|
2022-02-17 13:16:36 +05:30
|
|
|
: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';
|
2022-02-17 13:16:36 +05:30
|
|
|
|
|
|
|
export default {
|
|
|
|
emits: ['primary-clicked', 'secondary-clicked'],
|
|
|
|
components: { Button },
|
|
|
|
props: {
|
|
|
|
usePrimary: { type: Boolean, default: true },
|
|
|
|
primaryDisabled: { type: Boolean, default: false },
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|