Skip to content

Commit d72b32c

Browse files
committed
chore: minor tweaks
1 parent d8d6097 commit d72b32c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Repl.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export interface Props {
1818
store?: Store
1919
autoResize?: boolean
2020
showCompileOutput?: boolean
21-
showOpenSource?: boolean
21+
showOpenSourceMap?: boolean
2222
showImportMap?: boolean
2323
showTsConfig?: boolean
2424
clearConsole?: boolean
@@ -54,7 +54,7 @@ const props = withDefaults(defineProps<Props>(), {
5454
store: () => useStore(),
5555
autoResize: true,
5656
showCompileOutput: true,
57-
showOpenSource: false,
57+
showOpenSourceMap: false,
5858
showImportMap: true,
5959
showTsConfig: true,
6060
clearConsole: true,
@@ -107,7 +107,7 @@ defineExpose({ reload })
107107
ref="output"
108108
:editor-component="editor"
109109
:show-compile-output="props.showCompileOutput"
110-
:show-open-source="props.showOpenSource"
110+
:show-open-source-map="props.showOpenSourceMap"
111111
:ssr="!!props.ssr"
112112
/>
113113
</template>

src/output/Output.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const props = defineProps<{
1111
editorComponent: EditorComponentType
1212
showCompileOutput?: boolean
1313
ssr: boolean,
14-
showOpenSource?: boolean
14+
showOpenSourceMap?: boolean
1515
}>()
1616
1717
const { store } = inject(injectKeyProps)!
@@ -35,7 +35,7 @@ const mode = computed<OutputModes>({
3535
})
3636
3737
const showSourceMap = computed(() => {
38-
return props.showOpenSource && mode.value === 'js' || mode.value === 'ssr'
38+
return props.showOpenSourceMap && (mode.value === 'js' || mode.value === 'ssr')
3939
})
4040
4141
function openSourceMap() {

test/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const App = {
5858
theme: theme.value,
5959
previewTheme: previewTheme.value,
6060
editor: MonacoEditor,
61-
showOpenSource: true,
61+
showOpenSourceMap: true,
6262
// layout: 'vertical',
6363
ssr: true,
6464
sfcOptions: {

0 commit comments

Comments
 (0)