@@ -142,18 +142,28 @@ app.mount('#app')
142
142
<ExpressionEditor
143
143
v-model="expression"
144
144
:variables="variables"
145
- :show-toolbar="true" <!-- Show toolbar -->
146
- :show-validate="true" <!-- Show validation button -->
147
- :show-info="true" <!-- Show information button -->
148
- :show-theme="true" <!-- Show theme toggle -->
149
- :show-settings="true" <!-- Show settings button -->
150
- :show-preview="true" <!-- Show preview button -->
151
- :show-copy="true" <!-- Show copy button -->
152
- :show-style-toggle="true" <!-- Show style toggle -->
153
- :readonly="false" <!-- Enable editing -->
154
- :disabled="false" <!-- Enable component -->
155
- :max-length="1000" <!-- Maximum input length -->
156
- :autofocus="false" <!-- Auto focus on mount -->
145
+ :show-toolbar="true"
146
+ :show-validate="true"
147
+ :show-info="true"
148
+ :show-theme="true"
149
+ :show-settings="true"
150
+ :show-preview="true"
151
+ :show-copy="true"
152
+ :show-style-toggle="true"
153
+ :hide-variables="false"
154
+ :hide-keyboard="false"
155
+ :initial-settings="{
156
+ autoCompleteBrackets: false,
157
+ bracketColorEnabled: false,
158
+ isDarkMode: false,
159
+ horizontalLayout: false,
160
+ hideVariables: false,
161
+ hideKeyboard: false
162
+ }"
163
+ :readonly="false"
164
+ :disabled="false"
165
+ :max-length="1000"
166
+ :autofocus="false"
157
167
@update:modelValue="handleUpdate"
158
168
@validation-change="handleValidationChange"
159
169
@change="handleChange"
@@ -255,6 +265,8 @@ const insertAtCursor = (text) => {
255
265
| showPreview | boolean | true | Show preview button |
256
266
| showCopy | boolean | true | Show copy button |
257
267
| showStyleToggle | boolean | true | Show style toggle button |
268
+ | hideVariables | boolean | false | Whether to hide variable selection area |
269
+ | hideKeyboard | boolean | false | Whether to hide virtual keyboard |
258
270
| readonly | boolean | false | Read-only mode |
259
271
| disabled | boolean | false | Disable component |
260
272
| maxLength | number | 1000 | Maximum input length |
@@ -308,10 +320,14 @@ interface EditorSettings {
308
320
autoCompleteBrackets: boolean ;
309
321
// Enable bracket colors
310
322
bracketColorEnabled: boolean ;
311
- // Dark mode
323
+ // Dark theme
312
324
isDarkMode: boolean ;
313
325
// Horizontal layout
314
326
horizontalLayout: boolean ;
327
+ // Hide variable selection area
328
+ hideVariables: boolean ;
329
+ // Hide virtual keyboard
330
+ hideKeyboard: boolean ;
315
331
}
316
332
```
317
333
0 commit comments