Skip to content

Commit e96af5a

Browse files
committed
add test
1 parent d91f708 commit e96af5a

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

src/components/modal.vue

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<template lang="html">
2+
<div class="modal">
3+
This is a modal
4+
</div>
5+
</template>
6+
7+
<script>
8+
export default {
9+
}
10+
</script>
11+
12+
<style lang="css">
13+
.modal {
14+
width: 100px;
15+
height: 100px;
16+
border: 1px solid #ccc;
17+
}
18+
</style>

src/pages/user/index/app.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<template>
22
<div id="app">
3+
<modal></modal>
34
<div class="dd">
45
Index
56
</div>
@@ -11,7 +12,11 @@
1112

1213
<script>
1314
import logo from 'assets/img/logo.png'
15+
import modal from 'components/modal.vue'
1416
export default {
17+
components: {
18+
modal
19+
},
1520
data () {
1621
return {
1722
msg: 'Use Vue 2.0 Today!',

0 commit comments

Comments
 (0)