mirror of
https://github.com/KevinMidboe/vue-js-modal.git
synced 2025-10-29 18:00:20 +00:00
Minor refactoring
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
<template>
|
||||
<div>
|
||||
<modal name="foo">bar</modal>
|
||||
<modal name="foo">Woot</modal>
|
||||
<p>Hi from {{ name }}.</p>
|
||||
|
||||
<button @click="$modal.show('foo')">
|
||||
Open modal
|
||||
</button>
|
||||
<p>Hi from {{ name }}</p>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -17,3 +18,12 @@ export default {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
body {
|
||||
font-family: 'Avenir', Helvetica, Arial, sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
color: #2c3e50;
|
||||
padding: 50px;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user