From 6ffc8b1872a5f34712bad7fa6a258628e6f6d883 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期二, 07 一月 2025 18:06:12 +0800
Subject: [PATCH] refactor(qiankunState): 重置字体大小为 null

---
 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