From 2cac4a0f4ea0b1cf7bff4759fae8136c72792563 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期一, 14 四月 2025 15:30:29 +0800
Subject: [PATCH] 番茄闹钟

---
 src/views/components/formula.vue |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/views/components/formula.vue b/src/views/components/formula.vue
index 9e3b39f..d8ee24b 100644
--- a/src/views/components/formula.vue
+++ b/src/views/components/formula.vue
@@ -12,7 +12,7 @@
       </div>
     </div>
     <h2>鍏紡杈撳叆</h2>
-    <math-field class="mathField" @input="handleInput" :menuItems="[]"></math-field>
+    <math-field class="mathField" @input="handleInput" :menuItems="[]">{{valueData}}</math-field>
   </div>
 </template>
 
@@ -22,9 +22,12 @@
   import graffiti from '@/components/graffiti/index.vue'
   const commonsVariable: any = inject('commonsVariable')
   const MG: any = inject('MG')
-  const handleInput = (...data) => {
-    console.log(data);
+  const valueData = ref("f(x) = \\frac{x}{2}")
+  const handleInput = (data) => {
+    console.log(data.target.value);
   }
+
+
 
   const content = ref('')
   const save = (data) => {
@@ -45,7 +48,7 @@
 
 <style lang="less">
   .mathField {
-    width: 500px;
+    // width: 500px;
     margin-top: 10px;
   }
 

--
Gitblit v1.9.1