-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
43 lines (36 loc) · 988 Bytes
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="./css/dialog.css" />
</head>
<body>
<div id="app">
<button @click="visible=!visible">按钮</button>
<kkb-dialog :title="title" :visible.sync="visible" @open="open" @close="close">
<span>这是一段信息</span>
</kkb-dialog>
</div>
<script src="./js/vue.js"></script>
<script src="./js/dialog.js"></script>
<script>
new Vue({
el: '#app',
data: {
title: '新的标题',
visible: true
},
methods: {
open() {
console.log('打开了');
},
close() {
console.log('关闭了');
}
}
});
</script>
</body>
</html>