// components/header/header.js Component({ /** * 组件的属性列表 props */ properties: { list: { type: Array, value: [] } }, options: { multipleSlots: true // 在组件定义时的选项中启用多slot支持 }, /** * 组件的初始数据 */ data: { demo: "测试" }, /** * 组件的方法列表 */ methods: { sendFather() { this.triggerEvent("change", this.data.demo) } } })