Fix page for modal documentation (#132)

This commit is contained in:
Mysterious_Dev
2023-11-11 22:09:19 +01:00
committed by GitHub
parent 39a4297168
commit fd82ec7659

View File

@@ -4,13 +4,13 @@
<DemoContainer> <DemoContainer>
<Button :action="() => this.$refs.reportModal.show()">Show Report Modal</Button> <Button :action="() => this.$refs.reportModal.show()">Show Report Modal</Button>
<Button :action="() => this.$refs.confirmModal.show()">Show Confirm Modal</Button> <Button :action="() => this.$refs.confirmModal.show()">Show Confirm Modal</Button>
<ModalReport <ReportModal
ref="reportModal" ref="reportModal"
itemType="project" itemType="project"
:reportTypes="['cringitude', 'rudeness', 'notgamer', 'windowsuser']" :reportTypes="['cringitude', 'rudeness', 'notgamer', 'windowsuser']"
> >
</ModalReport> </ReportModal>
<ModalConfirm <ConfirmModal
ref="confirmModal" ref="confirmModal"
title="Are you sure you want to delete this version?" title="Are you sure you want to delete this version?"
description="This will remove this version forever (like really forever)." description="This will remove this version forever (like really forever)."
@@ -18,13 +18,13 @@
proceed-label="Delete" proceed-label="Delete"
confirmationText="Hello" confirmationText="Hello"
> >
</ModalConfirm> </ConfirmModal>
</DemoContainer> </DemoContainer>
::: :::
```vue ```vue
<Button :action="() => this.$refs.reportModal.modal.show()">Show Modal</Button> <Button :action="() => this.$refs.reportModal.modal.show()">Show Modal</Button>
<ModalReport <ReportModal
ref="reportModal" ref="reportModal"
itemType="project" itemType="project"
:reportTypes="['cringitude', 'rudeness', 'notgamer', 'windowsuser']" :reportTypes="['cringitude', 'rudeness', 'notgamer', 'windowsuser']"