1、文档说明https://cn.vuejs.org/v2/api/#provide-inject2、实例element ui的dropdown组件dropdown.vue:provide() { return { dropdown: this }; }dropdown-menu.vuedata() { return { size: this.dropdown.dropdownSize }; }, inject: ['dropdown'],