vue 组件通讯
子组件select-district
通过
this.$emit('change', [this.provinces[this.provinceId], this.cities[this.cityId], this.districts[this.districtId]]);
创建名为change
事件给父组件传数据,由父组件user-addresses-create-and-edit
的onDistrictChanged
方法对change
事件进行处理
推荐文章: