mirror of
https://github.com/KevinMidboe/vue-js-modal.git
synced 2025-10-29 18:00:20 +00:00
Updated demo, version 1.2.1 🚀
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
<template>
|
||||
<div>
|
||||
<modal name="foo">Woot</modal>
|
||||
<p>Hi from {{ name }}.</p>
|
||||
|
||||
<modal name="foo" :width="300" :height="140">
|
||||
Woot
|
||||
</modal>
|
||||
<p>Hi from <b>{{ name }}</b>.</p>
|
||||
<button @click="$modal.show('foo')">
|
||||
Open modal
|
||||
</button>
|
||||
@@ -26,4 +27,9 @@ body {
|
||||
color: #2c3e50;
|
||||
padding: 50px;
|
||||
}
|
||||
|
||||
.v--modal {
|
||||
text-align: center;
|
||||
padding: 50px;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user