| | |
| | | import { ref, computed, inject } from "vue"; |
| | | import { ElMessage } from "element-plus"; |
| | | import { initeWaterPrimitiveView } from "@/utils/water"; |
| | | // const emit = defineEmits(["start", "end"]); |
| | | const { startSimulate, endSimulate } = inject("simulateActions"); |
| | | |
| | | // function endPlay() { |
| | | // emit("end"); |
| | | // } |
| | | |
| | | function startPlay() { |
| | | console.log("开始模拟按钮被点击"); |
| | | console.log("当前选中的区域:", props.selectedArea); |
| | | initeWaterPrimitiveView(); |
| | | // emit("start"); |
| | | startSimulate(); |
| | | } |
| | | // 定义 Props |
| | |
| | | }); |
| | | ElMessage.success("方案已保存"); |
| | | saveDialogVisible.value = false; |
| | | }; |
| | | // 开始模拟 |
| | | const startSimulation = () => { |
| | | console.log("开始模拟按钮被点击"); |
| | | console.log("当前选中的区域:", props.selectedArea); |
| | | }; |
| | | </script> |
| | | |