-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmodal.vue
35 lines (34 loc) · 814 Bytes
/
modal.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<template lang="pug">
.container
p
.btn click
modal(v-bind:is-opened.sync="opened1")
.modal-content
h4 Header
p Content
.modal-footer
.btn.btn-flat(@click="close1") close
p
.btn bottom-sheet
modal(bottom-sheet v-bind:is-opened.sync="opened2")
.modal-content
p Content
.modal-footer
.btn.btn-flat(@click="close2") close
p
a(href="https://github.com/paulpflug/vue-materialize/blob/master/dev/modal.vue") source
</template>
<script lang="coffee">
require("./materialize.config.scss")
module.exports =
components:
"modal": require "../src/modal.coffee"
data: ->
opened1: false
opened2: false
methods:
close1: ->
@opened1 = false
close2: ->
@opened2 = false
</script>