2023-09-20 07:49:14 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
2023-10-29 19:34:22 +00:00
|
|
|
<p>Header and Footer sections allow customization via templating.</p>
|
2023-09-20 07:49:14 +00:00
|
|
|
</DocSectionText>
|
|
|
|
<div class="card flex justify-content-center">
|
2024-01-23 22:25:44 +00:00
|
|
|
<Button label="Show" @click="visible = true" />
|
2023-09-20 07:49:14 +00:00
|
|
|
|
2024-01-23 22:25:44 +00:00
|
|
|
<Dialog v-model:visible="visible" modal header="Edit Profile" :style="{ width: '25rem' }">
|
2023-10-29 19:34:22 +00:00
|
|
|
<template #header>
|
|
|
|
<div class="inline-flex align-items-center justify-content-center gap-2">
|
|
|
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" shape="circle" />
|
|
|
|
<span class="font-bold white-space-nowrap">Amy Elsner</span>
|
2023-09-20 07:49:14 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
2024-01-23 22:25:44 +00:00
|
|
|
<span class="p-text-secondary block mb-5">Update your information.</span>
|
|
|
|
<div class="flex align-items-center gap-3 mb-3">
|
|
|
|
<label for="username" class="font-semibold w-6rem">Username</label>
|
|
|
|
<InputText id="username" class="flex-auto" autocomplete="off" />
|
|
|
|
</div>
|
|
|
|
<div class="flex align-items-center gap-3 mb-2">
|
|
|
|
<label for="email" class="font-semibold w-6rem">Email</label>
|
|
|
|
<InputText id="Email" class="flex-auto" autocomplete="off" />
|
|
|
|
</div>
|
2023-10-29 19:34:22 +00:00
|
|
|
<template #footer>
|
2024-01-24 06:54:02 +00:00
|
|
|
<Button label="Save" outlined @click="visible = false" autofocus />
|
2023-10-29 19:34:22 +00:00
|
|
|
</template>
|
2023-09-20 07:49:14 +00:00
|
|
|
</Dialog>
|
|
|
|
</div>
|
|
|
|
<DocSectionCode :code="code" />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
visible: false,
|
|
|
|
code: {
|
2023-09-22 12:54:14 +00:00
|
|
|
basic: `
|
2024-01-23 22:25:44 +00:00
|
|
|
<Button label="Show" @click="visible = true" />
|
2023-09-20 07:49:14 +00:00
|
|
|
|
2024-01-23 22:25:44 +00:00
|
|
|
<Dialog v-model:visible="visible" modal header="Edit Profile" :style="{ width: '25rem' }">
|
2023-10-29 19:34:22 +00:00
|
|
|
<template #header>
|
|
|
|
<div class="inline-flex align-items-center justify-content-center gap-2">
|
|
|
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" shape="circle" />
|
|
|
|
<span class="font-bold white-space-nowrap">Amy Elsner</span>
|
2023-09-20 07:49:14 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
2024-01-23 22:25:44 +00:00
|
|
|
<span class="p-text-secondary block mb-5">Update your information.</span>
|
|
|
|
<div class="flex align-items-center gap-3 mb-3">
|
|
|
|
<label for="username" class="font-semibold w-6rem">Username</label>
|
|
|
|
<InputText id="username" class="flex-auto" autocomplete="off" />
|
|
|
|
</div>
|
|
|
|
<div class="flex align-items-center gap-3 mb-2">
|
|
|
|
<label for="email" class="font-semibold w-6rem">Email</label>
|
|
|
|
<InputText id="Email" class="flex-auto" autocomplete="off" />
|
|
|
|
</div>
|
2023-10-29 19:34:22 +00:00
|
|
|
<template #footer>
|
2024-01-24 06:54:02 +00:00
|
|
|
<Button label="Save" outlined @click="visible = false" autofocus />
|
2023-10-29 19:34:22 +00:00
|
|
|
</template>
|
2023-10-15 09:38:39 +00:00
|
|
|
</Dialog>
|
|
|
|
`,
|
2023-09-22 12:54:14 +00:00
|
|
|
options: `
|
|
|
|
<template>
|
2023-09-20 07:49:14 +00:00
|
|
|
<div class="card flex justify-content-center">
|
2024-01-23 22:25:44 +00:00
|
|
|
<Button label="Show" @click="visible = true" />
|
|
|
|
<Dialog v-model:visible="visible" modal header="Edit Profile" :style="{ width: '25rem' }">
|
2023-10-29 19:34:22 +00:00
|
|
|
<template #header>
|
|
|
|
<div class="inline-flex align-items-center justify-content-center gap-2">
|
|
|
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" shape="circle" />
|
|
|
|
<span class="font-bold white-space-nowrap">Amy Elsner</span>
|
2023-09-20 07:49:14 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
2024-01-23 22:25:44 +00:00
|
|
|
<span class="p-text-secondary block mb-5">Update your information.</span>
|
|
|
|
<div class="flex align-items-center gap-3 mb-3">
|
|
|
|
<label for="username" class="font-semibold w-6rem">Username</label>
|
|
|
|
<InputText id="username" class="flex-auto" autocomplete="off" />
|
|
|
|
</div>
|
|
|
|
<div class="flex align-items-center gap-3 mb-2">
|
|
|
|
<label for="email" class="font-semibold w-6rem">Email</label>
|
|
|
|
<InputText id="Email" class="flex-auto" autocomplete="off" />
|
|
|
|
</div>
|
2023-10-29 19:34:22 +00:00
|
|
|
<template #footer>
|
2024-01-24 06:54:02 +00:00
|
|
|
<Button label="Save" outlined @click="visible = false" autofocus />
|
2023-10-29 19:34:22 +00:00
|
|
|
</template>
|
2023-09-20 07:49:14 +00:00
|
|
|
</Dialog>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
visible: false
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
2023-10-15 09:38:39 +00:00
|
|
|
<\/script>
|
|
|
|
`,
|
2023-09-22 12:54:14 +00:00
|
|
|
composition: `
|
|
|
|
<template>
|
2023-09-20 07:49:14 +00:00
|
|
|
<div class="card flex justify-content-center">
|
2024-01-23 22:25:44 +00:00
|
|
|
<Button label="Show" @click="visible = true" />
|
|
|
|
<Dialog v-model:visible="visible" modal header="Edit Profile" :style="{ width: '25rem' }">
|
2023-10-29 19:34:22 +00:00
|
|
|
<template #header>
|
|
|
|
<div class="inline-flex align-items-center justify-content-center gap-2">
|
|
|
|
<Avatar image="https://primefaces.org/cdn/primevue/images/avatar/amyelsner.png" shape="circle" />
|
|
|
|
<span class="font-bold white-space-nowrap">Amy Elsner</span>
|
2023-09-20 07:49:14 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
2024-01-23 22:25:44 +00:00
|
|
|
<span class="p-text-secondary block mb-5">Update your information.</span>
|
|
|
|
<div class="flex align-items-center gap-3 mb-3">
|
|
|
|
<label for="username" class="font-semibold w-6rem">Username</label>
|
|
|
|
<InputText id="username" class="flex-auto" autocomplete="off" />
|
|
|
|
</div>
|
|
|
|
<div class="flex align-items-center gap-3 mb-2">
|
|
|
|
<label for="email" class="font-semibold w-6rem">Email</label>
|
|
|
|
<InputText id="Email" class="flex-auto" autocomplete="off" />
|
|
|
|
</div>
|
2023-10-29 19:34:22 +00:00
|
|
|
<template #footer>
|
2024-01-24 06:54:02 +00:00
|
|
|
<Button label="Save" outlined @click="visible = false" autofocus />
|
2023-10-29 19:34:22 +00:00
|
|
|
</template>
|
2023-09-20 07:49:14 +00:00
|
|
|
</Dialog>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
import { ref } from "vue";
|
|
|
|
|
|
|
|
const visible = ref(false);
|
2023-10-15 09:38:39 +00:00
|
|
|
<\/script>
|
|
|
|
`
|
2023-09-20 07:49:14 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|