Skip to content

Commit 822b963

Browse files
committed
(demo) add adaptive modal with auto-height
1 parent 36f3093 commit 822b963

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

demo/src/App.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<demo-conditional-modal />
77
<demo-size-modal />
88
<demo-adaptive-modal />
9+
<demo-adaptive-and-auto-height-modal />
910
<demo-resizable-modal />
1011
<demo-draggable-modal />
1112

@@ -30,6 +31,7 @@
3031
<div style="margin-top: 20px; margin-bottom: 15px;">
3132
<button class="btn" @click="$modal.show('example-resizable')">Resizable</button>
3233
<button class="btn" @click="$modal.show('example-adaptive')">Adaptive</button>
34+
<button class="btn" @click="$modal.show('example-adaptive-and-auto-height')">Adaptive, Height: auto</button>
3335
<button class="btn" @click="$modal.show('example-draggable')">Draggable</button>
3436
<br />
3537
<button class="btn green" @click="$modal.show('dog-profile')">Demo: Dog Profile photo</button>
@@ -60,6 +62,7 @@
6062

6163
<script>
6264
import DemoAdaptiveModal from './components/Modal_Adaptive.vue'
65+
import DemoAdaptiveAndAutoHeightModal from './components/Modal_AdaptiveAndAutoHeight.vue'
6366
import DemoDraggableModal from './components/Modal_Draggable.vue'
6467
import DemoResizableModal from './components/Modal_Resizable.vue'
6568
import DemoConditionalModal from './components/Modal_Conditional.vue'
@@ -73,6 +76,7 @@ export default {
7376
name: 'app',
7477
components: {
7578
DemoAdaptiveModal,
79+
DemoAdaptiveAndAutoHeightModal,
7680
DemoDraggableModal,
7781
DemoResizableModal,
7882
DemoErrorModal,
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<template>
2+
<modal
3+
name="example-adaptive-and-auto-height"
4+
:adaptive="true"
5+
height="auto"
6+
>
7+
<div class="example-modal-content">
8+
Appropriately exploit professional infrastructures rather than unique growth strategies. Assertively build leveraged growth strategies vis-a-vis multimedia based vortals. Progressively simplify cross-platform value through interactive imperatives. Objectively
9+
implement enabled web services after plug-and-play ROI. Distinctively impact inexpensive schemas before installed base imperatives. Holisticly benchmark pandemic process improvements without wireless experiences. Efficiently create worldwide partnerships
10+
after tactical vortals. Uniquely productize enabled platforms vis-a-vis timely processes. Conveniently unleash standards compliant niches through highly efficient testing procedures. Rapidiously enable pandemic niche markets whereas viral markets.
11+
Assertively simplify alternative partnerships and error-free e-commerce. Professionally formulate 24/365 internal or "organic" sources through equity invested mindshare. Globally redefine unique best practices for.
12+
</div>
13+
</modal>
14+
</template>
15+
<script>
16+
export default {
17+
name: 'Modal_Adaptive and Auto-Height'
18+
}
19+
</script>

0 commit comments

Comments
 (0)