File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ export interface Props {
36
36
showRuntimeWarning? : boolean
37
37
}
38
38
editorOptions? : {
39
- showErrorText? : string
39
+ showErrorText? : string | false
40
+ autoSaveText? : string | false
40
41
monacoOptions? : monaco .editor .IStandaloneEditorConstructionOptions
41
42
}
42
43
}
Original file line number Diff line number Diff line change @@ -45,10 +45,15 @@ watch(showMessage, () => {
45
45
46
46
<div class =" editor-floating" >
47
47
<ToggleButton
48
+ v-if =" editorOptions?.showErrorText !== false"
48
49
v-model =" showMessage"
49
50
:text =" editorOptions?.showErrorText || 'Show Error'"
50
51
/>
51
- <ToggleButton v-model =" autoSave" text =" Auto Save" bottom =" 48px" />
52
+ <ToggleButton
53
+ v-if =" editorOptions?.autoSaveText !== false"
54
+ v-model =" autoSave"
55
+ :text =" editorOptions?.autoSaveText || 'Auto Save'"
56
+ />
52
57
</div >
53
58
</div >
54
59
</template >
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ const App = {
68
68
// showCompileOutput: false,
69
69
// showImportMap: false
70
70
editorOptions : {
71
+ autoSaveText : '💾' ,
71
72
monacoOptions : {
72
73
// wordWrap: 'on',
73
74
} ,
You can’t perform that action at this time.
0 commit comments