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