Skip to content

Commit 9117aa3

Browse files
committed
更新英文版 README 文件,修正依赖项格式,确保代码示例缩进一致,增加语言设置说明,优化可读性。
1 parent 04838b2 commit 9117aa3

File tree

1 file changed

+19
-15
lines changed

1 file changed

+19
-15
lines changed

README.en.md

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -46,35 +46,36 @@ A powerful Vue 3 mathematical expression editor component that supports variable
4646
### Requirements
4747

4848
This component depends on:
49+
4950
- Vue >= 3.3.0
5051
- Element Plus >= 2.4.0
5152

5253
### Installation Steps
5354

5455
1. 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

6061
2. Install vue-expression-editor:
6162

62-
```bash
63-
npm install vue-expression-editor
64-
```
63+
```bash
64+
npm install vue-expression-editor
65+
```
6566

6667
3. 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

7980
If you're using on-demand importing, make sure to import the required components and their styles:
8081

@@ -302,13 +303,15 @@ interface Variable {
302303
The editor supports both Chinese and English interfaces:
303304

304305
1. Set language via prop:
306+
305307
```vue
306308
<ExpressionEditor
307309
:language="'en'" <!-- Set to English interface -->
308310
/>
309311
```
310312

311313
2. 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

324327
3. 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

Comments
 (0)