Parent component <div> <small-topic :subjectTypeValue="searchForm.subjectType"></small-topic> </div> import smallTopic from "./smallTopic" components:{ smallTopic } searchForm:{ subjectType:'11111' },Copy the code
Subcomponent receiving values :{subjectTypeValue: {TYPE: String, default: "},}, watch: {subjectTypeValue:'getBigTopic' // Can be the name of methods}, methods:{this.getBigTopic()}Copy the code
www.cnblogs.com/ilovexiaomi…