From f82eb01fe65e513fb43342db0e25cafa0e0d2db8 Mon Sep 17 00:00:00 2001 From: wangjuncheng <1> Date: 星期五, 18 四月 2025 14:07:12 +0800 Subject: [PATCH] Merge branch 'master' of http://103.135.160.14:9034/r/NslWeb --- src/components/tools/Aspect.vue | 22 ++++++++++++++++++---- 1 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/components/tools/Aspect.vue b/src/components/tools/Aspect.vue index bd9a949..d34eb04 100644 --- a/src/components/tools/Aspect.vue +++ b/src/components/tools/Aspect.vue @@ -1,14 +1,20 @@ // 鍧″悜鍒嗘瀽 <template> <div class="aspect"> - <el-button @click="handleDraw">缁樺埗鍖哄煙</el-button> - <el-button @click="handleClear">鍏抽棴鍧″害</el-button> + <div> + <el-button @click="handleDraw">缁樺埗鍖哄煙</el-button> + <el-button @click="handleClear">鍏抽棴鍧″害</el-button> + </div> + <div style="margin-top: 10px"> + <el-button @click="handleaspect">鍧″害鍒嗘瀽</el-button> + <el-button @click="handleSlope">鍧″悜鍒嗘瀽</el-button> + </div> </div> </template> <script setup> import { reactive, defineEmits } from "vue"; // 瀹氫箟 emit 鏂规硶 -const emit = defineEmits(["draw", "clear"]); +const emit = defineEmits(["draw", "clear", "handleaspect", "handleSlope"]); const handleDraw = () => { console.log("缁樺埗鍖哄煙"); emit("draw"); @@ -17,11 +23,19 @@ console.log("鍏抽棴鍧″害"); emit("clear"); }; +const handleaspect = () => { + console.log("鍧″害鍒嗘瀽"); + emit("handleaspect"); +}; +const handleSlope = () => { + console.log("鍧″悜鍒嗘瀽"); + emit("handleSlope"); +}; </script> <style lang="less" scoped> .aspect { width: 215px; - height: 50px; + // height: 50px; background: url("@/assets/img/tools/plotting_new.png") no-repeat; filter: opacity(83%); background-size: 100% 100%; -- Gitblit v1.9.3