提交 a104752c 编写于 作者: W weixin_49112037

Mon Nov 18 14:11:00 CST 2024 inscode

上级 4c602b69
......@@ -5,16 +5,14 @@ import TheWelcome from './components/TheWelcome.vue'
<template>
<header>
<img alt="Vue logo" class="logo" src="./assets/logo.svg" width="125" height="125" />
<div class="wrapper">
<HelloWorld msg="You did it!" />
</div>
</header>
<main>
<TheWelcome />
</main>
</template>
<style scoped>
......
<script setup>
import b from './b.vue'
import WelcomeItem from './WelcomeItem.vue'
defineProps({
msg: {
type: String,
......@@ -13,13 +13,8 @@ const currentMe = () => {
<template>
<div class="greetings">
<h1 class="green">{{ msg }}</h1>
<h3>
You’ve successfully created a project with
<a target="_blank" href="https://vitejs.dev/">Vite</a> +
<a target="_blank" href="https://vuejs.org/">Vue 3</a>.
</h3>
<b :methodA="currentMe"></b>
5555555555555
<WelcomeItem :methodA="currentMe"></WelcomeItem>
</div>
</template>
......
<template>
<div class="item">
<i>
<slot name="icon"></slot>
</i>
<div class="details">
<h3>
<slot name="heading"></slot>
</h3>
<slot></slot>
</div>
<div class="item" @click="getM">
1121241212
</div>
</template>
<script setup>
const props = defineProps({
methodA: Function
});
const getM = () => {
console.log(props.methodA)
}
</script>
<style scoped>
.item {
......
......@@ -12,13 +12,7 @@ const currentMe = () => {
<template>
<div class="greetings">
<h1 class="green">{{ msg }}</h1>
<h3>
You’ve successfully created a project with
<a target="_blank" href="https://vitejs.dev/">Vite</a> +
<a target="_blank" href="https://vuejs.org/">Vue 3</a>.
</h3>
<b :methodA="currentMe"
bbbbbbbbbbbbbbbbbbbbbb
</div>
</template>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册