1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
<template> <a-room-detail-car ref="carComponent" /> </template> <script> import ARoomDetailCar from './aRoomDetailCar' export default { components: { ARoomDetailCar }, methods: { open(data) { this.$refs.carComponent.handleSwitch(data) }, refresh() { this.$refs.carComponent.handleNotify() } } } </script>