2023-02-28 08:29:30 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
|
|
|
<p>Custom content such as buttons can be placed at the footer section with the <i>footer</i> slot.</p>
|
|
|
|
</DocSectionText>
|
|
|
|
<div class="card flex justify-content-center">
|
|
|
|
<Button label="Show" icon="pi pi-external-link" @click="visible = true" />
|
|
|
|
|
|
|
|
<Dialog v-model:visible="visible" modal header="Header" :style="{ width: '50vw' }">
|
|
|
|
<p>
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
|
|
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<template #footer>
|
2023-03-03 12:15:20 +00:00
|
|
|
<Button label="No" icon="pi pi-times" @click="visible = false" text />
|
2023-02-28 08:29:30 +00:00
|
|
|
<Button label="Yes" icon="pi pi-check" @click="visible = false" autofocus />
|
|
|
|
</template>
|
|
|
|
</Dialog>
|
|
|
|
</div>
|
|
|
|
<DocSectionCode :code="code" />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
visible: false,
|
|
|
|
code: {
|
|
|
|
basic: `
|
|
|
|
<Button label="Show" icon="pi pi-external-link" @click="visible = true" />
|
|
|
|
|
|
|
|
<Dialog v-model:visible="visible" modal header="Header" :style="{ width: '50vw' }">
|
|
|
|
<p>
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
|
|
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
|
|
</p>
|
|
|
|
<template #footer>
|
2023-03-03 12:15:20 +00:00
|
|
|
<Button label="No" icon="pi pi-times" @click="visible = false" text />
|
2023-02-28 08:29:30 +00:00
|
|
|
<Button label="Yes" icon="pi pi-check" @click="visible = false" autofocus />
|
|
|
|
</template>
|
|
|
|
</Dialog>`,
|
|
|
|
options: `
|
|
|
|
<template>
|
|
|
|
<div class="card flex justify-content-center">
|
|
|
|
<Button label="Show" icon="pi pi-external-link" @click="visible = true" />
|
|
|
|
<Dialog v-model:visible="visible" modal header="Header" :style="{ width: '50vw' }">
|
|
|
|
<p>
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
|
|
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
|
|
</p>
|
|
|
|
<template #footer>
|
2023-03-03 12:15:20 +00:00
|
|
|
<Button label="No" icon="pi pi-times" @click="visible = false" text />
|
2023-02-28 08:29:30 +00:00
|
|
|
<Button label="Yes" icon="pi pi-check" @click="visible = false" autofocus />
|
|
|
|
</template>
|
|
|
|
</Dialog>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
visible: false
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
<\/script>`,
|
|
|
|
composition: `
|
|
|
|
<template>
|
|
|
|
<div class="card flex justify-content-center">
|
|
|
|
<Button label="Show" icon="pi pi-external-link" @click="visible = true" />
|
|
|
|
<Dialog v-model:visible="visible" modal header="Header" :style="{ width: '50vw' }">
|
|
|
|
<p>
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
|
|
|
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
|
|
</p>
|
|
|
|
<template #footer>
|
2023-03-03 12:15:20 +00:00
|
|
|
<Button label="No" icon="pi pi-times" @click="visible = false" text />
|
2023-02-28 08:29:30 +00:00
|
|
|
<Button label="Yes" icon="pi pi-check" @click="visible = false" autofocus />
|
|
|
|
</template>
|
|
|
|
</Dialog>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
import { ref } from "vue";
|
|
|
|
|
|
|
|
const visible = ref(false);
|
|
|
|
<\/script>`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|