File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff 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
1717const { store } = inject (injectKeyProps )!
@@ -35,7 +35,7 @@ const mode = computed<OutputModes>({
3535})
3636
3737const showSourceMap = computed (() => {
38- return props .showOpenSource && mode .value === ' js' || mode .value === ' ssr'
38+ return props .showOpenSourceMap && ( mode .value === ' js' || mode .value === ' ssr' )
3939})
4040
4141function openSourceMap() {
Original file line number Diff line number Diff 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 : {
You can’t perform that action at this time.
0 commit comments