-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodal.html
40 lines (36 loc) · 946 Bytes
/
modal.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>iview example</title>
<link rel="stylesheet" type="text/css" href="./styles/iview.css">
<script type="text/javascript" src="./js/vue.js"></script>
<script type="text/javascript" src="./js/iview.js"></script>
</head>
<body>
<div id="app">
<i-button type="primary" @click="openModal1">click1</i-button>
<i-button type="primary" @click="openModal2">click2</i-button>
</div>
<script>
var vm = new Vue({
el: '#app',
data: {
columns:[],
datas: [
]
},
methods: {
openModal1: function(){
Vue.prototype.$Notice.success({title:'test'});
},
openModal2: function(){
Vue.prototype.$Modal.confirm({title:'test'});
}
},
created: function(){
}
})
</script>
</body>
</html>