2024-01-20 03:33:34 +08:00
|
|
|
<div>
|
|
|
|
<h1>Modals</h1>
|
2024-02-21 19:33:30 +08:00
|
|
|
<div id="modals" class="flex items-center gap-4 flex-wrap mb-6">
|
2024-04-02 16:29:20 +08:00
|
|
|
<div ref="wizardModal">
|
|
|
|
<button @click="showWizard = true" class="btn btn-primary">Show Wizard Modal</button>
|
|
|
|
<wizard-modal
|
|
|
|
v-if="showWizard"
|
|
|
|
@close="showWizard = false"
|
|
|
|
@alert="fireAlert"
|
|
|
|
:params="wizardParams"
|
|
|
|
:config="wizardConfig"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
|
2024-04-09 20:18:41 +08:00
|
|
|
<div ref="infoModalWrapper">
|
2024-04-02 16:29:20 +08:00
|
|
|
<button @click="showInfo = true" class="btn btn-primary">Show Info Modal</button>
|
|
|
|
<info-modal
|
|
|
|
v-if="showInfo"
|
|
|
|
@close="showInfo = false"
|
2024-04-09 20:18:41 +08:00
|
|
|
ref="modal"
|
|
|
|
:start-hidden="false"
|
|
|
|
:info-params="infoParams"
|
|
|
|
title="Some title"
|
|
|
|
help-text="Help">
|
2024-04-02 16:29:20 +08:00
|
|
|
<div>I am a component that gets consumed by the slot</div>
|
|
|
|
</info-modal>
|
|
|
|
</div>
|
2024-01-20 03:33:34 +08:00
|
|
|
</div>
|
2024-04-02 16:29:20 +08:00
|
|
|
|
|
|
|
|
2024-01-20 03:33:34 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<%= javascript_include_tag 'vue_design_system_modals' %>
|