From 8f52d28dbd8e958068608638b5d98ff98682f1b3 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期五, 20 十二月 2024 10:59:02 +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