-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
57 lines (54 loc) · 1.05 KB
/
test.html
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html>
<head>
<title>test</title>
<style>
.modal-vue-panel{
position: relative;
width: 100%;
height: 100vh;
}
.modal-vue-panel:after,
.modal-vue-panel:before{
position: absolute;
content:'';
top:0;
bottom: 0;
display: block;
z-index: -1;
}
.modal-vue-panel:after{
left: 50%;
right: 0;
background: red;
}
.modal-vue-panel:before{
right: 50%;
left: 0;
background:green;
}
</style>
</head>
<body>
<div id="app">
<button @click="is3D = true">3d</button>
<vue-modaltor :visible="is3D" @hide="is3D = false" :default-width="'40%'">
<div class="subject">
<h3 style="color:#f3f3f3">game of thrones quotes</h3>
</div>
</vue-modaltor>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script src="E:/project/modaltor/dist/vue-modaltor.js"></script>
<script type="text/javascript">
var app = new Vue({
el: '#app',
data: {
is3D:false,
},
methods:{
}
})
</script>
</body>
</html>