You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
473 B

<template>
<!-- 第三步使用 -->
<ChildComponentA :parent_param="param" :parent_param_full="param2"></ChildComponentA>
</template>
<script>
// 第一步 import
import ChildComponentA from "@/components/ChildComponentA.vue";
export default {
// 第二步 注册
components: {ChildComponentA},
data() {
return {
param: "这是父组件传递的参数1",
param2: "这是父组件传递的参数2"
}
}
}
</script>
<style scoped>
</style>