| | |
| | | </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> |
| | | |
| | |
| | | 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) => { |
| | | console.log(data.split(",")[1]); |