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>
|
|
|
|
|
|
|
|
<div ref="infoModal">
|
|
|
|
<button @click="showInfo = true" class="btn btn-primary">Show Info Modal</button>
|
|
|
|
<info-modal
|
|
|
|
v-if="showInfo"
|
|
|
|
@close="showInfo = false"
|
2024-04-08 17:35:41 +08:00
|
|
|
:infoParams="infoParams"
|
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' %>
|