This commit is contained in:
2024-01-21 21:41:31 +08:00
parent 0ea4c14732
commit d940c684ad
6 changed files with 56 additions and 16 deletions

View File

@@ -19,7 +19,7 @@ interface Props {
}
const props = withDefaults(defineProps<Props>(), {
language: "c",
language: "python",
fontSize: 24,
readonly: false,
placeholder: "",
@@ -45,10 +45,10 @@ watch(
)
const lang = computed(() => {
if (props.language === "c") {
return cpp()
if (props.language === "python") {
return python()
}
return python()
return cpp()
})
function onChange(v: string) {