Skip to content

Commit f7f147d

Browse files
committed
在HelloWorld中引入3个范例组件
1 parent 8280f03 commit f7f147d

1 file changed

Lines changed: 16 additions & 27 deletions

File tree

src/components/HelloWorld.vue

Lines changed: 16 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,30 @@
11
<template>
22
<div class="hello">
33
<h1>{{ msg }}</h1>
4-
<p>
5-
For a guide and recipes on how to configure / customize this project,<br>
6-
check out the
7-
<a href="https://cli.vuejs.org" target="_blank" rel="noopener">vue-cli documentation</a>.
8-
</p>
9-
<h3>Installed CLI Plugins</h3>
10-
<ul>
11-
<li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-babel" target="_blank" rel="noopener">babel</a></li>
12-
<li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-eslint" target="_blank" rel="noopener">eslint</a></li>
13-
</ul>
14-
<h3>Essential Links</h3>
15-
<ul>
16-
<li><a href="https://vuejs.org" target="_blank" rel="noopener">Core Docs</a></li>
17-
<li><a href="https://forum.vuejs.org" target="_blank" rel="noopener">Forum</a></li>
18-
<li><a href="https://chat.vuejs.org" target="_blank" rel="noopener">Community Chat</a></li>
19-
<li><a href="https://twitter.com/vuejs" target="_blank" rel="noopener">Twitter</a></li>
20-
<li><a href="https://news.vuejs.org" target="_blank" rel="noopener">News</a></li>
21-
</ul>
22-
<h3>Ecosystem</h3>
23-
<ul>
24-
<li><a href="https://router.vuejs.org" target="_blank" rel="noopener">vue-router</a></li>
25-
<li><a href="https://vuex.vuejs.org" target="_blank" rel="noopener">vuex</a></li>
26-
<li><a href="https://github.com/vuejs/vue-devtools#vue-devtools" target="_blank" rel="noopener">vue-devtools</a></li>
27-
<li><a href="https://vue-loader.vuejs.org" target="_blank" rel="noopener">vue-loader</a></li>
28-
<li><a href="https://github.com/vuejs/awesome-vue" target="_blank" rel="noopener">awesome-vue</a></li>
29-
</ul>
4+
<!-- 组件通信 -->
5+
<Communication></Communication>
6+
<!-- 表单 -->
7+
<!-- <FormExample></FormExample> -->
8+
<!-- 插槽 -->
9+
<!-- <SlotExample></SlotExample> -->
3010
</div>
3111
</template>
3212

3313
<script>
14+
import Communication from '@/components/communication';
15+
import FormExample from '@/components/form';
16+
import SlotExample from '@/components/slots';
17+
3418
export default {
3519
name: 'HelloWorld',
3620
props: {
3721
msg: String
38-
}
22+
},
23+
components: {
24+
Communication,
25+
FormExample,
26+
SlotExample
27+
},
3928
}
4029
</script>
4130

0 commit comments

Comments
 (0)