子中 this.$emit('showCityName',data);
父中的
<train-city @showCityName="updateCity" :sendData="toCity"></train-city>
转 https://blog.csdn.net/l284969634/article/details/78595077
子中 this.$emit('showCityName',data);
父中的
<train-city @showCityName="updateCity" :sendData="toCity"></train-city>
转 https://blog.csdn.net/l284969634/article/details/78595077