Эх сурвалжийг харах

background color about vue component

night-cherry 3 долоо хоног өмнө
parent
commit
4d1845e7e0
3 өөрчлөгдсөн 5 нэмэгдсэн , 2 устгасан
  1. 1 1
      common/Header.vue
  2. 1 0
      index.html
  3. 3 1
      index.js

+ 1 - 1
component/Headapes.vue → common/Header.vue

@@ -1,6 +1,6 @@
 <template>
 <div class="headerapes">
-  <h4 style="color:orange;">header component</h4>
+  <h4 style="color:orange;">this is Header.vue component</h4>
 </div>
 </template>
 <script type="module">

+ 1 - 0
index.html

@@ -10,6 +10,7 @@
     <!-- <h3>this is node -> Vue test</h3> -->
     <div id='app'  style='color:red; font-size:20px; font-weight:bold;'>app node start...</div>
     <template id="my-app">
+		<Header></Header>
 		<Headapes></Headapes>
 		<!-- <div v-html='info'></div> 
 		<Home @op="add">home vue</Home>

+ 3 - 1
index.js

@@ -31,6 +31,7 @@ import Register from "./component/approve/Register.vue";
 import File from "./component/file/File.vue";
 // import Headapes from "./component/Headapes.vue";
 import Headapes from "./common/Headapes.vue";
+import Header from './common/Header.vue';
 import i18n from "./i18n.js";
 import { useI18n } from 'vue-i18n';
 
@@ -60,7 +61,8 @@ const app=createApp({
     Login,
     Register,
     File,
-    Headapes
+    Headapes,
+    Header
   },
   data(){
     return{