@@ -46,35 +46,36 @@ A powerful Vue 3 mathematical expression editor component that supports variable
4646### Requirements
4747
4848This component depends on:
49+
4950- Vue >= 3.3.0
5051- Element Plus >= 2.4.0
5152
5253### Installation Steps
5354
54551 . First, ensure you have the required dependencies installed in your project:
5556
56- ``` bash
57- npm install vue@^3.3.0 element-plus@^2.4.0
58- ```
57+ ``` bash
58+ npm install vue@^3.3.0 element-plus@^2.4.0
59+ ```
5960
60612 . Install vue-expression-editor:
6162
62- ``` bash
63- npm install vue-expression-editor
64- ```
63+ ``` bash
64+ npm install vue-expression-editor
65+ ```
6566
66673 . Fully import Element Plus in your entry file (e.g., main.ts or main.js):
6768
68- ``` javascript
69- import { createApp } from ' vue'
70- import ElementPlus from ' element-plus'
71- import ' element-plus/dist/index.css'
72- import App from ' ./App.vue'
69+ ``` javascript
70+ import { createApp } from ' vue'
71+ import ElementPlus from ' element-plus'
72+ import ' element-plus/dist/index.css'
73+ import App from ' ./App.vue'
7374
74- const app = createApp (App)
75- app .use (ElementPlus)
76- app .mount (' #app' )
77- ```
75+ const app = createApp (App)
76+ app .use (ElementPlus)
77+ app .mount (' #app' )
78+ ```
7879
7980If you're using on-demand importing, make sure to import the required components and their styles:
8081
@@ -302,13 +303,15 @@ interface Variable {
302303The editor supports both Chinese and English interfaces:
303304
3043051 . Set language via prop:
306+
305307 ``` vue
306308 <ExpressionEditor
307309 :language="'en'" <!-- Set to English interface -->
308310 />
309311 ```
310312
3113132 . Dynamic language switching:
314+
312315 ``` vue
313316 <script setup>
314317 const currentLang = ref('zh')
@@ -322,6 +325,7 @@ The editor supports both Chinese and English interfaces:
322325 ```
323326
3243273 . Switch in settings panel:
328+
325329 - Click the settings button to open settings panel
326330 - Select desired language in language settings
327331 - Settings will be automatically saved
0 commit comments