This commit is contained in:
suguo.yao 2022-10-19 00:30:06 +08:00
parent 07f356fdda
commit f70fd2d72c
3 changed files with 19 additions and 3 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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>
Youve successfully created a project with
<a href="https://vitejs.dev/" target="_blank" rel="noopener">Vite</a> +