init
This commit is contained in:
parent
07f356fdda
commit
f70fd2d72c
|
|
@ -4,7 +4,7 @@
|
|||
<meta charset="UTF-8" />
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Vite App</title>
|
||||
<title>YY-SEARCH</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<script setup>
|
||||
import HelloWorld from "./components/HelloWorld.vue";
|
||||
import Welcome from "./components/Welcome.vue";
|
||||
import TheWelcome from "./components/TheWelcome.vue";
|
||||
</script>
|
||||
|
||||
|
|
@ -14,7 +14,7 @@ import TheWelcome from "./components/TheWelcome.vue";
|
|||
/>
|
||||
|
||||
<div class="wrapper">
|
||||
<HelloWorld msg="You did it!" />
|
||||
<Welcome msg="You did it!" />
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
|
|
|||
|
|
@ -7,9 +7,25 @@ defineProps({
|
|||
});
|
||||
</script>
|
||||
|
||||
<script>
|
||||
export default{
|
||||
data(){
|
||||
return{
|
||||
keys:''
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
Search(){
|
||||
alert(this.keys);
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="greetings">
|
||||
<h1 class="green">{{ msg }}</h1>
|
||||
<input type="text" v-model="keys" id="word" v-on:keyup.enter="Search()">
|
||||
<h3>
|
||||
You’ve successfully created a project with
|
||||
<a href="https://vitejs.dev/" target="_blank" rel="noopener">Vite</a> +
|
||||
Loading…
Reference in New Issue