forked from QingWei-Li/vuep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
58 lines (53 loc) · 1.43 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
<!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" style="max-width: 800px; margin: auto;">
<vuep template="#example"></vuep>
</div>
<script v-pre 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 src="https://unpkg.com/babel-standalone/babel.min.js"></script> -->
<!-- <script src="https://cdn.rawgit.com/reverland/babel-plugin-transform-vue-jsx/4d36bff3/dist/babel-plugin-transform-vue-jsx.min.js"></script> -->
<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().$mount('#app')
</script>