-
Notifications
You must be signed in to change notification settings - Fork 100
/
Copy pathtest.html
77 lines (71 loc) · 1.54 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="dist/vuep.css">
<link rel="stylesheet" href="node_modules/codemirror/addon/hint/show-hint.css">
</head>
<body>
<div id="app">
<vuep template="#example2" :options="{ mode: 'javascript' }"></vuep>
<vuep template="#example"></vuep>
</div>
<script type="text/x-template" id="example">
<style>
.main {
color: #2c3e50;
}
.text {
color: #4fc08d;
}
</style>
<template>
<div class="main">
<h2> Hello <span class="text">{{ name }}</span>!</h2>
<h2>Features</h2>
<ul>
<li v-for="text in features">{{ text }}</li>
</ul>
</div>
</template>
<script>
module.exports = {
data () {
return {
name: 'Vuep',
features: [
'Vue component spec',
'Scoped style',
'UMD and CommonJS build'
]
}
}
}
</script>
</script>
<script type="text/x-template" id="example2">
module.exports = {
template: '<div>123</div>',
data () {
return {
name: 'Vuep',
features: [
'Vue component spec',
'Scoped style',
'UMD and CommonJS build'
]
}
}
}
</script>
</body>
<script src="node_modules/codemirror/lib/codemirror.js"></script>
<script src="node_modules/vue/dist/vue.js"></script>
<script src="dist/vuep.js"></script>
<script>
new Vue({ // eslint-disable-line
el: '#app'
})
</script>
</html>